총 16,343건
CVE-2026-89755
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: mm/migrate_device: swapcache 해제 후 오래된 매핑을 삭제함 __migrate_device_pages()는 folio_free_swap()을 호출하기 전에 folio 매핑을 읽는다. folio_free_swap()이 성공하면 folio는 swap 캐시에서 제거되지만, 저장된 매핑은 여전히 swap_space를 가리킨다. 오래된 매핑을 folio_migrate_mapping()에 전달하면 더 이상 swapcache에 없는 folio에 대해 매핑된 folio 경로를 사용하게 된다. 이로 인해 swap_space.i_pages에 대해 잘못된 참조 계정이 발생하여 결국 folio 참조 카운트 버그가 발생할 수 있다. 성공적인 분할 후에도 nr은 원래 큰 folio의 페이지 수를 포함하지만, 각 결과 페이지는 이제 별도의 order-0 folio이다. 각 분할된 folio가 별도로 처리되도록 nr을 1로 재설정하여 자체 swapcache 제거 및 매핑 조회를 포함한다. folio_free_swap() 후 저장된 매핑을 새로 고쳐 현재 folio 상태가 마이그레이션 중에 사용되도록 한다.
CVE-2026-89754
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: mm/pagewalk: walk_pmd_range()를 탈출하는 오래된 walk->action 수정 ->pmd_entry()가 walk->action = ACTION_AGAIN으로 설정하면 pmd_none() 검사가 재시도된다. 이 시점에서 PMD 엔트리가 지워질 수 있다. 이 경우 walk->ops->install_pte가 지정되지 않으면, 코드는 walk->action을 ACTION_SUBTREE로 재설정하지 않고 범위 내 다음 PMD 엔트리로 계속 진행한다. 이로 인해 walk->action이 잘못 ACTION_AGAIN으로 설정된 상태로 남게 되는데, 이는 올바르지 않다. 이 문제는 commit 3b89863c3fa4("mm/pagewalk: fix race between concurrent split and refault") 이전까지는 문제가 없었으나, 해당 커밋에서 walk_pud_range()가 walk_pmd_range() 반환 시 walk->action == ACTION_AGAIN을 검사하도록 업데이트되어 PUD 워크가 재시도되도록 변경되었다. 이 경우 중복된 walk 콜백이 호출되어 잘못된 동작을 하며, 이로 인해 해당 동작에 대해 멱등성이 없는 호출자는 실패하고, 멱등성이 있는 호출자도 시간 낭비가 발생한다. 결과적으로 로컬 퍼저에 의해 트리거되는 범위 밖 쓰기가 발생한다: [ 2.272695] ================================================================== [ 2.273471] BUG: KASAN: slab-out-of-bounds in __mincore_unmapped_range+0x14f/0x190 [ 2.274302] Write of size 1 at addr ffff888008d9b000 by task poc/106 [ 2.274966] [ 2.275154] CPU: 0 UID: 1000 PID: 106 Comm: poc Not tainted 7.2.0-rc6-00429-ga7c7074b58d2 #55 PREEMPT(lazy) [ 2.275159] Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 2.275164] Call Trace: [ 2.275170] <TASK> [ 2.275172] dump_stack_lvl+0x53/0x70 [ 2.275200] print_report+0xd0/0x630 [ 2.275210] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 2.275219] ? irqentry_exit+0xd2/0x670 [ 2.275224] ? irqentry_exit+0xd2/0x670 [ 2.275226] ? __virt_addr_valid+0xef/0x1a0 [ 2.275239] ? __mincore_unmapped_range+0x14f/0x190 [ 2.275242] kasan_report+0xce/0x100 [ 2.275245] ? __mincore_unmapped_range+0x14f/0x190 [ 2.275248] __mincore_unmapped_range+0x14f/0x190 [ 2.275252] mincore_unmapped_range+0x45/0x70 [ 2.275254] walk_pgd_range+0xafc/0xfc0 [ 2.275261] ? __pfx_walk_pgd_range+0x10/0x10 [ 2.275264] ? __update_load_avg_se+0x3d1/0x670 [ 2.275275] __walk_page_range+0xc0/0x310 [ 2.275278] ? __pfx_find_vma+0x10/0x10 [ 2.275281] ? finish_task_switch.isra.0+0x16d/0x4f0 [ 2.275290] walk_page_range_mm_unsafe+0x26f/0x3a0 [ 2.275293] ? __pfx_mtree_load+0x10/0x10 [ 2.275298] ? __pfx_walk_page_range_mm_unsafe+0x10/0x10 [ 2.275302] ? __free_frozen_pages+0x54d/0x7e0 [ 2.275308] __do_sys_mincore+0x132/0x380 [ 2.275311] do_syscall_64+0xf9/0x540 [ 2.275316] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 2.275322] RIP: 0033:0x422ccd [ 2.275326] Code: b3 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 2.275329] RSP: 002b:00007fffffffec18 EFLAGS: 00000287 ORIG_RAX: 000000000000001b [ 2.275337] RAX: ffffffffffffffda RBX: 0000000000000066 RCX: 0000000000422ccd [ 2.275339] RDX: 00000000004d0940 RSI: 0000000001000000 RDI: 00007ffff4000000 [ 2.275340] RBP: 00000000004d0940 R08: 0000000000000100 R09: 0000000000000100 [ 2.275342] R10: 0000000000000100 R11: 0000000000000287 R12: 20c49ba5e353f7cf [ 2.275343] R13: 00000000004990d3 R14: 0000000000000000 R15: 0000000000000001 [ 2.275346] </TASK> [ 2.275347] [ 2.296904] 문제의 주소는 ffff888008d9b000에 있는 객체에 속하며 [ 2.296904] 크기 80인 sigqueue 캐시에 속한다 [ 2.298151] 문제의 주소는 할당된 80바이트 영역 [ffff888008d9b000, ffff888008d9b050) 내 0 바이트 위치에 있다 [ 2.299408] [ 2.299601] 문제의 주소는 물리 페이지에 속한다: [ 2.300191] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8d9b ---생략---
CVE-2026-89753
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: mm/vmscan: report RCU-tasks quiescent states in shrink_lruvec() I am seeing some rcu_tasks stalls in the Meta fleet during reclaim. INFO: rcu_tasks detected stalls on tasks: 0000000088620d09: .. nvcsw: 6735/6735 holdout: 1 idle_cpu: -1/8 task:GlobalCPUThread state:R running task pid:2552016 tgid:2524552 Call Trace: shrink_lruvec mem_cgroup_iter shrink_node do_try_to_free_pages try_to_free_pages __alloc_frozen_pages_noprof alloc_pages_noprof pte_alloc_one __pte_alloc handle_mm_fault Nothing promises direct reclaim returns in bounded time, and the scan loop in shrink_lruvec() only calls cond_resched(), which is a no-op on PREEMPTION kernels. Involuntary preemption is not a Tasks-RCU quiescent state, so the reclaiming task never reports one and becomes a holdout. Upgrade it to cond_resched_tasks_rcu_qs(), which reports a quiescent state even when cond_resched() does nothing. PS: This has been discussed in [1]
CVE-2026-89752
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: mm: memcg: stop reclaim when a limit update is superseded kernfs serializes file operations only per open file, so separate open files can update the same memory.high or memory.max file concurrently. Both handlers store the new limit before synchronous reclaim, but continue to use the writer's local target in the reclaim loop. If another writer raises or removes the limit, the first writer can continue reclaiming toward a stale target. For memory.max, this can leave the writer looping indefinitely once reclaim retries are exhausted. The OOM path sees sufficient margin under the current limit and returns true without killing, while the writer still compares usage against its stale target and records another OOM event. Check the current limit at the start of each reclaim iteration and stop if it no longer matches the writer's target. Reproducer: Populate a cgroup with anonymous memory and disable swapping. Lower memory.max from one open file, then restore it to "max" through another open file after the new limit becomes visible. Without the patch, the first writer remains blocked and repeatedly increments the OOM event counter. With the patch, it returns normally. This was not motivated by a reported production workload. We found it through automated randomized testing for our cgroup observability work and reduced it to the reproducer above.
CVE-2026-89751
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: x86/tdx: Fix off-by-one in port I/O handling handle_in() and handle_out() in arch/x86/coco/tdx/tdx.c use: u64 mask = GENMASK(BITS_PER_BYTE * size, 0); GENMASK(h, l) includes bit h. For size=1 (INB), this produces GENMASK(8, 0) = 0x1FF (9 bits) instead of GENMASK(7, 0) = 0xFF (8 bits). The mask is one bit too wide for all I/O sizes. Fix the mask calculation.
CVE-2026-89750
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: tracing/user_events: fork 복제 전에 복사된 추적 상태를 초기화함 dup_task_struct()는 부모로부터 자식으로 user_event_mm을 복사하지만, 참조를 획득하지 않는다. user_event_mm_dup()가 이를 대체해야 하지만, user_event_mm_alloc()가 실패하면 복사된 포인터를 수정하지 않고 그대로 둔다. 자식 프로세스가 종료될 때, user_event_mm_remove()는 자식이 소유하지 않은 참조를 감소시키며, 결국 user_event_mm을 해제한다. 반면 부모는 여전히 해당 포인터를 유지하여 해제 후 사용(UAF) 상태가 된다. KASAN은 이를 다음과 같이 보고한다: BUG: KASAN: slab-use-after-free in current_user_event_mm+0x51/0x1d0 Write of size 4 at addr ffff888005010d30 by task init/44 Call Trace: <TASK> kasan_report+0xce/0x100 kasan_check_range+0x10f/0x1e0 current_user_event_mm+0x51/0x1d0 user_events_ioctl+0x82e/0x15c0 __x64_sys_ioctl+0x139/0x1c0 do_syscall_64+0xce/0x450 entry_SYSCALL_64_after_hwframe+0x77/0x7f Allocated by task 44: __kasan_kmalloc+0x8f/0xa0 __kmalloc_cache_noprof+0x180/0x3a0 user_event_mm_alloc+0x3c/0x1f0 current_user_event_mm+0x88/0x1d0 Freed by task 42: __kasan_slab_free+0x43/0x70 kfree+0x13a/0x390 process_one_work+0x696/0xf90 worker_thread+0x420/0xba0 해결책은 실패 가능성이 있는 경우 복사된 포인터를 단순히 초기화하는 것이다. 실패 시 자식은 해제할 것이 없다.
CVE-2026-89749
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: tracing: Fix crash passing ERR_PTR to kthread_stop() event_test_stuff() calls kthread_run() and unconditionally passes the returned task_struct pointer to kthread_stop(). kthread_run() returns an error pointer such as ERR_PTR(-ENOMEM) when kthread creation fails, for example under memory pressure during the boot-time event self-test. kthread_stop() then dereferences the invalid pointer, crashing the kernel. Check the result of kthread_run() before passing it to kthread_stop(). Use WARN_ON() so that a failure to create the self-test thread does not go unnoticed, matching the ring-buffer self-test fix in commit 91542863abad ("ring-buffer: Fix crash passing ERR_PTR to kthread_stop()").
CVE-2026-89748
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: tracing: simple ring buffer reader swap에서 재시도 소진 문제 수정 simple_ring_buffer_swap_reader_page() 함수는 재시도 횟수를 8로 설정하고 실패한 링크 교체 후에만 후위 감소시킨다. 마지막 시도에서 성공적인 교체는 재시도를 0으로 남기고, 실패한 교체는 -1로 남긴다. 현재의 !retry 테스트는 두 결과를 모두 반대로 처리한다. 성공적인 마지막 교체 후에는 오류를 반환하여 링크 업데이트는 완료되었지만 리더의 장부 기록이 완료되지 않는다. 실패한 마지막 교체 후에는 계속 진행하여 교체가 성공한 것처럼 헤드와 리더 포인터를 업데이트하여 링이 손상될 수 있다. 음수 카운터만 소진으로 간주하고 문서화된 -EBUSY 오류를 반환하도록 처리한다.
CVE-2026-89747
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: tracing: 서브 버퍼 순서 변경 시 trace_pipe 읽기에서 발생하는 use-after-free 수정 buffer_subbuf_size_kb에 쓰기 작업은 ring_buffer_subbuf_order_set()를 호출하며, 이 함수는 링 버퍼의 모든 서브 버퍼를 해제하고, 리더 페이지를 포함하여 새로 할당된 버퍼로 교체한다. trace_pipe의 리더들은 해당 페이지에 대한 포인터를 보유한다. ring_buffer_peek()는 cpu_buffer->reader_lock 아래에서 이벤트를 조회하지만 락을 해제한 후 이벤트 포인터를 반환하며, peek_next_entry()는 이 포인터에 대해 ring_buffer_event_length()와 ring_buffer_event_data()를 호출한다. 만약 그 사이에 서브 버퍼 순서가 변경되면, 리더는 해제된 메모리를 역참조한다: BUG: KASAN: ring_buffer_peek+0x3e0/0x430에서 use-after-free 발생 syz-executor989/6002 작업이 주소 ffff88802a4cf010에서 크기 1을 읽음 해제 위치: free_buffer_page kernel/trace/ring_buffer.c:398 [inline] ring_buffer_subbuf_order_set+0x1325/0x18e0 kernel/trace/ring_buffer.c:7444 buffer_subbuf_size_write+0x182/0x280 kernel/trace/trace.c:8221 순서 변경 시 trace_access_lock(RING_BUFFER_ALL_CPUS)를 획득한다. 이 락은 trace_pipe 리더들이 전체 peek-and-print 루프 동안 이미 보유하는 락이므로, 스왑이 peeked 이벤트를 역참조하는 리더와 경쟁 상태를 일으키지 않는다.
CVE-2026-89746
2026년 9월 12일리눅스 커널에서 다음 취약점이 해결되었다: tracing: 동일 이름의 named 트리거에서 발생하는 use-after-free 수정 서로 다른 이벤트에 대해 두 개의 hist 트리거가 동일한 name=으로 등록될 때, 두 번째 트리거가 첫 번째 트리거의 named_data를 재사용한다. 두 트리거 모두 event_hist_trigger_parse() 중 save_hist_vars()에 의해 tr->hist_vars에 추가되는데, save_hist_vars()는 event_trigger_register() 호출 전에 실행되고 named 재사용은 hist_register_trigger()에서 나중에 감지된다. named-data 분기에서 hist_register_trigger()는 두 번째 히스토그램의 hist_data를 destroy_hist_data()를 통해 해제하지만, tr->hist_vars 리스트 항목은 제거하지 않아 댕글링 포인터가 남고 trace_array 참조가 누수된다. 이후 변수에 참조하는 hist 트리거가 find_var_file()을 호출하면 tr->hist_vars를 순회하며 해제된 hist_data를 역참조한다. 이 버그는 userspace에서 tracefs에 세 개의 hist 트리거를 작성하여 재현 가능하다: cd /sys/kernel/tracing echo 'hist:keys=common_pid:x=common_pid:name=mh' > events/sched/sched_switch/trigger echo 'hist:keys=common_pid:x=common_pid:name=mh' > events/sched/sched_process_fork/trigger echo 'hist:keys=common_pid:vals=$x' > events/sched/sched_process_exit/trigger 세 번째 쓰기 작업은 커널 패닉을 발생시킨다: BUG: KASAN: slab-use-after-free in find_var_file.part.0+0x272/0x290 Read of size 8 at addr ffff888001f8a0e0 by task sh/1 CPU: 1 UID: 0 PID: 1 Comm: sh Tainted: G D N Call Trace: find_var_file.part.0 find_event_var parse_atom parse_expr __create_val_field event_hist_trigger_parse trigger_process_regex event_trigger_write vfs_write ksys_write do_syscall_64 entry_SYSCALL_64_after_hwframe Allocated by task 1: event_hist_trigger_parse Freed by task 1: hist_register_trigger+0x618/0xa30 event_hist_trigger_parse The buggy address belongs to freed 2048-byte region Oops: general protection fault ... RIP: find_var_file.part.0 Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b 해결책은 hist_register_trigger()의 named-data 분기에서 hist_data를 해제하기 전에 tr->hist_vars에서 hist_data를 제거하고 trace_array 참조를 해제하는 것이다.
CVE-2026-89745
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: debugfs: Fix lockdown check for mmap_prepare Commit 651fdda8406d ("relay: update relay to use mmap_prepare") changed the `mmap` file operation to `mmap_prepare` for relayfs, but the lockdown check in debugfs was not updated accordingly. This prevents debugfs from being locked down when the kernel is in integrity mode if a file uses `mmap_prepare` but not `mmap`. Since the conversion to `mmap_prepare` across the kernel is not yet complete, update the lockdown check to look for both `mmap` and `mmap_prepare` to ensure comprehensive coverage.
CVE-2026-89744
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: device property: fwnode_for_each_child_node()의 무한 루프 수정 보조 fwnode가 있는 fwnode의 자식을 반복할 때, fwnode_get_next_child_node()는 보조 fwnode가 두 개 이상의 자식을 가질 경우 무한 루프에 빠질 수 있다. 부모 자식 (주요 fwnode) FWa: {FWa1, FWa2, FWa3} (보조 fwnode) FWb: {FWb1, FWb2} 이 경우: ┌─> fwnode_get_next_child_node(FWa, FWa1) │ - fwnode_call_ptr_op(FWa, get_next_child_node, FWa1) 는 FWa2를 반환 │ │ ... │ │ fwnode_get_next_child_node(FWa, FWa3) │ - fwnode_call_ptr_op(FWa, get_next_child_node, FWa3) 는 NULL을 반환 │ - fwnode_call_ptr_op(FWb, get_next_child_node, FWa3) 는 FWb1을 반환 │ │ fwnode_get_next_child_node(FWa, FWb1) │ - fwnode_call_ptr_op(FWa, get_next_child_node, FWb1) 는 FWa1을 반환 └────┘ 이로 인해 fwnode_for_each_child_node()는 무한히 반복하며 {FWa1, FWa2, FWa3, FWb1, FWa1, ...}를 반복 출력한다. 근본 원인은 현재 자식(FWb1)이 보조 fwnode에 속할 때, 주요 fwnode에서 get_next_child_node()를 호출하면 NULL 대신 첫 번째 자식(FWa1)을 잘못 반환하기 때문이다. 이 문제는 get_next_child_node()를 호출하기 전에 현재 자식의 부모 fwnode를 동적으로 확인하여 수정하였다. 이 방법은 커밋 b5b41ab6b0c1("device property: Check fwnode->secondary in fwnode_graph_get_next_endpoint()")에서 확립된 패턴을 따른다.
CVE-2026-89743
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: misc: nsm: 장치가 보고한 응답 길이 제한 nsm_sendrecv_msg_locked()는 NSM 장치가 보고한 virtqueue 사용 링 길이를 응답 버퍼에 제한하지 않고 msg->resp.len에 저장한다. 악의적이거나 버그가 있는 백엔드는 응답 버퍼보다 큰 길이를 보고할 수 있으며, parse_resp_raw()는 고정 버퍼에서 그만큼 많은 바이트를 사용자 공간으로 복사하여 인접한 커널 힙을 노출시키는 범위 밖 읽기(out-of-bounds read)가 발생한다. 요청 경로는 이미 fill_req_raw()에서 길이를 제한하지만, 응답 경로에는 대칭적인 검사가 없다. 저장된 길이를 응답 버퍼 크기로 제한한다. 정상 동작하는 장치는 게시된 버퍼 크기를 초과하여 보고하지 않으므로, 규격에 맞는 트래픽에는 영향이 없다.
CVE-2026-89742
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: rapidio: mport_cdev: dma_req_free()에서 해제 후 사용(use-after-free) 수정 dma_req_free()는 req->map을 통해 buf_mutex를 획득하고, kref_put()으로 매핑 참조를 해제한 후 다시 req->map을 역참조하여 뮤텍스를 해제한다. kref_put()이 마지막 참조를 해제하면 mport_release_mapping()이 매핑을 해제하고, 이후 mutex_unlock()이 해제된 객체를 역참조한다. 이는 해제 후 사용(use-after-free)이다. 이 문제는 kref_put() 전에 map과 md를 캐싱하고, buf_mutex를 보유한 상태에서 req->map을 초기화하며, 뮤텍스 해제 시 캐싱된 md를 사용하도록 수정하여 해결되었다. 이 버그는 RapidIO mport 문자 장치 인터페이스를 통해 사용자 공간에서 접근 가능하다.
CVE-2026-89741
2026년 9월 12일리눅스 커널에서 다음 취약점이 해결되었다: "media: v4l2-dev: __video_register_device()에서 오류 처리 수정"을 되돌림 이것은 커밋 2a934fdb01db6458288fc9386d3d8ceba6dd551a를 되돌린 것이다. 해당 패치의 의도는 좋았으나, 작동하지 않는다. 아이디어는 device_register가 실패하면, 참조 카운터가 자원을 해제하도록 put_device를 호출해야 한다는 것이다. 그러나 V4L2 API는 video_register_device()가 실패하면 video_device_release()를 호출해야 하며, 이는 video_device 구조체를 kfree() 한다고 명시한다. 하지만 put_device()가 이미 구조체를 해제했기 때문에 이중 해제(double-free) 상황이 발생한다. 이 문제를 해결하려면 video_register_device()를 초기화 부분과 실제 device_register를 수행하는 부분으로 나누고 모든 V4L2 드라이버를 이 새로운 모델로 전환해야 하는데, 이는 매우 큰 작업이다. 또한 device_register가 실패할 가능성은 매우 낮다. 따라서 이중 해제 상황을 피하기 위해 이 패치를 되돌리고, 그 대신 작은 메모리 누수가 발생하도록 하는 것이 훨씬 더 안정적이다.
CVE-2026-89740
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: serial: imx: serialize imx_uart_ports[] lifetime imx_uart_probe() publishes its devm-allocated port in imx_uart_ports[] before uart_add_one_port() because console setup uses the table. The entry is not cleared when adding the port fails or after removal, leaving a dangling pointer. A sibling probe can register the shared console through that stale entry. This was reproduced under KASAN on QEMU mcimx6ul-evk by unbinding a sibling UART, unbinding the console UART and rebinding the sibling. Keep the entry valid through uart_remove_one_port(), then clear it. Protect port addition and removal together with their table updates so sibling operations cannot interleave. Reject an occupied slot rather than clobbering an active port during a duplicate-line probe.
CVE-2026-89739
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: Fix use-after-free in dwc3_gadget_free_endpoints due to race condition In dwc3_gadget_init_endpoint, &dep->nostream_work is bound with dwc3_nostream_work, and dwc3_gadget_endpoint_stream_event can queue this delayed work on system_percpu_wq when a DEPEVT_STREAM_NOSTREAM event is received. If we remove the gadget, dwc3_gadget_free_endpoints makes cleanup and the memory allocated for dep with kzalloc() is released by kfree(dep), while the delayed work mentioned above may still be pending or running. The sequence of operations that may lead to a UAF bug is as follows: CPU0 CPU1 | dwc3_thread_interrupt | dwc3_endpoint_interrupt | dwc3_gadget_endpoint_stream_event | queue_delayed_work(system_percpu_wq, | &dep->nostream_work) dwc3_gadget_free_endpoints | dwc3_free_trb_pool(dep) | list_del(&dep->endpoint.ep_list) | dwc3_debugfs_remove_endpoint_dir(dep) | kfree(dep) | // dep is freed | | dwc3_nostream_work | // use dep (use-after-free) Fix it by canceling the delayed work before kfree(dep) in dwc3_gadget_free_endpoints.
CVE-2026-89738
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: usb: gadget: at91_udc: udc가 해제되기 전에 폴링된 VBUS 타이머/작업을 종료함 폴링된 VBUS 모드(board.vbus_pin && board.vbus_polled)에서 probe는 자기 재시작 주기를 설정한다: at91_vbus_timer()가 vbus_timer_work를 예약하고, at91_vbus_timer_work()는 at91_vbus_update()를 호출하며 mod_timer()를 통해 타이머를 다시 설정한다. 둘 다 container_of를 통해 같은 udc를 복구하고 매 반복마다 이를 역참조한다. 어느 종료 경로도 이 주기를 취소하지 않는다. udc는 devm-할당되어 at91udc_remove()가 반환된 후 해제되며, probe 실패 시 devres가 실행될 때도 마찬가지로 해제된다. 타이머 콜백이나 작업 항목이 이 시점들 중 하나에서 대기 중이거나 실행 중이면 해제된 udc를 역참조한다. at91_udc_shutdown_vbus_timer()를 추가하고 이를 at91udc_remove()와 probe 내 usb_add_gadget_udc() 실패 경로에서 호출한다; 나머지 probe 오류 경로는 타이머가 설정되기 전에 실패한다. timer_shutdown_sync()는 실행 중인 콜백을 기다리고 timer->function을 지워 작업 핸들러의 mod_timer()를 영구적인 무작동으로 만든다; cancel_work_sync()는 이제 재설정 시도가 아무 효과 없는 대기 중이거나 실행 중인 작업을 모두 소진한다. 타이머를 먼저 종료해야 하는데, 작업만 취소하면 타이머가 작업을 다시 예약할 수 있기 때문이다. 이 보호 장치는 probe를 반영하며, IRQ 모드에서는 타이머와 work_struct가 절대 초기화되지 않는다. 이 문제는 결함이 필요하지 않으며, 정상적인 드라이버 바인드 해제가 이미 예약된 작업 항목과 교차할 수 있다. 이 문제는 내부 정적 분석 도구에 의해 발견되었다.
CVE-2026-89737
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: usb: typec: thunderbolt: Disable work before freeing tbt on remove tbt_altmode_remove() drops the plug and cable references without draining tbt->work. The work function dereferences those references, and can also requeue itself in its error path. The VDM callbacks can queue the same work item. Disable and drain tbt->work before dropping the references. This waits for an existing invocation and prevents subsequent schedule_work() calls from queueing it during teardown. This issue was found by an in-house static analysis tool and confirmed by manual code review.
CVE-2026-89736
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: usb: gadget: u_audio: 사운드 카드 연결 해제 시 use-after-free 문제 수정 g_audio_cleanup() 함수는 snd_card_free_when_closed()를 호출하여 사운드 카드 해체를 시작하고 즉시 기본 struct snd_uac_chip 컨텍스트를 해제한다. 그러나 snd_card_free_when_closed()는 ALSA 제어 요소(kctls)가 사용자 공간에서 여전히 열려 있는 동안 비동기적으로 반환된다. 사용자 공간 제어 애플리케이션이 이 열린 파일 디스크립터에 접근하거나 닫을 때, kctl 콜백은 해제된 uac 구조체 내의 &uac->c_prm 또는 &uac->p_prm를 가리키는 kctl->private_data를 역참조하려 시도하여 use-after-free(UAF) 메모리 손상을 초래한다. 이 문제는 ALSA 사운드 카드에 대한 모든 참조가 해제될 때까지 struct snd_uac_chip의 파괴를 연기함으로써 수정되었다. g_audio_setup() 동안 사용자 정의 card->private_free 콜백(u_audio_card_free)을 등록하여 사운드 카드 참조 카운트가 0이 될 때만 uac와 관련된 재생/캡처 요청 및 링 버퍼를 해제한다.