총 16,407건
CVE-2026-64594
2026년 8월 6일In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_fs: initialize reset_work at allocation time ffs_fs_kill_sb() unconditionally calls cancel_work_sync() on ffs->reset_work when a functionfs instance is unmounted: ffs_data_reset(ffs); cancel_work_sync(&ffs->reset_work); However ffs->reset_work is only ever initialized via INIT_WORK() in ffs_func_set_alt() and ffs_func_disable(), and only on the FFS_DEACTIVATED path. That state is reached solely by ffs_data_closed() when the instance is mounted with the "no_disconnect" option, so for the common case (no "no_disconnect", or mounted and unmounted without ever being deactivated) reset_work is never initialized. ffs_data_new() allocates the ffs_data with kzalloc_obj() and does not initialize reset_work, and ffs_data_reset()/ffs_data_clear() do not touch it either, so reset_work.func is left NULL. cancel_work_sync() on such a work then trips the WARN_ON(!work->func) guard in __flush_work(): WARNING: kernel/workqueue.c:4301 at __flush_work+0x330/0x360, CPU#3: umount Call trace: __flush_work cancel_work_sync ffs_fs_kill_sb [usb_f_fs] deactivate_locked_super deactivate_super cleanup_mnt __cleanup_mnt task_work_run exit_to_user_mode_loop el0_svc On older kernels cancel_work_sync() on a zero-initialized work struct was a silent no-op, which hid the missing initialization. Initialize reset_work once in ffs_data_new() so it is always valid for the lifetime of the ffs_data, and drop the now-redundant INIT_WORK() calls from the two deactivation paths.
CVE-2026-64593
2026년 8월 6일In the Linux kernel, the following vulnerability has been resolved: btrfs: do not trim a device which is not writeable [BUG] There is a bug report that btrfs/242 can randomly fail with the following NULL pointer dereference: run fstests btrfs/242 at 2026-06-01 10:25:08 BTRFS: device fsid d4d7f234-487c-4787-88e4-47a8b68c9874 devid 1 transid 9 /dev/sdc (8:32) scanned by mount (122609) BTRFS info (device sdc): first mount of filesystem d4d7f234-487c-4787-88e4-47a8b68c9874 BTRFS info (device sdc): using crc32c checksum algorithm BTRFS warning (device sdc): devid 2 uuid fbe72d72-3272-482d-80fb-ab88ed398192 is missing BTRFS warning (device sdc): devid 2 uuid fbe72d72-3272-482d-80fb-ab88ed398192 is missing BTRFS info (device sdc): allowing degraded mounts BTRFS info (device sdc): turning on async discard BTRFS info (device sdc): enabling free space tree Unable to handle kernel NULL pointer dereference at virtual address 0000000000000018 user pgtable: 4k pages, 48-bit VAs, pgdp=000000013fd6b000 CPU: 4 UID: 0 PID: 122625 Comm: fstrim Not tainted 7.0.10-2-default #1 PREEMPT(full) openSUSE Tumbleweed e9a5f6b24978fba3bf015a992f865837fdfff3dd Hardware name: QEMU KVM Virtual Machine, BIOS edk2-20250812-19.fc42 08/12/2025 pstate: 01400005 (nzcv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--) pc : btrfs_trim_fs+0x34c/0xa00 [btrfs] lr : btrfs_trim_fs+0x1f0/0xa00 [btrfs] Call trace: btrfs_trim_fs+0x34c/0xa00 [btrfs f02c1d570ceea621c69d302ba75dd61868083840] (P) btrfs_ioctl_fitrim+0xe8/0x178 [btrfs f02c1d570ceea621c69d302ba75dd61868083840] btrfs_ioctl+0xdd4/0x2bd8 [btrfs f02c1d570ceea621c69d302ba75dd61868083840] __arm64_sys_ioctl+0xac/0x108 invoke_syscall.constprop.0+0x5c/0xd0 el0_svc_common.constprop.0+0x40/0xf0 do_el0_svc+0x24/0x40 el0_svc+0x40/0x1d0 el0t_64_sync_handler+0xa0/0xe8 el0t_64_sync+0x1b0/0x1b8 Code: 17ffff83 f94017e0 f9002be0 f9402ea0 (f9400c00) ---[ end trace 0000000000000000 ]--- Also the reporter is very kind to test the following ASSERT() added to btrfs_trim_free_extents_throttle(): ASSERT(device->bdev, "devid=%llu path=%s dev_state=0x%lx\n", device->devid, btrfs_dev_name(device), device->dev_state); And it shows the following output: assertion failed: device->bdev, in extent-tree.c:6630 (devid=2 path=/dev/sdd dev_state=0x82) Which means the device->bdev is NULL, and the dev_state is BTRFS_DEV_STATE_IN_FS_METADATA | BTRFS_DEV_STATE_ITEM_FOUND, without BTRFS_DEV_STATE_WRITEABLE flag set. [CAUSE] The pc points to the following call chain: btrfs_trim_fs() |- btrfs_trim_free_extents() |- btrfs_trim_free_extents_throttle() |- bdev_max_discard_sectors(device->bdev) So the NULL pointer dereference is caused by device->bdev being NULL. This looks impossible by a quick glance, as just before calling btrfs_trim_free_extents_throttle(), we have skipped any device that has BTRFS_DEV_STATE_MISSING flag set. However in this particular case, there is a window where the missing device is later re-scanned, causing btrfs to remove the BTRFS_DEV_STATE_MISSING flag: btrfs_control_ioctl() |- btrfs_scan_one_device() |- device_list_add() |- rcu_assign_pointer(device->name, name); | This updates the missing device's path to the new good path. | |- clear_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state) This removes the BTRFS_DEV_STATE_MISSING flag. This allows the missing device to re-appear and clear the BTRFS_DEV_STATE_MISSING flag. However the device still does not have the BTRFS_DEV_STATE_WRITEABLE flag set, nor is its bdev pointer updated. The bdev pointer remains NULL, triggering the crash later. [FIX] This is a big de-synchronization between BTRFS_DEV_STATE_MISSING and device->bdev pointer, and shows a gap in btrfs's re-appearing-device handling. The proper handling of re-appearing device will need quite some extra work, which is out of the context of this small ---truncated---
CVE-2026-64592
2026년 8월 6일In the Linux kernel, the following vulnerability has been resolved: riscv: mm: Unconditionally sfence.vma for spurious fault Svvptc does not guarantee that it's safe to just return here. Since we have already cleared our bit, if, theoretically, the bounded timeframe for the accessed page to become valid still hasn't happened after sret, we could fault again and actually crash. Hopefully, these spurious faults should be rare enough that this is an acceptable slowdown.
CVE-2026-64591
2026년 8월 6일In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Avoid WARNING in sva unbind path The Intel IOMMU driver allows SVA on devices even if they do not support PCI/PRI. Commit 39c20c4e83b9 ("iommu/vt-d: Only handle IOPF for SVA when PRI is supported") modified the SVA bind path to allow this configuration by skipping IOPF enablement when PRI is missing. However, it failed to update the unbind path. This creates an imbalance: the unbind path attempts to disable IOPF for a device that never had it enabled, triggering a WARNING in intel_iommu_disable_iopf(): WARNING: drivers/iommu/intel/iommu.c:3475 at intel_iommu_disable_iopf+0x4f/0x90d Call Trace: <TASK> blocking_domain_set_dev_pasid+0x50/0x70 iommu_detach_device_pasid+0x89/0xc0 iommu_sva_unbind_device+0x73/0x150 xe_vm_close_and_put+0x4d2/0x1200 [xe] Fix this by bypassing IOPF operations for SVA domains on non-PRI hardware in both the bind and unbind paths.
CVE-2026-64590
2026년 8월 6일In the Linux kernel, the following vulnerability has been resolved: dma-buf/udmabuf: skip redundant cpu sync to fix cacheline EEXIST warning When CONFIG_DMA_API_DEBUG_SG is enabled, importing a udmabuf into a DRM driver (e.g. amdgpu for video playback in GNOME Videos / Showtime) triggers a spurious warning: DMA-API: amdgpu 0000:03:00.0: cacheline tracking EEXIST, \ overlapping mappings aren't supported WARNING: kernel/dma/debug.c:619 at add_dma_entry+0x473/0x5f0 The call chain is: amdgpu_cs_ioctl -> amdgpu_ttm_backend_bind -> dma_buf_map_attachment -> [udmabuf] map_udmabuf -> get_sg_table -> dma_map_sgtable(dev, sg, direction, 0) // attrs=0 -> debug_dma_map_sg -> add_dma_entry -> EEXIST This happens because udmabuf builds a per-page scatter-gather list via sg_set_folio(). When begin_cpu_udmabuf() has already created an sg table mapped for the misc device, and an importer such as amdgpu maps the same pages for its own device via map_udmabuf(), the DMA debug infrastructure sees two active mappings whose physical addresses share cacheline boundaries and warns about the overlap. The DMA_ATTR_SKIP_CPU_SYNC flag suppresses this check in add_dma_entry() because it signals that no CPU cache maintenance is performed at map/unmap time, making the cacheline overlap harmless. All other major dma-buf exporters already pass this flag: - drm_gem_map_dma_buf() passes DMA_ATTR_SKIP_CPU_SYNC - amdgpu_dma_buf_map() passes DMA_ATTR_SKIP_CPU_SYNC The CPU sync at map/unmap time is also redundant for udmabuf: begin_cpu_udmabuf() and end_cpu_udmabuf() already perform explicit cache synchronization via dma_sync_sgtable_for_cpu/device() when CPU access is requested through the dma-buf interface. Pass DMA_ATTR_SKIP_CPU_SYNC to dma_map_sgtable() and dma_unmap_sgtable() in udmabuf to suppress the spurious warning and skip the redundant sync.
CVE-2026-64589
2026년 8월 6일In the Linux kernel, the following vulnerability has been resolved: i2c: core: fix NULL-deref on adapter registration failure If adapter registration ever fails the release callback would trigger a NULL-pointer dereference as the completion struct has not been initialised. Note that before the offending commit this would instead have resulted in a minor memory leak of the adapter name.
CVE-2026-64588
2026년 8월 6일리눅스 커널의 다음 취약점이 해결되었습니다: fuse-uring: 링의 ready에 대한 데이터 레이스 수정 약한 순서의 아키텍처에서 fiq->ops에 대한 저장이 ring->ready에 대한 저장보다 뒤로 재정렬될 수 있어, fuse_uring_ready()를 통해 ring->ready == true를 보는 CPU가 오래된 fiq->ops 포인터를 통해 요청을 디스패치할 수 있습니다. 선행 WRITE_ONCE(fiq->ops, ...)가 다른 CPU에 보이도록 smp_store_release()로 저장하고 fuse_uring_ready()의 로드를 smp_load_acquire()로 바꿔야 합니다. 이렇게 하면 앞선 저장이 어떤 CPU에서도 ring->ready == true를 관찰할 때 보이게 됩니다. 또한 fuse_uring_do_register()가 ring->ready를 WRITE_ONCE()로 게시하지만, 빠른 경로의 확인은 일반 로드로 읽습니다. 이는 마크-vs-언마크 접근으로 KCSAN이 플래그를 표시합니다. 불필요한 순서를 추가하지 않고 표시하기 위해 READ_ONCE()로 이를 래핑합니다. 또한 fuse_uring_ready()에서 NULL 확인과 역참조 사이에 컴파일러가 재로딩하지 않도록 fc->ring 로드를 READ_ONCE()로 래핑합니다.
CVE-2026-64587
2026년 8월 6일리눅스 커널에서 다음 취약점이 해결되었습니다: net: ethernet: arc: emac: IRQ를 요청하기 전에 인터럽트를 정적 대기 상태로 만들기 일반 RX/TX 인터럽트는 arc_emac_open()에서 나중에 활성화되므로 일반적으로 프로브가 인터럽트 전달을 보지 않아야 합니다. 그러나 하드웨어는 펌웨어나 부트로더가 남긴 오래되었거나 래치된 인터럽트 상태를 여전히 제시할 수 있습니다. devm_request_irq()에 핸들러가 설치된 후에 프로브가 나중에 unwind되면, 그러한 오래된 인터럽트가 teardown 중 arc_emac_intr()에 도달하고 관련 net_device의 해제와 경쟁(race)할 수 있습니다. IRQ를 요청하기 전에 장치를 알려진 정지(quiescent) 상태로 두어 그 창(window)을 피합니다: 모든 EMAC 인터럽트 소스를 비활성화하고 보류 중인 EMAC 인터럽트 상태 비트를 지웁니다. 이는 변경을 하드웨어 중심적이고 최소로 유지하면서 남은 상태에서의 잘못된 IRQ 전달을 방지합니다.
CVE-2026-64586
번역 확인 필요2026년 8월 6일리눅스 커널에서 다음 취약점이 해결되었습니다: wifi: brcmfmac: 장치 제거 시 bus_reset 작업을 소멸시키기 brcmf_fw_crashed()와 디버그fs의 "reset" 항목은 둘 다 drvr->bus_reset를 일정에 넣고, 그 콜백은 container_of()를 통해 drvr를 복구하고 역참조합니다. 제거 경로는 drvr을 해제(brcmf_free -> wiphy_free)하기 전에 작업을 소멸시키지 않으므로 제거 중에 보류되었거나 실행 중인 bus_reset 콜백이 drvr보다 오래 살아남을 수 있습니다. Cancellation은 brcmf_detach()나 brcmf_free()에서 살아 있을 수 없습니다: 작업 콜백은 버스의 reset 연산을 통해 teardown에 도달합니다(PCIe brcmf_pcie_reset -> brcmf_detach; SDIO brcmf_sdio_bus_reset -> brcmf_sdiod_remove -> brcmf_free), 따라서 그곳에서 취소하면 실행 중인 작업을 대기하게 되어 교착 상태가 발생합니다. 각 버스에 대해 버스 재설정을 예약하는 동안 잠금으로 네트워크를 통일하기 위해 per-bus 뮤텍스(bus_reset_lock)를 추가하고 brcmf_bus_schedule_reset()을 통해 모든 arming 경로를 우회합니다. 잠금 하에서 버스 제거 항목은 brcmf_bus_cancel_reset_work()를 호출하고, 같은 잠금 하에서 removing을 설정하고 작업을 취소합니다. cancel_work_sync()를 통해 제거 시점에 남아 있는 버스_reset 작업을 소멸시키고, 스크래치 버퍼 해제가 이미 해제된 경우 안전하게 만듭니다. 모든 생산자는 프로세스 컨텍스트에서 arming 경로에 도달합니다 — PCIe 펌웨어 종료 알림은 스레드 IRQ 핸들러(brcmf_pcie_isr_thread)에서 실행되고 SDIO 호스트메일 경로는 데이터 워크큐에서 실행되므로 뮤텍스는 sleepable 컨텍스트에서만 점유됩니다. 해당되는 경우 제거 항목은 먼저 펌웨어 충돌 프로듀서를 중지합니다: PCIe에서 우편함(mask) 및 synchronize_irq를 수행합니다; SDIO에서 버스 인터럽트를 등록 해제하고 데이터 워커를 취소합니다. 이는 brcmf_fw_crashed()를 통해 펌웨어 중단을 보고합니다. 뮤텍스는 버스 할당 시 초기화됩니다. SDIO 절전 전원 끄기 경로는 동일한 brcmf_sdiod_remove()를 통해 drvr을 해제하고 동일한 잠금을 사용합니다; 재개는 성공적인 재프로브에서만 허용됩니다. 또한 brcmf_fw_crashed()를 NULL 버스 인터페이스/드라이버에 대해 방어적으로 처리합니다: brcmf_attach()가 drvr에 연결되기 전에 발화될 수 있으며 drvr를 역참조합니다(bphy_err/brcmf_dev_coredump) 시작점에 도달하기 전에. bus_reset 작업은 버스 간에 공유되므로 제거 시 모든 경로에 적용됩니다: PCIe(.reset 연산은 Fixes 커밋에서 도입), SDIO(brcmf_fw_crashed()를 통해 동일한 작업 예약), USB(debugfs "reset" 항목을 통해). cancel_work_sync()는 실행 중이거나 대기 중인 bus_reset 작업을 제거 시 drvr 해제 전에 소멸시키고, 1/2 패치는 reset teardown이 이미 DMA 버퍼를 해제한 경우 스크래치 버퍼 해제를 안전하게 만듭니다. 이 패치는 bus_reset 작업 항목 자체의 수명을 수정합니다. PCIe 재설정 경로가 시작한 비동기 펌웨어 완료의 기존 별도 수명/소유권 문제를 해결하려고 시도하지 않으며, 해당 콜백에 대해 별도의 수명/소유권 프로토콜이 필요하며 별도로 추적되고 있습니다. 이 문제는 내부 정적 분석 도구로 발견되었습니다.
CVE-2026-64585
2026년 8월 6일리눅스 커널에서 다음 취약점이 해결되었습니다: can: esd_usb: 네트워크 디바이스를 해제하기 전에 고정된 URB를 종료 esd_usb_disconnect()는 각 CAN netdev를 free_candev() 내부에서 해제하고, 그 이후에만 unlink_all_urbs(dev)를 호출합니다. net_device 할당은 alloc_candev()에 의해 반환되며 그 안에 내부 네트워크 데이터(struct esd_usb_net_priv)가 포함되어 있으므로 free_candev()가 실행된 후에는 dev->nets[i]가 해제된 메모리를 가리킵니다. 그러면 unlink_all_urbs()가 해제된 dev->nets[i]를 역참조하여 per-netdev TX 고정(anchor)을 종료하고(usb_kill_anchored_urbs(&priv->tx_submitted)), active_tx_jobs를 지우며 priv->tx_contexts[]를 재설정합니다. 다른 CAN/USB 드라이버와 일치하도록 고정된 URB를 넷디바이스를 해제하기 전에 종료하도록 마무리 순서를 재정렬합니다. 예를 들어 같은 디렉터리에 있는 ems_usb, usb_8dev 및 mcba_usb처럼 먼저 netdev를 등록 해제(unregister), 그다음 연결 해제(unlink), 그다음 해제(free)합니다: 먼저 netdev를 등록 해제합니다(이로써 TX 큐가 중지됩니다), 그런 다음 dev를 한번만 unlink_all_urbs(dev)를 호출하고, 그 후 netdev를 해제합니다. 이 취약점은 내부 정적 분석 도구에 의해 발견되었습니다.
CVE-2026-64584
2026년 8월 6일리눅스 커널에서 다음 취약점이 해결되었습니다: usb: gadget: f_midi: MIDI 객체를 해제하기 전에 대기 중 IN 작업(cancel) 수행 f_midi 드라이버는 작업 항목(midi->work)을 내장하고 있으며, 그 핸들러 f_midi_in_work()가 container_of()를 통해 포장된 f_midi 구조체를 역참조합니다. 이 작업은 두 곳에서 예약됩니다: f_midi_complete()에서 일반 IN 엔드포인트 완료 시점과 ALSA rawmidi 출력 스트림 시작 시점인 f_midi_in_trigger()에서입니다. f_midi_disable()나 f_midi_unbind()는 midi->work를 취소하지 않습니다. f_midi_disable()는 엔드포인트를 비활성화하고 in_req_fifo를 비웁니다; 작업 항목과의 동기화는 수행하지 않으며, MIDI 객체의 최종 해제는 비동기로 이루어집니다. MIDI 객체는 참조 카운트(midi->free_ref)로 관리되며 usb_function 참조와 rawmidi private_data 참조가 모두 해제될 때에만 f_midi_free()에서 해제됩니다. f_midi_unbind()에서 f_midi_disable()가 사운드 카드가 해제되기 전에 실행되므로, USB 엔드포인트가 이미 비활성화되었더라도 rawmidi 디바이스는 여전히 열려 있는 서브스트림에서 사용될 수 있습니다. 이러한 서브스트림에 대한 사용자 공간 쓰기는 f_midi_in_trigger()로 도달해 midi->work를 f_midi_disable()이 반환된 후에 다시 큐할 수 있습니다. 이와 같이 예약된 작업 항목은 마지막 참조가 감소하고 f_midi_free()가 진행되어 kfree(midi)로 해제될 때까지 대기 중일 수 있으며 이때 f_midi_in_work()가 해제된 후 구조체를 역참조하게 되어 use-after-free가 발생합니다. 이로 인해 f_midi_disable()에서 midi->work를 취소하는 것으로 충분하지 않습니다: ALSA 트리거 경로가 disable()이 반환된 후에도 작업을 재예약할 수 있습니다. 참조 카운트 0에서의 해제 시점에 취소하는 것이 경계인데, 그때까지 MIDI 객체를 계속 살리는 참조는 이미 모두 해제되었으며: USB 엔드포인트는 이미 비활성화되었고 rawmidi 디바이스도 해제되었습니다. embedded된 work_struct가 구조체의 나머지 부분과 함께 해제되기 전인 f_midi_free()의 참조 카운트 0 블록에서 cancel_work_sync(&midi->work)을 호출하여 이 문제를 수정합니다. opts->lock은 잠자기 가능한 뮤텍스이므로, 그 하에서 cancel_work_sync()를 호출해도 문제가 없고, 핸들러는 midi->transmit_lock를 사용하므로, 실행 중인 작업이 끝날 때까지 자기 자신이 교착 상태에 빠지지 않습니다. 이 문제는 내부 정적 분석 도구에 의해 발견되었습니다.
CVE-2026-64583
2026년 8월 6일리눅스 커널에서 다음 취약점이 해결되었습니다: usb: gadget: udc: bdc: teardown 전에 IRQ를 해제하고 func_wake_notify를 비활성화합니다 Broadcom BDC UDC 드라이버는 bdc_udc_init()에서 devm_request_irq()로 IRQ 핸들러를 등록하므로 IRQ는 bdc_remove()가 반환된 후에야 devm에 의해 해제됩니다. devm은 리소스를 역LIFO 순서로 해제하지만, bdc_remove()는 반환하기 전에 수동으로 bdc_udc_exit() 및 bdc_hw_exit() -> bdc_mem_free()를 실행합니다: bdc_udc_exit()는 bdc_free_ep()를 통해 개별 엔드포인트 객체를 해지하고, bdc_hw_exit() -> bdc_mem_free()는 DMA-일관성 상태 보고 링(bdc->srr.sr_bds)을 자유화하고 NULL로 설정하며 bdc->bdc_ep_array를 kfree()합니다. IRQ 핸들러(bdc_udc_interrupt, IRQF_SHARED로 요청됨)가 남아 있는 창(window)에서 이를 수행하는 동안에도 작동 가능하며, post-remove devm_free_irq()에 의해 IRQ가 해제됩니다. 그 창에서 공유 인터럽트가 수신되면 bdc_udc_interrupt()가 bdc->srr.sr_bds[bdc->srr.dqp_index]를 역참조(NULL 또는 해제된 DMA)하고, bdc_ep_array를 인덱스로 하는 sr_handler 콜백을 디스패치하여 NULL-역참조나 사용 후 해제(use-after-free)를 유발합니다. 같은 창은 지연 작업인 bdc->func_wake_notify에도 영향을 주며, IRQ 핸들러를 통해 bdc_sr_uspc() -> handle_link_state_change() -> schedule_delayed_work()로 예약되며, 자체 콜백 bdc_func_wake_timer()에서 다시 예약될 수 있습니다. 드라이버 어디에서도 취소가 존재하지 않으므로 bdc_remove()가 반환된 후에도 devm으로 해제된 메모리에 해제된 메모리를 역참조하는 예약된 작업 항목이 영향을 줄 수 있습니다. devm_request_irq()를 request_irq()로 바꾸고 bdc_remove()에서 명시적 free_irq(bdc->irq, bdc)를 추가합니다. free_irq()를 수행하기 전에 BDC_GIE를 지워서 장치가 인터럽트를 주장하지 않도록 하고, 그런 다음 in-flight 핸들러를 제거하기 위해 free_irq()를 수행하고, cancel_delayed_work_sync()를 통해 func_wake_notify 지연 작업을 비웁니다. 이 순서는 IRQ 핸들러와 지연 작업이 이후의 엔드포인트 및 DMA 해제(bdc_udc_exit() 및 bdc_hw_exit())와 충돌하지 않도록 보장합니다. probe 실패 시 IRQ가 해제되도록 매칭된 free_irq()를 bdc_udc_init()의 에러 경로에 연결하고, bdc_init_ep() 실패를 즉시 반환하는 대신 err0로 처리합니다. 이 취약점은 내부 정적 분석 도구에 의해 발견되었습니다.
CVE-2026-64582
2026년 8월 5일리눅스 커널에서 다음 취약점이 해결되었다: RDMA/rxe: rxe_mmap의-use-after-free 문제 수정 rxe_mmap()가 rxe_mmap_info 구조체를 pending_mmaps 목록에서 제거하고 구조체의 kref가 아직 1인 상태에서 pending_lock를 해제한다: list_del_init(&ip->pending_mmaps); spin_unlock_bh(&rxe->pending_lock); /* ref == 1, 잠금 해제 */ ret = remap_vmalloc_range(vma, ip->obj, 0); /* PTE 순회 */ [...] rxe_vma_open(vma); /* kref_get, ref → 2 */ remap_vmalloc_range_partial()는 잠금 없이 PTE를 순회한다. 다른 CPU에서의 동시 DESTROY_CQ ioctl 호출은: kref_put(&q->ip->ref, rxe_mmap_release) /* ref 1→0 */ vfree(ip->obj) /* vmalloc PTE를 중간에 지움 */ kfree(ip) /* rxe_mmap_info 해제 */ 다음과 같은 결과를 야기할 수 있다: 1. 커널 충돌, vmalloc_to_page()가 NULL을 반환하고 vfree가 레이스에서 승리하면 → vm_insert_page(NULL) → validate_page_before_insert에서 General Protection Fault(GPF) 2. 페이지 UAF, vmalloc_to_page()가 지운 뒤에도 오래된 PTE를 읽고, 사용자 VMA가 해제된 페이지에 대한 PTE를 보유하여 나중에 vmalloc에 의해 다시 할당될 수 있어 공격자가 깨끗한 페이지 단위의 UAF를 얻을 수 있다. 강력한 원리로 인해 페이지 수준의 UAF가 가능하긴 하나, 마지막 insert_page 직후와 kref_get 사이의 아주 짧은 시간 창으로 인해 통계적으로 달성하기 어렵다. 호출 추적은 아래와 같다: Oops: 일반 보호 faults, 비정규 주소 0xdffffc0000000001에 대해 추정: 0000 [#1] SMP KASAN NOPTI KASAN: 범위 [0x0000000000000008-0x000000000000000f]에서 널 포인터 역참조 CPU: 0 UID: 1000 PID: 413 Comm: poc Not tainted 7.0.0-rc5-dirty #28 PREEMPT(lazy) 하드웨어 이름: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014 RIP: 0010:validate_page_before_insert+0x32/0x300 코드: e5 41 57 41 56 49 89 fe 41 55 41 54 53 48 89 f3 e8 93 b5 a3 ff 48 8d 7b 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 7b 02 00 00 4c 8b 63 08 31 ff 4d 89 e5 41 83 e5 RSP: 0018:ffff88811b15f2f0 EFLAGS: 00000202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000008 RBP: ffff88811b15f318 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8881181eee00 R13: 0000000000000000 R14: ffff8881181eee00 R15: ffff8881181eee20 FS: 00007b1e000f76c0(0000) GS:ffff8884268e0000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007b1e00a24ac0 CR3: 0000000116eb3000 CR4: 00000000000006f0 Call Trace: <TASK> insert_page+0x8f/0x190 ? __pfx_insert_page+0x10/0x10 ? kasan_save_alloc_info+0x38/0x60 vm_insert_page+0x2e7/0x400 remap_vmalloc_range_partial+0x212/0x3e0 remap_vmalloc_range+0x6e/0xb0 ? __kasan_check_write+0x14/0x30 rxe_mmap+0x2e9/0x5d0 ib_uverbs_mmap+0x1ad/0x2c0 __mmap_region+0x12c2/0x2ad0 ? __pfx___mmap_region+0x10/0x10 ? __sanitizer_cov_trace_switch+0x58/0xb0 ? mas_prev_slot+0x360/0x39c0 ? __sanitizer_cov_trace_switch+0x58/0xb0 ? mas_next_slot+0x1e5b/0x2f40 ? __sanitizer_cov_trace_cmp8+0x18/0x30 ? unmapped_area_topdown+0x4dd/0x610 ? kfree+0x1b1/0x440 ? free_cpumask_var+0x16/0x30 ? __kasan_slab_free+0x7d/0xa0 ? __sanitizer_cov_trace_cmp8+0x18/0x30 mmap_region+0x2e6/0x3c0 do_mmap+0xa3e/0x12a0 ? __pfx_do_mmap+0x10/0x10 ? __kasan_check_write+0x14/0x30 ? down_write_killable+0xba/0x160 ? __pfx_down_write_killable+0x10/0x10 ? __sanitizer_cov_trace_cmp4+0x16/0x30 vm_mmap_pgoff+0x2d4/0x4a0 ? __pfx_vm_mmap_pgoff+0x10/0x10 ? fget+0x1bf/0x270 ksys_mmap_pgoff+0x40c/0x690 ? __sanitizer_cov_trace_const_cmp4+0x16/0x30 ? __pfx_ksys_mmap_pgoff+0x10/0x10 ? __kasan_check_write+0x14/0x30 ? _raw_spin_trylock+0xbb/0x130 ? __pfx__raw_spin_trylock+0x10/0x10 __x64_sys_mmap+0x135/0x1e0 x64_sys_c ---truncated---
CVE-2026-64581
2026년 8월 5일Linux 커널에서 다음 취약점이 해결되었다: xfrm: xfrm_user_policy()에서 sk_dst_cache의 이중 해제를 수정 xfrm_user_policy()는 __sk_dst_reset()로 소켓 dst 캐시를 지우며, i.e. 비원자적 ‑‑ __sk_dst_set(sk, NULL)을 읽고(rcu_dereference_protected()), NULL을 저장하고 이전 dst를 dst_release()한다. 다른 스레드가 sk_dst_cache를 동시 다발적으로 수정하지 않는 경우에만 안전하다. 연결된 UDP 소켓의 경우 전송 빠른 경로가 아직 보유하지 않으면(전송 경로: udp_sendmsg -> sk_dst_check -> sk_dst_reset) 캐시를 락 없이 원자적 xchg()로 재설정한다. 소켓별 정책 변경이 전송과 경쟁하면 두 측이 같은 오래된 dst를 관찰하고 각각 dst_release()를 하여 소켓의 단일 참조를 두 번 해제하고 xfrm_dst 번들을 해제하는 상황이 발생할 수 있다: BUG: KASAN: slab-use-after-free in dst_release addr ffff88801897b6c0에서 쓰기 크기 4, 프로세스 exploit/155에 의해 수행 Call Trace: ... dst_release (... ./include/linux/rcuref.h:109) xfrm_user_policy (./include/net/sock.h:2239 ./include/net/sock.h:2256 net/xfrm/xfrm_state.c:3053) do_ip_setsockopt (net/ipv4/ip_sockglue.c:1347) ip_setsockopt (net/ipv4/ip_sockglue.c:1417) do_sock_setsockopt (net/socket.c:2368) __sys_setsockopt (net/socket.c:2393) __x64_sys_setsockopt (net/socket.c:2396) do_syscall_64 (arch/x86/entry/syscall_64.c:94) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) 권한이 없는 사용자가 사용자 네임스페이스 네트워크를 통해 접근 가능하다. 캐시를 한 번에 해제하고 방출하도록 원자적 sk_dst_reset()을 사용한다: 어떤 쪽이 이기든 dst를 한 번만 해제하고, 다른 쪽은 NULL을 보아서 아무 것도 하지 않게 된다. 그 밖의 동작은 변경되지 않는다.
CVE-2026-64580
2026년 8월 5일리눅스 커널에서 다음 취약점이 해결되었다: xfrm6: xfrm6_fill_dst()의 오류 경로에서 netdev_put()로 더블 해제가 일어나지 않도록 dst.dev를 초기화한다 dev이 NULL을 반환하는 오류 경로에서 in6_dev_get(dev)가 NULL을 반환하면 xfrm6_fill_dst()가 디바이스 레퍼런스를 netdev_put()로 해제하되 dst->u.dst.dev를 남겨둔다. dst_destroy()가 나중에 dst->dev를 다시 netdev_put(dst->dev)로 해제하므로 같은 net_device 레퍼런스가 두 번 해제되어 레퍼런스 카운트가 언더플로우한다(ref_tracker WARNING + "unregister_netdevice: waiting for <dev> to become free"). netdev_put() 이후에 xdst->u.dst.dev를 초기화한다. 이는 XFRM 디바이스 오프로드 경로인 xfrm_dev_state_add() 및 xfrm_dev_policy_add()에서 오류 시 참조를 해제할 때 dev를 NULL로 설정하는 방식과 동일하다(net/xfrm/xfrm_device.c의 NULL -> dev 수행). ref_tracker: 이미 해제된 참조. ref_tracker: 할당 위치: xfrm6_fill_dst (net/ipv6/xfrm6_policy.c:86) ... udpv6_sendmsg (net/ipv6/udp.c:1696) ... ref_tracker: 해제된 위치: xfrm6_fill_dst (net/ipv6/xfrm6_policy.c:90) ... 경고: lib/ref_tracker.c:322 ref_tracker_free+0x58b/0x780에서 dst_destroy (net/core/dst.c:115) rcu_core handle_softirqs ...
CVE-2026-64579
번역 확인 필요2026년 8월 5일리눅스 커널에서 다음 취약점이 수정되었다: xfrm: 정책: xfrm_hash_rebuild 재삽입 전에 부정확한 구간을 선점 xfrm_hash_rebuild()의 첫 번째 루프는 재삽입에 필요한 빈(들)/연쇄를 미리 할당하므로 재삽입(hlist_del_rcu() 후)은 할당하거나 실패할 수 없다. 그러나 그 보호 조건은 반대로 되어 있어 접두사 길이(prefixlen)가 임계값<threshold 미만인 정책은 건너뛰고 나머지에 대해 미리 할당한다. prefixlen < threshold일 때 policy_hash_bysel()이 NULL을 반환하는 정확한 경우이며 재삽입은 할당된 xfrm_policy_inexact_insert() 경로를 취한다. 따라서 루프는 정확한 정책들(절대 할당하지 않는)에는 미리 할당하고 부정확한 정책은 건너뛰며, 그 결과 해당 bin/노드는 재삽입 중 GFP_ATOMIC으로 할당된다. 실패 시 오류 경로는 단지 WARN_ONCE()만 수행하고 계속되며, LIST_POISON2를 역참조하고 GPF를 유발하는 오염된 bydst 노드를 남긴다. 다음 재빌드의 hlist_del_rcu()가 LIST_POISON2를 역참조하고 GPF를 일으킨다. 메모리 압박 하에서 도달 가능하며, failslab에 의해 결정된다. 가드의 반전으로 미리 할당이 재삽입된 정책들에 정확히 적용되도록 수정되었으며; 재삽입은 더 이상 할당하지 않으므로 실패할 수 없다. 충돌: Oops: 일반 보호 결함, 아마도 비정준 주소에 대해 0xfbd59c0000000024: 0000 [#1] SMP KASAN NOPTI KASAN: 범위 [0xdead...]의 메모리 접근 의심 ... 작업 큐: 이벤트 xfrm_hash_rebuild RIP: 0010:xfrm_hash_rebuild+0x5b3/0x1190 RAX: dead000000000122 (LIST_POISON2 + 오프셋) ... 호출 추적: hlist_del_rcu (include/linux/rculist.h:599) xfrm_hash_rebuild (net/xfrm/xfrm_policy.c:1365) process_one_work (kernel/workqueue.c:3322) worker_thread (kernel/workqueue.c:3486) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) ... 커널 패닉 - 동기화 실패: 인터럽트에서 치명적 예외 Crash: (단락은 원문에 있는 내용을 그대로 기술합니다.)
CVE-2026-64578
번역 확인 필요2026년 8월 5일리눅스 커널에서 다음 취약점이 해결되었습니다: ksmbd: StructureSize2를 읽기 전에 합성 요청 크기를 검증 ksmbd가 결합된(SMB2 체인) 요청을 검증할 때, ksmbd_smb2_check_message()는 pdu->StructureSize2를 먼저 확인 없이 읽습니다. StructureSize2는 각 요소의 시작점으로부터 오프셋 64(__SMB2_HEADER_STRUCTURE_SIZE)에 위치한 2바이트 필드입니다. 합성-워킹 로직은 마지막 요소에 대해 64바이트 SMB2 헤더가 존재함을 보장할 뿐입니다: NextCommand가 0일 때 길이는 next_smb2_rcv_hdr_off 이후 남은 바이트 수로 축소됩니다. 원격 클라이언트는 마지막 요소가 정확히 64바이트인 합성 요청을 제작할 수 있으며, 오프셋 64에서 읽는 2바이트 StructureSize2가 수신 버퍼를 한 바이트 초과해 읽히게 되어 슬래브(out-of-bounds) 읽기가 발생합니다. 버그: KASAN: slab-out-of-bounds in ksmbd_smb2_check_message (fs/smb/server/smb2misc.c:402) 작업 kworker/0:1/14에 의해 주소 ffff888012ae31ac에서 사이즈 2 읽기 버그 주소는 할당된 173바이트 영역의 안쪽 172바이트 위치에 있습니다 작업 큐: ksmbd-io handle_ksmbd_work 호출 추적: ... kasan_report (mm/kasan/report.c:595) ksmbd_smb2_check_message (fs/smb/server/smb2misc.c:402) handle_ksmbd_work (fs/smb/server/server.c:119) process_one_work (kernel/workqueue.c:3314) worker_thread (kernel/workqueue.c:3397) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) 구성 요소를 역참조하기 전에 StructureSize2를 담고 있을 만큼 충분히 큰지 여부를 거짓으로 Reject한다"},
CVE-2026-64577
2026년 8월 5일리눅스 커널에서 다음 취약점이 해결되었다: gtp: skb_pull_data()의 반환 값을 gtp1u_send_echo_resp()에서 검사한다 gtp1u_send_echo_resp()는 skb_pull_data()의 반환 값을 무시한다. 이를 호출하는 gtp1u_udp_encap_recv()는 16바이트(udphdr + gtp1_header)만 보장하지만, pull 요청은 20바이트(gtp1_header_long + udphdr)다. 16~19바이트의 에코 요청에 대해서는 pull이 실패하고 반환 값이 NULL이 되며 데이터가 advance되지 않고; 실행은 계속되며, 그다음의 skb_push()와 iptunnel_xmit()에 의해 IP 헤더가 skb->head 아래로 이동하여 skb_under_panic()를 촉발한다. skb_pull_data() 실패 시 패킷을 드롭(drop)함으로써 수정한다. skbuff: skb_under_panic: ... 커널 BUG: net/core/skbuff.c:214에서 발생! Call Trace: skb_push (net/core/skbuff.c:2648) iptunnel_xmit (net/ipv4/ip_tunnel_core.c:82) gtp_encap_recv (drivers/net/gtp.c:701 drivers/net/gtp.c:808 drivers/net/gtp.c:920) udp_queue_rcv_one_skb (net/ipv4/udp.c:2388) ... 커널 패닉 - 동기화 중단: 인터럽트에서 치명적 예외
CVE-2026-64576
2026년 8월 5일리눅스 커널에서 다음 취약점이 해결되었습니다: nexthop: nh_res_bucket_migrate()에서 extack를 초기화합니다 nh_res_bucket_migrate()는 call_nexthop_res_bucket_notifiers()에 초기화되지 않은 netlink_ext_ack를 전달합니다. nh_notifier_res_bucket_info_init()가 실패하면(e.g. kzalloc이 -ENOMEM을 반환), 에러가 notifier가 extack._msg를 설정하기 전에 상기 경로로 전달되며, 에러 경로는 오래된 포인터를 pr_err_ratelimited("%s\n", extack._msg)로 포맷합니다. CONFIG_INIT_STACK_NONE일 때 이로 인해 초기화되지 않은 스택 메모리에 역참조가 발생합니다: Oops: 일반 보호 결함, 비정상적인 주소일 가능성 … KASAN: 범위 [...]의 잘못된 메모리 접근 가능성 RIP: 0010:string (lib/vsprintf.c:730) vsnprintf (lib/vsprintf.c:2945) _printk (kernel/printk/printk.c:2504) nh_res_bucket_migrate (net/ipv4/nexthop.c:1816) nh_res_table_upkeep (net/ipv4/nexthop.c:1866) rtm_new_nexthop (net/ipv4/nexthop.c:3323) rtnetlink_rcv_msg (net/core/rtnetlink.c:7076) netlink_sendmsg (net/netlink/af_netlink.c:1900) Kernel panic - not syncing: Fatal exception 오류 경로에서 _msg가 설정되지 않은 경우 NULL이 되도록 extack를 0으로 초기화합니다."
CVE-2026-64575
번역 확인 필요2026년 8월 5일리눅스 커널에서 다음 취약점이 해결되었습니다: bpf: tcp: 배치 재할당에서 이중 소켓 해제 수정 bpf_iter_tcp_batch()는 현재 배치를 bpf_iter_tcp_put_batch()를 통해 해제하며, 이는 소켓 참조를 제거하고 각 슬롯을 소켓 쿠키로 다시 기록한 후 배치를 확장합니다. cur_sk/end_sk는 bpf_iter_tcp_resume()를 위해 남겨두지만, 재할당 실패 시 resume가 실행되기 전에 ERR_PTR()를 반환하므로 쿠키를 소켓 포인터가 아닌 상태로 담은 슬롯 위에서 cur_sk < end_sk가 남게 됩니다. bpf_iter_tcp_seq_stop()은 다시 한 번 bpf_iter_tcp_put_batch()를 호출하고 쿠키를 구조체 sock으로 역참조합니다. 실패 경로에서 배치를 비워 stop()이 이를 다시 해제하지 않도록 합니다. 소켓은 이미 첫 번째 bpf_iter_tcp_put_batch()에 의해 해제되었으므로 누출은 없고, 이후 read()가 버킷을 처음부터 다시 스캔하여 건너뛰지 않습니다. 형제 경로인 GFP_NOWAIT 실패 경로는 여전히 실제 소켓 참조를 보유하고 있으며 stop()이 해제하도록 남겨둡니다. 버그: KASAN: NULL 포인터 역참조 in __sock_gen_cookie 작업 exploit에 의해 8바이트 읽음 위치 0x59에서 읽음 ... __sock_gen_cookie (net/core/sock_diag.c:28) bpf_iter_tcp_put_batch (net/ipv4/tcp_ipv4.c:2918) bpf_iter_tcp_seq_stop (net/ipv4/tcp_ipv4.c:3270) bpf_seq_read (kernel/bpf/bpf_iter.c:205) vfs_read (fs/read_write.c:572) ksys_read (fs/read_write.c:716) do_syscall_64 entry_SYSCALL_64_after_hwframe 커널 패닉 - 동기화 중단: 치명적 예외 "