총 15,720건
CVE-2026-99491
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: HID: wacom: Fix Use-After-Free in wacom_intuos_pad wacom_intuos_pad() accesses wacom->shared->touch_input locklessly inside the interrupt handler context. If the Touch sibling device is disconnected, wacom_remove_shared_data() clears 'touch_input' outside any lock, creating a Time-of-Check to Time-of-Use (TOCTOU) race condition where a preempted reader in interrupt context dereferences the freed pointer, leading to a Use-After-Free. Resolve this by introducing RCU protection for the touch_input pointer: - Annotate 'touch_input' in wacom_shared struct with __rcu - Wrap all lockless readers in wacom_wac.c with guard(rcu)() and rcu_dereference() using a unified wacom_report_touch_mute() helper - Update writers in wacom_sys.c using rcu_assign_pointer() - Call synchronize_rcu() in wacom_remove_shared_data() to ensure all active RCU readers have finished before the input device is freed Also wrap wacom_set_shared_values() and touch/pen assignments in wacom_add_shared_data() inside the wacom_udev_list_lock to serialize concurrent probe assignments, and verify that 'shared->touch == hdev' before setting touch_input to prevent concurrent sibling probe state desynchronization.
CVE-2026-99490
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: HID: wacom: Fix Use-After-Free in wacom_bamboo_pad wacom_bamboo_pad_pen_event() accesses wacom->shared->pen locklessly relative to wacom_remove_shared_data() which nullifies it. This can lead to a Use-After-Free if the sibling device is removed while events are being processed. Resolve this by introducing RCU protection for pen and touch pointers: - Annotate 'pen' and 'touch' in wacom_shared struct with __rcu. - Wrap lockless readers in wacom_bamboo_pad_pen_event() with rcu_read_lock() and rcu_dereference(). - Update writers in wacom_sys.c using rcu_assign_pointer(). - Use rcu_dereference_protected for comparisons under wacom_udev_list_lock. - Also use rcu_access_pointer in wacom_sibling_pending() and wacom_mode_change_work() to avoid warnings (while lockless access in the latter remains a pre-existing issue).
CVE-2026-99489
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: HID: wacom: Redesign shared sibling data lifecycle The Wacom driver coordinates state between sibling interfaces of the same physical device using a shared structure 'wacom_shared' inside 'wacom_hdev_data'. The driver kept a volatile representative pointer 'data->dev' pointing to a sibling 'hid_device' for physical path comparisons during sibling matching. This pointer management is fragile. When the representative device is disconnected, wacom_remove_shared_data() failed to clear/update 'data->dev', leading to a Use-After-Free vulnerability when subsequent sibling probes dereference the dangling 'data->dev' pointer. Resolve this issue by redesigning the sibling data lifecycle: - Eliminate the volatile 'data->dev' representative pointer completely - Redesign 'wacom_hdev_data' to store stable static copies of the required attributes upon first allocation: 'phys' path string, 'vendor', 'product' IDs and the sibling's 'device_type' - Use these static attributes for stable sibling matching in wacom_are_sibling() and wacom_get_hdev_data() This ensures sibling matching remains safe and stable even if individual siblings are dynamically added or removed. To secure the lifecycle against concurrent probe/disconnect races: - Switch kref_put() to kref_put_mutex() in wacom_remove_shared_data() to serialize refcount drops with list traversal and lookup - Modify wacom_release_shared_data() to assume the list lock is already held Also, do not accumulate the 'device_type' capability flag during subsequent sibling probes. Keeping only the first probed sibling's device_type exactly preserves the original sibling matching behavior without introducing side effects.
CVE-2026-99488
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: klist: avoid accesses after waking klist_remove() klist_remove() waits until a node is unreferenced so that its caller can free the containing object. klist_release() currently publishes waiter->woken and wakes the waiter before its final accesses to the waiter and node. klist_remove() can then return, allowing its stack waiter and the containing object to be freed or reused while klist_release() is still running. In particular, bus_remove_driver() can free drv->p while __device_attach() walks the same bus klist with bus_for_each_drv(). On an arm64 Cortex-A72 system, an unpatched 7.2.0-rc3 kernel with CONFIG_PREEMPT_RT=y and CONFIG_KASAN=y reproduced the bug through the in-tree I2C/at24 path. KASAN reported a use-after-free in klist_dec_and_del() reached from klist_next()/bus_for_each_drv() while at24 was being unregistered. Clear n_klist and take a task reference before publishing woken. Use release/acquire accesses for that publication and wake the referenced task. The task reference keeps the waiter task alive if it returns and exits before wake_up_process().
CVE-2026-99487
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: rust: bug: pass TAINT_WARN to warn_slowpath_fmt() on UML On UML, `warn_flags!` calls `warn_slowpath_fmt()` directly. Its third argument is a taint number, but `warn_on!` passes its bug flags there. As a result, `add_taint()` gets 2304 instead of 9 (`TAINT_WARN`). The warning is not recorded: `/proc/sys/kernel/tainted` stays 0 after `warn_on!` fires, where it should be 512. It also causes an out-of-bounds write in `add_taint()`. Pass `TAINT_WARN` directly, as C does on UML.
CVE-2026-99486
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: rust: configfs: fix data offset calculation for subsystem callbacks `get_group_data()` chooses between `Group::<Parent>::container_of()` and `Subsystem::<Parent>::container_of()` based on whether `this` represents the root group of a configfs subsystem. It detects this by checking `(*this).cg_subsys.is_null()`, but `link_group()` in `fs/configfs/dir.c` unconditionally sets `cg_subsys` for every `config_group` attached anywhere in a registered subsystem, including the subsystem's own `su_group`. The only `config_group` with a NULL `cg_subsys` is the configfs root, on which userspace cannot trigger callbacks. The check is therefore always false at runtime, and the `Subsystem` branch is dead. Subsystem-level callbacks reach the `Group` branch and may read `data` at the wrong offset. Thus change the `is_root` check to correctly identify whether a group is a root group by comparing `this` to `subsys.su_group`. [ Andreas: Fix clippy warning on 1.85.0 by moving safety comment. ]
CVE-2026-99485
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었습니다: accel/amdxdna: 시작 실패 시 메일박스 채널 포인터를 지웁니다 aie2_create_context()가 메일박스 채널을 할당하고 채널을 시작하며, 시작 실패 시 다시 해제합니다: hwctx->priv->mbox_chann = xdna_mailbox_alloc_channel(ndev->mbox); ... ret = xdna_mailbox_start_channel(hwctx->priv->mbox_chann, ...); if (ret) goto free_channel; ... free_channel: xdna_mailbox_free_channel(hwctx->priv->mbox_chann); hwctx->priv->mbox_chann은 해제된 채널을 가리키고 남아 있습니다. 이 포인터는 하드웨어 컨텍스트가 사용 가능한 채널을 가지는지에 대한 드라이버의 자체 테스트로 사용됩니다: aie2_destroy_context()는 NULL일 때 조기에 반환하고, aie2_sched_job_run()은 NULL에서 작업 실행을 거부하며, 메시지 헬퍼는 NULL일 때 -ENODEV를 반환합니다. 이 낡은 포인터는 모든 검사에서 통과합니다. 이는 재시작 경로에서 중요합니다. aie2_hwctx_restart()는 이미 실행 중인 하드웨어 컨텍스트에서 다시 aie2_create_context()를 호출합니다. 이때 aie2_hwctx_stop()가 채널을 해체한 뒤로, 컨텍스트가 실패를 버티면 남아 있는 포인터가 NULL이 아닌 경우를 통해 계속 사용됩니다: aie2_sched_job_timedout()는 반환 값을 전부 버리고, aie2_hwctx_resume()는 이를 전파할 뿐입니다. 남은 것은 해제된 채널을 보유한 실행 중인 하드웨어 컨텍스트이며, 이후의 모든 사용자도 NULL이 아닌 브랜치를 택합니다: - 다음에 제출되는 작업이 해제된 채널에서 xdna_mailbox_send_msg()에 도달합니다: aie2_sched_job_run()의 !mbox_chann 가드에 의해, - 두 번째 명령 시간 초과가 aie2_hwctx_stop() -> aie2_destroy_context()로 이어집니다, - 장치를 닫으면 aie2_hwctx_fini() -> aie2_release_resource() -> xrs_release_resource() -> aie2_xrs_unload() -> aie2_destroy_context()를 호출합니다, 그리고 aie2_destroy_context()는 이후에 xdna_mailbox_stop_channel()을 호출하고 이미 해제된 메모리에서 xdna_mailbox_free_channel()을 수행합니다: 해제 후 해제(use-after-free) 및 동일 채널의 이중 해제가 발생합니다. AIE4 관리 채널은 이미 이 문제를 올바르게 처리합니다 - aie4_mailbox_start()는 해제 후 곧 ndev->aie.mgmt_chann을 지웁니다. 이와 같이 여기에서도 동일하게 처리해야 합니다. 생성 경로 자체에는 영향이 없습니다: aie2_xrs_load()가 실패하면 xrs_allocate_resource()가 풀이 노드를 제거하고, ->unload를 호출하지 않으며, aie2_hwctx_init()가 hwctx->priv를 해제하므로 낡은 포인터가 이를 소유하는 구조보다 더 오래 남지 않습니다. 채널을 시작하는 과정은 오늘날 이 패치가 없으면 실패할 수 있습니다: 펌웨어가 보고하는 링 버퍼 크기는 두 크기가 모두 2의 거듭제곱이 아닐 때 거부되며, request_irq()도 실패할 수 있습니다.
CVE-2026-99484
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었습니다: ALSA: emux: note-on 시 음색(zone)에서의 UAF(해제 후 사용) 수정 snd_emux_note_on()은 snd_soundfont_search_zone()를 통해 일치하는 zone를 찾는데, 이때 sflist->lock을 조회 중에만 사용하고 해제한 뒤 원시 zone 포인터를 반환합니다. 호출자는 이를 vp->zone에 보호 없이 저장합니다. 한편, 동시 실행 중인 SNDRV_EMUX_IOCTL_REMOVE_LAST_SAMPLES ioctl은 snd_soundfont_remove_unlocked()에서 이러한 zone을 연결 해제하고 해제할 수 있습니다. 이로 인해 snd_emux_note_on()에서 의도치 않게 use-after-free가 발생하고, 이후 cached vp->zone에 접근하는 경우에도 문제가 생깁니다(예: snd_emux_send_effect()). zone 조회 및 음성 설정 전체에 걸쳐 snd_emux_note_on()에서 sflist->lock을 보유하도록 수정하고, snd_soundfont_search_zone()가 호출자에게 락 보유를 요구하도록 변경합니다. 또한 snd_soundfont_lock_preset()은 설정된 presets_locked를 위해 sflist->lock을 사용하므로 제거 경로가 note-on 종료와 동기화되도록 했습니다.
CVE-2026-99483
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ALSA: pcmtest: handle multiple wraps in random capture fill The random capture helpers assume that the data generated for one timer tick wraps the DMA ring at most once. However, b_rw describes 200 ms of audio because the timer runs at 5 Hz, so it can be several times larger than a small ring. For 48 kHz, S16_LE, four-channel capture with a 512-frame buffer, the DMA ring is 4096 bytes while one tick generates 76800 bytes. After filling the 4096-byte tail, the existing code issues a second 72704-byte write from the ring base, writing 68608 bytes beyond the ring. Both interleaved and non-interleaved capture are affected. KASAN reports the first write into the adjacent free page as a use-after-free in the random-byte generator. The underlying defect is an out-of-bounds write from the live DMA ring, not a stale DMA allocation. Split each random write repeatedly at the interleaved ring or per-channel block boundary. Keep the hardware-pointer update exactly once after the complete logical write. The issue reproduced on three of three clean boots. With this change, the same vulnerable geometry completed six times without a sanitizer finding. Boundary, pattern-fill, no-timer, open/close, and module-reload controls also completed normally. snd-pcmtest is a test driver, and selecting random fill requires an administrator-controlled module parameter. The written values come from the kernel random generator; no privilege escalation or attacker-controlled write primitive was demonstrated.
CVE-2026-99482
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ASoC: amd: ps: fix snd_acp63_remove() teardown ordering The ACP IRQ handlers dereference the SoundWire, SoundWire DMA, and PDM child platform devices, but snd_acp63_remove() unregisters them while the interrupt is still held by devres, which frees it only after remove returns. An interrupt in this window is a use-after-free. Mask the ACP interrupt sources and call devm_free_irq() before the first child device is unregistered. The masking goes through the new acp_hw_ops->disable_interrupts callback, keeping the remove path platform-agnostic. The interrupt line is shared, and acp_hw_deinit() clears the sources only after the children are gone, which would leave the line raised with no handler left to ack it. The window predates the tagged refactor, which only reshaped the dereferences. devm_free_irq() waits for in-flight handlers, but not for work the hardirq has already queued: acp63_irq_handler() schedules amd_sdw_irq_thread on the SoundWire manager. Draining that work in the manager's remove path is a soundwire-side change and follows separately. This issue was found by an in-house static analysis tool.
CVE-2026-99481
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_vhci: Pin module for debugfs file operations An open debugfs file retains its file_operations pointer in the debugfs proxy state. However, force_suspend_fops, force_wakeup_fops, aosp_capable_fops, and force_devcoredump_fops have no .owner set to THIS_MODULE. As a result, full_proxy_open_regular() calls fops_get() which succeeds without taking a reference to the hci_vhci module. When userspace opens any of these debugfs files and later closes the /dev/vhci file descriptor (triggering vhci_release() and debugfs file removal), the open debugfs file descriptor remains valid in userspace. Because the module refcount was not incremented, the hci_vhci module can be unloaded via delete_module (rmmod hci_vhci). When the userspace process subsequently closes the debugfs file descriptor, full_proxy_release() accesses the already unmapped file_operations structure, resulting in a kernel page fault / oops: BUG: unable to handle page fault for address: fffffbfff846f18b #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page Oops: Oops: 0000 [#1] SMP KASAN NOPTI RIP: 0010:full_proxy_release+0x8e/0x140 Call Trace: <TASK> __fput+0x39f/0xa60 fput_close_sync+0xff/0x200 __x64_sys_close+0x8c/0xf0 do_syscall_64+0xc3/0x590 entry_SYSCALL_64_after_hwframe+0x76/0x7e </TASK> Modules linked in: ... [last unloaded: hci_vhci(E)] The issue was discovered via manual code audit of drivers/bluetooth/hci_vhci.c and verified on a Linux 7.3-rc6 test VM with CONFIG_BT_VHCI=m by keeping a debugfs file open across controller teardown and module unload. Set .owner = THIS_MODULE on all four file_operations structures so that debugfs pins the module until all file descriptors are closed.
CVE-2026-99480
2026년 11월 20일리눅스 커널의 취약점이 해결되었습니다: drm/panthor: GROUP_REGISTERED 체크와 제거 간의 TOCTOU 경쟁 조건 수정 panthor_group_destroy()는 GROUP_REGISTERED 마크를 확인한 다음 xa_erase()를 호출하는데, 두 동작에 대해 xa_lock()을 보유하지 않으면 서로 간에 다른 스레드가 핸들을 파괴하는 동안 또 다른 GROUP_CREATE가 이미 해제된 ID를 재사용할 수 있어, 처음 파괴된 객체가 새로운 초기화 중인 그룹을 지우고 해제하여 panthor_group_create()에서 use-after-free가 발생합니다. 마크 확인과 제거를 xa_lock() 아래에서 원자적으로 수행합니다.
CVE-2026-99479
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: fbdev: atmel_lcdfb: Prevent FIFO work after removal The LCD controller IRQ schedules sinfo->task to recover from a FIFO underflow. Probe currently requests the IRQ before initializing the work, so an early interrupt can schedule an uninitialized work item. The probe error path and remove path cancel the work before freeing the IRQ. A FIFO-underflow interrupt can schedule the work again after that cancellation. framebuffer_release() may then free sinfo while the work is still pending. KASAN reported a use-after-free in atmel_lcdfb_task() when an underflow interrupt occurred during removal. With the IRQ freed before the work was cancelled, the same test completed without a kernel diagnostic. Initialize the work before requesting the IRQ. In both cleanup paths, free the IRQ before cancelling the work so that it cannot be scheduled again after cancellation.
CVE-2026-99478
2026년 11월 20일Linux 커널에서 다음 취약점이 해결되었다: filelock: 대리 위임 대기 동안 슈퍼블록을 활성 상태로 유지 try_break_deleg()가 위임된 inode를 반환한 후에도 break_deleg_wait()가 끝나기 전에 호출자가 경로를 버리면, struct delegated_inode에 보유된 추가 inode 참조가 슈퍼블록을 활성 상태로 유지하지 못한다. 느슨한 마운트 해제 후 위임 홀더를 닫으면 마지막 마운트 참조를 해제하고 다른 태스크가 위임 해제 대기를 하는 동안 슈퍼블록이 종료될 수 있다. 대기자의 최종 iput()는 파일시스템의 eviction 코드에 진입한 다음에 슈퍼블록-프라이빗 상태가 해제되었을 수 있다. 이는 shmem_evict_inode()에서 KASAN 이용 후 해제(use-after-free)로 관찰되었다. try_break_deleg()가 위임된 inode를 저장할 때, 호출자가 여전히 마운트를 고정하고 있는 동안 슈퍼블록에 대한 활성 참조를 유지한다. break_deleg_wait()와 최종 iput() 동안 그 참조를 유지하고 deactivate_super()로 해제한다. 이는 mknod, mkdir, symlink 및 rmdir 경로를 포함하여 경로를 기다리기 전에 버리는 모든 호출자의 보호에 해당한다.
CVE-2026-99477
번역 확인 필요2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었다: fs/proc/task_mmu: do_pagemap_scan()에서 mm_users를 핀로 고정 PAGEMAP_SCAN ioctl은 /proc/<pid>/pagemap에서 얻은 MM에 대해 mmap_read_lock()을 참조를 보유하지 않은 상태에서 취한다. proc_mem_open()는 의도적으로 mm_count만 잡아두므로, 주소 공간에 접근하는 소비자는 먼저 mmget_not_zero()를 호출해야 한다. 이 파일의 다른 모든 소비자는 -- m_start(), do_procmap_query(), show_smaps_rollup() 및 pagemap_read()를 수행하지만, do_pagemap_scan()은 그렇지 않다. 참조가 없으면 대상이 exit_mmap()를 동시 진입할 수 있으며, exit_mmap()은 mmap_lock을 읽기 용도로만 잡고 unmap_vmas()를 호출하므로 스캐너를 배제하지 않는다. 일반 VMAs의 경우 이것은 무해하지만, free_pgtables() 및 remove_vma()가 추후에 mmap_write_lock 하에 실행된다. 공유된 hugetlb VMA는 다르게 동작한다: __hugetlb_zap_end()가 읽기 잠금을 가진 동안 VMA의 hugetlb_vma_lock을 해제한다. walk_hugetlb_range()는 따라서 vma->vm_private_data를 로드하고, 그 아래의 잠금이 해제된 상태에서 내려가(read)한 rw_semaphore를 해제한다. 로드는 해제 측에서 포인터를 지우기 전에 일어나므로 이는 널 포인터 역참조가 아니라 해제 후 사용(use-after-free)이다. 권한이 없는 사용자는 hugetlb_noresrve 조기 반환 시 VM_NORESERVE가 설정되지 않은 경우에도 큰 페이지가 구성되지 않은 상태로 이 문제에 도달할 수 있다. 스캔 동안 mm_users를 고정하고, 다른 소비자들이 하는 방식처럼 하라. 종료 중인 태스크의 mmput()은 진행 중인 워크에서 exit_mmap()에 더 이상 도달할 수 없다. [[email protected]: !mm에 대한 불필요하고 바람직하지 못한 테스트 제거]
CVE-2026-99476
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었다: fsverity: 롤백이 더 이상 불가능한 후에만 S_VERITY를 설정 커밋 f77f281b6118 ("fsverity: 해시테이블을 사용하여 fsverity_info를 찾는다")은 FS_IOC_ENABLE_VERITY의 구현을 변경하여 동시 읽기가 이전보다 fsverity 검증을 약간 더 일찍 거치게 했다. enable_verity()가 fsverity_set_info()를 호출할 때가 아니라 ->end_enable_verity()가 S_VERITY를 설정하는 때에 그렇게 되었다. 그러나 ext4와 btrfs는 S_VERITY를 설정한 후에 verity를 롤백할 수 있어 사용 후 해제가 발생한다. 이 문제를 ext4와 btrfs가 롤백이 더 이상 불가능한 때에만 S_VERITY를 설정하도록 하여 수정한다. 실패 시에는 S_VERITY를 롤백하지 않고 파일시스템 특정 verity 플래그만 롤백한다. 또한 향후 이 버그의 발생에 더 안전하게 처리하기 위해 enable_verity()를 업데이트하여 경고를 출력하고 fsverity_info를 해제하지 않도록 한다. 마지막으로 주석을 조정한다. 하나를 명확히 하고, 다른 주석에서 해당 정보를 ->end_enable_verity()의 적절한 위치로 이동시킨다.
CVE-2026-99475
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: genirq: Defer kfree(irqaction) until irq_thread_dtor() finishes When an interrupt thread exits abnormally via do_exit() (e.g. the interrupt handler oopses) without returning from irq_thread(), a concurrent call to free_irq() could free the irqaction before the irq_thread_dtor() exit task work runs. irq thread (oopsed) free_irq() ------------------- ---------- do_exit() exit_mm() complete_vfork_done() -------> kthread_stop() returns exit_files() ... kfree(action) exit_task_work() irq_thread_dtor() action->... <- use-after-free Track the pending exit work with the IRQTF_EXIT_WORK thread flag, and have __free_irq() wait for the bit to clear before kfree(). irq_thread_dtor() only runs on irq_thread abnormal exit. If that dtor also faults, free_irq() will hang indefinitely, but double IRQ thread faults require a reboot anyways. [ tglx: Add missing include ]
CVE-2026-99474
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: HID: hiddev: keep state alive through disconnect unlock mutex_unlock() clears the mutex owner before taking its wait lock. A thread spinning in the final hiddev file release can acquire existancelock after hiddev_disconnect() clears the owner, then free hiddev before the disconnecting thread reaches the mutex wait lock. This causes a use-after-free in the mutex slow unlock path. Give the connection and each open file an explicit reference. Drop each reference only after its existancelock critical section has completed, so neither unlock path can free the mutex while the other is still using it.
CVE-2026-99473
2026년 11월 20일리눅스 커널의 다음 취약점이 해결되었습니다: KVM: guest_memfd: memslot 바인딩 시 xarray 오류를 정상적으로 처리 guest_memfd의 바인딩에 memslot를 삽입하는 과정에서 xarray 실패가 발생하면, 호출자에게 오류를 되돌려주고 즉시 memslot 생성을 실패시킵니다. 성공을 signaling하고 memslot 생성을 계속하는 것은 use-after-free를 초래합니다. 파일이 해제된 후에도 memslot를 통해 guest_memfd 인스턴스에 접근할 수 있게 되므로(kvm_gmem_release()가 유효한 바인딩이 없기 때문에 파일 포인터를 NULL로 바꾸지 않음). KVM_MEMSLOT_GMEM_ONLY가 이미 설정된 경우 Opportunistically WARN를 발생시키고 바인딩을 거부합니다. 이는 다른 부분의 실수로부터 보호하기 위함이기도 하지만, 주로 실패 시 롤백 시 플래그를 지워야 하는 문제를 방지하기 위함입니다. 언와인드(unwind)와 관련하여, 슬롯은 바인딩에 삽입하기 전에 완전히 준비되어 있어야 하며, 이 시점에서 슬롯은 Reachable이 됩니다. 즉, 더 이상 보기 싫은 언와인을 피하기 위해 슬롯을 업데이트하는 것은 옵션이 아닙니다. 언와인의 일부로 관련 바인딩을 명시적으로 NULL로 설정합니다. xarray는 범위를 채울 때 엔트리의 하위 집합을 저장할 수 있습니다.
CVE-2026-99472
2026년 11월 20일Linux 커널에서 다음 취약점이 해결되었습니다: KVM: pfncache: 캐시 새로 고침을 위해 전용 무효화 시퀀스를 사용 gfn_to_pfn_cache 새로 고침 경로는 gpc->lock를 해제한 상태에서 HVA->PFN 조회를 완료하는 mmu notifier 무효화를 방지합니다. hva_to_pfn_retry()가 kvm->mmu_invalidate_seq를 샘플링하고 변경되었거나 mn_active_invalidate_count가 여전히 상승한 경우 재시도합니다. 이는 HVA 기반 캐시에는 불충분합니다. mmu_invalidate_seq는 무효화된 범위가 memslot과 겹칠 때만 kvm_mmu_invalidate_end()에 의해 앞으로 나아가며, Xen 공유 정보 페이지가 KVM_XEN_ATTR_TYPE_SHARED_INFO_HVA로 매핑된 HVA 기반 캐시는 전혀 memslot으로 백업될 필요가 없을 수 있습니다. 조회 창 내부에서 시작되고 끝나는 캐시 HVA의 무효화는 재시도 검사에 보이지 않으므로 mn_active_invalidate_count가 0으로 돌아가고 시퀀스가 한 번도 움직이지 않습니다. 이로 인해 이미 해제된 페이지의 매핑이 게시되고 다음 읽기가 이를 역참조하게 됩니다: BUG: KASAN: use-after-free in kvm_xen_shared_info_init+0x3c6/0x440 addr ffff8880599c2900에서 크기 4 읽기 task syz.2.383/7257 gfn_to_pfn_cache_invalidate_start()가 현재 유효하지 않은 캐시(진행 중인 새로 고침이 있는 캐시 포함, 새로 고침이 유효 플래그를 지우고 잠금을 해제하기 전에)를 건너뛰기 때문에 재시도 검사는 유효성 검사 라인으로 가장 중요합니다. 이 검사는 모든 무효화에 대해 작동해야 하며 memslot에 닿는 무효화에만 해당하지 않습니다. mn_invalidate_lock 아래에서 mn_active_invalidate_count가 감소하기 전에 kvm_mmu_notifier_invalidate_range_end()에 의해 증가한 kvm->gpc_invalidate_seq를 추가하고, hva_to_pfn_retry()에서 mmu_invalidate_seq 대신 이를 확인합니다. 같은 임계 구역에서 in-progress 카운트와 함께 range_end()에서 증가시키는 것도 invalidate_range_start()가 실행된 후에만 경쟁적으로 활성화된 캐시의 변이를 닫습니다. 같은 버그는 per-vCPU vcpu_info 캐시(KVM_XEN_VCPU_ATTR_TYPE_VCPU_INFO_HVA)를 통해서도 도달합니다. 이후 KVM_RUN에서 kvm_setup_guest_pvclock()에 의해 오래된 매핑이 역참조됩니다: BUG: KASAN: use-after-free in kvm_setup_guest_pvclock+0x5bf/0x660 이것은 refresh 재시도를 *관련 없는* mmu notifier 이벤트에서 의도적으로 수행합니다. 정밀도를 회복하고 GPC 잠금을 일반적으로 재작업하는 것은 차후 시퀀스로 남겨둡니다. 재현자: https://david.woodhou.se/xen_shinfo_race.c https://david.woodhou.se/vcpu_info_race.c