총 162,856건
CVE-2026-139303
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Assume no bounds for buffers behind a tail call The bpf_map_elem, bpf_sk_storage_map and sockmap iterators hand the key and the value of an element to the program as buffers. The verifier notes how far a program reaches into them, and the iterator compares that with the map when the program is attached. A program that does not touch the buffers passes. It can tail-call another program of the same target, which gets the same context, and whose reach nobody compares with the map: BUG: KASAN: slab-out-of-bounds in ___bpf_prog_run+0xa46a/0xae80 The program array can be filled at any time, so there is nothing to look at when the link is made. For the same reason a program with a tail call is taken to use the whole stack and the whole packet. Take it to reach as far as can be into the buffers as well, so that these iterators refuse it with -EACCES.
CVE-2026-139302
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Don't take an extension for an iterator program An extension inherits the expected_attach_type of the program it extends. If that is BPF_TRACE_ITER, check_attach_btf_id() hands the extension to bpf_iter_prog_supported(), which goes by the name of the attach function. For an extension that is the name of the subprogram it replaces, so the load fails with -EINVAL, unless that subprogram is called like the function of a target, bpf_iter_bpf_map_elem for example. Then the extension gets the context of that target. If the subprogram has as many arguments, it can use the key and the value as buffers, but how far it reaches is noted in the extension, where the test of the iterator link does not look: it reads and writes behind the elements of the map. And the id of the subprogram in the BTF of the program is cached as the id of the target, so that programs of that target which are loaded already cannot be attached. Refuse all extensions here.
CVE-2026-139301
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Assume no bounds for a writable tp with tail calls A writable raw tracepoint hands a buffer to the program. The verifier notes how far the program reaches into it, and bpf_probe_register() refuses a program that reaches further than the tracepoint allows. A program that does not touch the buffer passes, and can tail-call one of its type that reads and writes behind it. Take a BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE program with a tail call to reach as far as can be, as for the stack, the packet and the buffers of iterators. It cannot be attached any more. Plain raw tracepoint programs, for which the limit is zero, cannot get at the buffer, and a tail call stays within one type: they are left alone.
CVE-2026-139300
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Don't take an extension for a writable raw tracepoint program bpf_probe_register() compares max_tp_access of the program that is attached with the size of the buffer that the tracepoint lets programs write to. An extension of that program, or of one of its global functions, gets the same context and the same pointer to the buffer. What it accesses is noted in its own max_tp_access, which nobody looks at. So it reads and writes behind the buffer, of a tracepoint that may have none: BUG: KASAN: stack-out-of-bounds in bpf_prog_5843f2b820eb4929_tr26_ext_far+0xf4/0x10c Write of size 4 at addr ffffc90000d8f894 by task wext/103 Refuse such extensions.
CVE-2026-139299
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Free what map_free() unlinks for sleepable readers bpf_local_storage_map_free() takes the elements of the map off the lists of their owners, which are alive, and frees them, and the storage of an owner with its last element, behind a plain RCU grace period. Nobody uses the map any more, but the other maps of these owners are in use. A sleepable program calls the get and delete helpers under rcu_read_lock_trace() only. While it walks the list of an owner for its own map, or is about to lock the storage, the element it stands on, or the storage, can be freed under it. Whatever else takes an element off the list of a live owner frees it behind an RCU Tasks Trace grace period, which implies a plain one. Do so in bpf_local_storage_map_free() as well. It waits for these callbacks before it frees the map. This does not help a sleepable program that hands an owner to the helpers which nobody holds, and which may be gone by then.
CVE-2026-139298
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Don't take a program with a target program for an iterator bpf_iter_prog_supported() goes by the name of the attach function. Commit 7cc639dc45c5 ("bpf: Don't take an extension for an iterator program") keeps out extensions, for which that is the name of a function of another program. A tracing program with BPF_TRACE_ITER that is loaded with attach_prog_fd gets there as well: unlike for BPF_TRACE_RAW_TP, bpf_check_attach_target() does not mind the target program. If the function is called like that of an iterator target, bpf_iter_bpf_map for example, its id in the BTF of the program is cached as the id of the target, even if the load fails later. Programs of that target which are loaded already cannot be attached any more. And the program itself can be attached as an iterator of that target, with a context that the verifier has taken from the prototype of that function: BUG: KASAN: stack-out-of-bounds in bpf_prog_66d4234e2e50f5b6_ts26_forged+0x12a/0x20b Read of size 8 at addr ffffc90000d9fc48 by task ts26/104 Refuse every program that has a target program. That covers extensions.
CVE-2026-139297
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Don't let an extension reach further into the context than its target How large the context of a raw tracepoint, tracepoint or syscall program is depends on what the program is attached to, or is run with. bpf_probe_register(), perf_event_set_bpf_prog() and the test runs compare that with max_ctx_offset of the program. An extension of the program, or of one of its global functions, gets the same context. How far it reaches is noted in its own max_ctx_offset, which nobody looks at. On a tracepoint with one argument it reads the stack behind the arguments, in a test run the memory behind the context, or from NULL if there is none: BUG: KASAN: stack-out-of-bounds in bpf_prog_954b5d2051843629_ts28_ext_far+0x7e/0x113 Read of size 8 at addr ffffc90000def7b8 by task ts28/104 BUG: KASAN: slab-out-of-bounds in bpf_prog_954b5d2051843629_ts28_ext_far+0x7e/0x113 Read of size 8 at addr ffff88810712c3e8 by task ts28/104 Refuse to attach an extension that reaches further than the program which it extends. A program that leaves the context to its extensions has to touch as much of it as they do.
CVE-2026-139296
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Keep values of a dead owner for sleepable programs bpf_local_storage_destroy() frees the elements of an owner behind a plain RCU grace period, on the ground that no program can refer to an owner that goes away. But the pointer that bpf_task_storage_get() and its like return stays valid for the verifier after the program has released the owner, or has left the bpf_rcu_read_lock() section it had the owner from. A sleepable program is in no RCU read side critical section, so it can write to the value after the owner has died and the element was freed: BUG: KASAN: slab-use-after-free in _copy_from_user+0x42/0xa0 Write of size 8 at addr ffff8880074404a8 by task lsuaf/55 Free the element behind an RCU Tasks Trace grace period if sleepable code may use the map. A program that a map is bound to was loaded, and counted in map->sleepable_refcnt, before it got a value from the live owner, and stays counted until a grace period behind its last run. A program can also get at a storage map by a lookup in an outer map. Then only the outer map is counted, its programs can come after the inner map was put into it, and can hold on to the inner map after it was taken out. So note in a map that it has been an inner map, and treat it like one with sleepable users from then on. The same goes for what the special fields of the value hold. The page of a uptr has to stay pinned, and a kptr which the program stores after the owner has died has to be released. Leave the fields, and the smap that it takes to free them, to bpf_selem_free_trace_rcu(), as bpf_selem_unlink() does. bpf_local_storage_map_free() waits for that callback, and leaves smap alone if it comes across such an element. Elements of such maps now wait for sleepable programs that are running when their owner dies. Other maps are freed as before.
CVE-2026-139295
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Keep the symbols of a program until it has ended When the last reference to a program goes, __bpf_prog_put_noref() takes its symbols out of the kallsyms tree and frees its line info at once, and waits for the grace periods only with the rest. But the program may still be running: the link or the array it was called from is gone, the call is not over. search_bpf_extables() finds the exception table of a program by its symbol. A load that faults, and that the table is there to fix up, is fatal from then on: Oops: general protection fault, probably for non-canonical address 0xdead0000000006f8: 0000 [#1] SMP NOPTI RIP: 0010:0xffffffffc06008f6 It takes a program that is detached and closed on one CPU while it runs on another. Unwinders and bpf_prog_find_from_stack() do not know the program any more either, and the stack dump of a BPF stream reads the freed line info. Free the line info behind the grace periods the program needs, as it is done with the BTF that its text comes from. Remove the symbols in bpf_prog_free_deferred(), which runs behind them as well. The symbols are looked up under rcu_read_lock(), so the images and the program itself are freed one more grace period later. All that the program refers to is released when it was before.
CVE-2026-139294
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Use the socket of a sk_lookup test run under RCU bpf_sk_lookup_assign() accepts only sockets which are freed by RCU, and takes no reference. bpf_prog_test_run_sk_lookup() looks at sk_reuseport of the selected socket and generates its cookie, which is a write, behind bpf_test_timer_leave(), that is outside of the RCU read side critical section in which the program ran. If the socket is closed in the meantime it may be gone. Do both before the section ends.
CVE-2026-139293
2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: bpf, cpumap: 대기열의 프레임의 디바이스를 보유한다 다른 CPU로 리다이렉트된 프레임은 cpumap 엔트리의 큐에서 plain 포인터로부터의 디바이스를 기다리고 있으며, generic XDP의 skb->dev에서 오는 skb가 있다. 그 디바이스를 아무 것도 보유하지 않는다. 닫히고 등록 해제되면 NAPI 및 RCU를 기다리지만, 엔트리의 kthread는 기다리지 않는다. 만약 kthread가 그보다 늦게 도착하면, 해당 CPU가 더 높은 우선순위를 가진 무언가로 바빠서, 이미 해제된 디바이스에 대해 skb를 만들어 스택에 전달한다: BUG: KASAN: use-after-free in dev_gro_receive+0x1f51/0x2b30 Read of size 8 at addr ffff88800a7340b0 by task cpumap/1/map:1/54 큐의 각 엔트리에 대해 디바이스에 대한 참조를 유지한다. kthread는 배치의 끝에서 그것을 제거할 수 없으며, GRO 노드가 skb를 더 오래 유지할 수 있기 때문이다. 큐가 비게 되면 GRO를 완전히 flush하는 시점에 디바이스를 기록하고 이후에도 약 2048개 정도를 기록한 경우에 한해 참조를 제거한다. 큐에 프레임이 걸려 있는 디바이스는 이제 kthread가 그들에 도달할 때만 등록 해제된다. 그 사이에 RTNL은 보류되지 않지만, 디바이스가 네트워크 네임스페이스와 함께 사라지면 모든 네임스페이스의 정리가 대기한다.
CVE-2026-139292
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Let bpf_dynptr_write() mark a global function The caller of a global function loses its packet pointers if the function may change packet data. That is found out by a scan for calls of the helpers which bpf_helper_changes_pkt_data() lists. bpf_dynptr_write() is not on the list, because it depends on the type of the dynptr: check_helper_call() looks at it. The scan cannot do that, and so a global function which makes a dynptr from the skb, or gets one as an argument, and writes through it counts as harmless. The write can reallocate the head of the skb, and the caller goes on with pointers into the old one, which has been freed. Let every call of bpf_dynptr_write() mark the function, as a tail call does. The same mark decides whether a program may replace a function.
CVE-2026-139291
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Don't take a dynptr argument for a local dynptr A global function is verified on its own. A dynptr which it gets as an argument is assumed to be of type BPF_DYNPTR_TYPE_LOCAL, but the callers may pass one of any type, that of an skb for example. The type decides whether a write through the dynptr invalidates packet pointers, and whether a slice of it is invalidated together with them. Inside of the function neither happens. It can take a packet pointer from its context argument, or a slice from the dynptr, write through the dynptr and go on using the pointer, although the write may have reallocated the head of the skb. Assume the type of an skb dynptr instead. Nothing becomes forbidden for the dynptr itself, and a clone inherits the caution. The dynptr which the callback of bpf_user_ringbuf_drain() gets is known to be local, and stays so.
CVE-2026-139290
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Follow the head if an skb is written from a slice The source of bpf_dynptr_write() may be a slice of the skb which is written to, that is a pointer into its head. bpf_dynptr_copy() does it by itself for a copy inside of one skb, if the source is linear and the destination is not. __bpf_skb_store_bytes() and __bpf_skb_meta_store_bytes() make the skb writable first. If that reallocates the head, the source points to the old one, and freed memory is copied into the packet. The offsets in the head do not change when it is reallocated here. Move the source along with the head.
CVE-2026-139289
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: RDMA/core: Free unpublished port statistics after initial-read failure An initial port counter read can fail after allocating its statistics buffer and wrapper. Free these both allocations.
CVE-2026-139288
2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: RDMA/rxe: rxe_rcv()에서 조기 탈출로 종료되기 전에 pkt->qp를 클리어 rxe_rcv()는 drop 레이블에서 pkt->qp를 해제하려고 시도하지만, 조기 goto 경로 두 곳에서 pkt->qp가 초기화되지 않은 상태로 남아 있습니다: if (unlikely(skb->len < RXE_BTH_BYTES)) goto drop; if (rxe_chk_dgid(rxe, skb) < 0) goto drop; pkt->opcode = bth_opcode(pkt); pkt->psn = bth_psn(pkt); pkt->qp = NULL; <- 위의 goto들보다 나중에 설정됩니다 ... drop: if (pkt->qp) rxe_put(pkt->qp); pkt는 skb->cb 내부를 가리키며, 이 시점에서 rxe은 이를 소유하지 않습니다. 네트워크 스택이 해당 공간을 자체 상태에 사용하기 때문입니다. IPv6의 경우, ip6_rcv_core()가 inet6_skb_parm을 memset하고 난 뒤 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); 를 오프셋 14에 기록하므로 cb + 8에 해당하는(pkt->qp가 저장되는 위치)이 모든 IPv6 패킷에 대해 0x0006000000000000으로 읽히게 됩니다. 포트 4791로 보내지는 페이로드가 BTH보다 짧은 모든 IPv6 다그램은 첫 번째 goto를 타고 drop 레이블에 도달하므로, rxe_put()가 0x0006000000000150에서 refcount_dec_and_test()를 실행하고 커널이 비정상 주소에서 패닉합니다: 일반 보호 오류, 아마도 비표준 주소 0x0006000000000150: 0000 [#1] PREEMPT SMP RIP: 0010:__rxe_put+0x.../... Call Trace: <IRQ> rxe_rcv+0x.../... [rdma_rxe] rxe_udp_encap_recv+0x.../... [rdma_rxe] udp_queue_rcv_one_skb ... Kernel panic - not syncing: Fatal exception in interrupt 문제는 softirq에서 발생하므로 panic_on_oops=0이라도 패닉이 발생하고, panic=0일 때는 전원 주기까지 머신이 멈춥니다. 원격 송신자는 UDP 빈 datagram 하나만 포트 4791로 보내면 되며 RDMA 연결, GID 또는 다른 상태는 관여하지 않으며 rxe 소켓은 init_net에서 바인딩되어 있습니다. IPv4는 영향받지 않습니다: ip_rcv_core()가 inet_skb_parm 전체를 memset하기 때문이며, 이 경우 pkt->qp 슬롯은 0입니다. 해결: 첫 번째 조기 종료 이전에 pkt->qp를 클리어합니다. pkt->qp은 hdr_check() 및 rxe_rcv_mcast_pkt()에 의해서만 참조 소유 값을 할당받는데, 이들은 이 지점 이후에 실행되므로 drop 레이블의 put은 균형을 유지합니다. 정렬 순서는 드라이버가 병합될 때부터 안전하지 못했습니다: 두 개의 조기 goto는 8700e3e7c485 이후의 모든 버전에서 pkt->qp = NULL보다 앞서 있습니다. 테스트 방법: 이 코드를 포함한 6.2 공급업체 트리에서 드라이버를 빌드하고 실행했으며, 포트 4791로 0바이트 IPv6 패킷 하나가 위의 패닉을 재현했습니다(해당 트리는 UDP 헤더를 rxe_udp_encap_recv()에서 끌어오지 않으므로 페이로드가 0..3바이트인 경우 첫 번째 goto로 가고, 메인라인은 0..11 바이트인 경우와 다름). 이 변경으로 동일 패킷이 의도대로 drop되며 drop 레이블을 추적할 때 pkt->qp가 도달 경로에서 0임이 확인됩니다. 다루지 않은 부분: 메인라인 트리는 이 환경에서 빌드되지 않았으며, 재현기는 본 메시지에서 의도적으로 생략되었고 필요 시 요청 시 제공됩니다.
CVE-2026-139287
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: RDMA/usnic: Bound buffer size to sizeof(buf) in flowinfo_read() In flowinfo_read(), 'left' tracks the remaining space in the 512-byte stack buffer 'buf', but it is initialized to 'count'. Initialize 'left' to sizeof(buf) instead of 'count'.
CVE-2026-139286
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Zero-extend the index in inlined bpf_get_func_arg() bpf_get_func_arg() takes a u32 index, but the inlined expansion compared only the low 32 bits of R2 with the argument count and then shifted the full 64-bit register to compute the context address. R2 is ARG_ANYTHING, so nothing guarantees that its upper bits are zero: an index of 1ULL << 32 passes the bounds check as index zero while the load is performed at ctx + (1ULL << 35). Shift the index as a 32-bit value. When the 32-bit bounds check passes, the low 32 bits of R2 are below R0, and R0 is at most 255: the trampoline arm masks the argument count with 0xFF and the raw_tp arm uses the BTF argument count minus one, which the verifier caps at MAX_BPF_FUNC_ARGS. The 3-bit shift therefore cannot overflow and it clears the upper bits of the register. Widening the comparison instead would reject indices whose low 32 bits are valid. The check itself is unchanged, so this cannot change which programs are accepted, only the address that is computed.
CVE-2026-139285
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path A drive-by review by Sashiko reports that, where the line has not been configured as an output, gpiod_set_array_value_complex() can return without freeing potentially alloced bitmaps, thus leaking memory. Cleanup the bitmaps before returning.
CVE-2026-139284
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: ALSA: pcm: Protect the unregister notifier traversal snd_pcm_free() traverses snd_pcm_notify_list and calls n_unregister without register_mutex, although snd_pcm_notify() takes that mutex to add and remove notifiers. PCM disconnect releases the mutex before the free callback runs, so it does not protect this later traversal. With no open OSS file, normal snd-pcm-oss removal can overlap PCM card teardown, for example when unbinding snd-dummy: PCM card teardown snd-pcm-oss unload ----------------- ------------------ snd_pcm_dev_disconnect() remove PCM under register_mutex unlock register_mutex snd_pcm_free() fetch notifier snd_pcm_notify(..., 1) unlink notifier under mutex free module storage read notifier->n_unregister invoke callback The free path can then read the notifier from released module storage or call its unloaded code. Hold register_mutex across the unregister traversal and its callbacks. Notifier removal must wait until both have finished. This also protects the traversal if a callback releases the last module reference: module exit cannot unlink its notifier until the free path releases the mutex. Drop the mutex before private_free and the remaining stream cleanup.