총 162,836건
CVE-2026-99823
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: x86/bugs: Mitigate TSA on AMD Zen5 Zen5 is affected by TSA too, along with a third variant called TSA_FILL. Detect the vuln there and mitigate it. For Zen5, a table of microcode revisions is not needed because appropriate microcode sets the VERW_CLEAR CPUID bit, which simplifies mitigation detection considerably.
CVE-2026-99822
2026년 11월 30일Linux 커널에서 다음 취약점이 해결되었습니다: sctp: 연결 대기 중에 트랜스포트를 보유 sctp_sendmsg_to_asoc()는 새 인터리브된 연결이 설정될 때까지 트랜스포트를 선택합니다. sctp_wait_for_connect()는 잠금이 해제된 상태에서 잠자다. 잠금이 해제된 상태에서 백로그 처리가 COOKIE ACK 및 선택된 트랜스포트를 제거하는 ASCONF DEL-IP를 처리할 수 있습니다. sctp_assoc_rm_peer()가 트랜스포트를 사망으로 표시하고 트랜스포트에 대한 연결 소유 레퍼런스를 제거합니다. 전송 경로가 재개되기 전에 트랜스포트가 RCU를 통해 해제될 수 있습니다. 대기 후에는 오래된 포인터가 새로 생성된 DATA 또는 I-DATA 청크에 할당되고 나중에 sctp_outq_select_transport()에서 역참조됩니다. 선택된 트랜스포트를 sctp_wait_for_connect() 동안 보유합니다. 소켓 잠금이 다시 획득되면 트랜스포트가 사망으로 표시된 경우 전송을 중단합니다. 선택된 트랜스포트가 없는 호출자는 NULL을 전달하고 기존 동작을 유지합니다.
CVE-2026-139801
2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: KVM: nSVM: SMRAM에서 복사된 vmcs01 저장 영역의 유효성 검사 수행 - RSM 시 RSM에서 L2로 넘어갈 때 SMRAM은 게스트 메모리에서 잘려 있어 게스트가 쓸 수 있습니다. SMRAM으로 다시 vmcb01에 복사된 후 L1의 상태를 검증해야 합니다. L1의 상태를 검증하지 않으면 MMU 컨텍스트 입력에 대해 KVM이 불가능한 CR4와 EFER 상태를 가지게 될 수 있습니다. 예를 들어 최근 강화된 FNAME(walk_addr_generic) 없이 게스트가 다음을 유발할 수 있습니다: ------------[ cut here ]------------ UBSAN: arch/x86/kvm/mmu/paging_tmpl.h:435:15에서 array-index-out-of-bounds 인덱스 3은 유형 'u32 [2]'의 범위를 벗어났습니다 CPU: 3 UID: 0 PID: 92 Comm: CPU 1/KVM Not tainted 7.3.0-rc1 #2 PREEMPT(lazy) 하드웨어 이름: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.17.0-0-gb52ca86e094d-prebuilt.qemu.org 2014/04/01 Call Trace: <TASK> dump_stack_lvl+0x5f/0x90 dump_stack+0x10/0x18 ubsan_epilogue+0x9/0x39 __ubsan_handle_out_of_bounds.cold+0x50/0x55 paging32_walk_addr_generic+0x889/0x970 paging32_page_fault+0x79/0xa60 kvm_mmu_do_page_fault+0x125/0x270 kvm_mmu_page_fault+0x88/0x7b0 npf_interception+0xc8/0x220 [kvm_amd] svm_invoke_exit_handler+0x16d/0x1d0 [kvm_amd] svm_handle_exit+0xb7/0x160 [kvm_amd] vcpu_enter_guest+0x428/0x16a0 kvm_arch_vcpu_ioctl_run+0x479/0x920 kvm_vcpu_ioctl+0x316/0xb00 __x64_sys_ioctl+0xa3/0x100 x64_sys_call+0x281/0x23d0 do_syscall_64+0xba/0x550 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x79bb30deb04b </TASK> ---[ end trace ]---
CVE-2026-139800
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: 9p/xen: drain response work after unbinding IRQ commit ea4f1009408e ("9p/xen : Fix use after free bug in xen_9pfs_front_remove due to race condition") added cancel_work_sync() to keep xen_9pfs_front_free() from freeing a ring while p9_xen_response() is still running. The work is currently drained before the event channel IRQ is unbound. That leaves a race window where xen_9pfs_front_event_handler() can run after cancel_work_sync() returns and queue p9_xen_response() again. The following unbind_from_irqhandler() synchronizes with the IRQ handler, but it does not cancel work that the handler already queued. The teardown can then free the ring and private data while the response work remains pending, and the worker later dereferences ring->priv and priv->client. Unbind the event channel IRQ before draining the work. Once the IRQ is unbound, no new response work can be queued by the backend event channel, and cancel_work_sync() waits for any work that was queued before or during the unbind. It is then safe to release the ring resources.
CVE-2026-139799
번역 확인 필요2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: mm/shmem: shmem_writeout()에서 퇴거( eviction )를 보류 shmem_writeout()가 folio를 페이지 캐시에서 스왑 캐시로 옮긴 후에는 folio 잠금이 더 이상 inode를 활성화하지 않습니다: 잘림(truncation)과 퇴거가 스왑 엔트리를 찾아 그것을 해제하고 아무도 기다리게 하지 않습니다. 이유는 swap_writeout()이 마지막으로 작동하던 시점에는 상관 없었습니다. 그러나 swap_writeout()가 AOP_WRITEPAGE_ACTIVATE를 반환할 때 folio를 다시 삽입하기 때문에 이후에 매핑(mapping)과 inode을 사용합니다: reclaim 삭제되지 않은 파일의 마지막 닫힘 shmem_writeout() shmem_delete_from_page_cache() swap_writeout() zswap_store() 실패 shmem_evict_inode() writeback이 비활성화되었음 shmem_truncate_range() return AOP_WRITEPAGE_ACTIVATE shmem_free_swap() destroy_inode() ... RCU 그레이스 기간, 해제됨 shmem_add_to_page_cache(mapping) xas_lock_irq() <- 해제 후 사용(use after free) swap_writeout()은 zswap이 활성화된 경우에도 이처럼 동작하며, folio를 가져올 수 없고 memcg 또는 그 조상 중 하나의 memory.zswap.writeback이 0으로 설정되어 있을 수 있습니다. shmem_unuse()는 이미 이를 처리하기 위한 인프라를 추가했습니다. 페이지 캐시에서 folio를 제거하기 전에 카운터를 증가시키고, swap_writeout() 및 재삽입 시도와 inode 회계 이후에 카운터를 감소시킵니다. shmem_evict_inode()에서 swapoff이 이미 inode를 스왑 목록에서 제거했더라도 카운터가 0이 될 때까지 대기합니다. 코드를 더 쉽게 이해하도록 몇 가지 보조 기능을 추가했습니다. 두 개의 스왑오프가 경쟁하는 남아 있는 이슈와 비어 있는 리스트 체크가 그 경쟁을 감지하지 못하는 문제가 남아 있습니다. 이는 나중에 별도로 해결될 예정입니다. 이 수정은 LLМ에 의해 생성되어 Josef Bacik이 privater 전달한 것입니다. [ david: 코드 정리; 설명 개선 ]
CVE-2026-139798
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: mm: do not unintentionally overwrite atomic VMA flags Patch series "mm: avoid losing atomic VMA flags", v1. Since commit 2ab7f1bbafc9 ("mm/madvise: allow guard page install/remove under VMA lock"), VMA_MAYBE_GUARD_BIT can be set atomically under the VMA read lock. However, a number of places wrongly assume the flags are stable under the read lock, which can cause stale atomic VMA flags to overwrite existing valid ones. Additionally, one case in which VMA_SOFTDIRTY_BIT was overwritten is also addressed. This series addresses each of these, while keeping the logic inline with existing conventions. Each patch in this series is a hotfix. This patch (of 4): madvise, mlock and mprotect take a copy of a VMA's flags holding only the VMA read lock, later writing it back under the write lock (in madvise_update_vma(), mlock_fixup(), mlock_vma_pages_range() and mprotect_fixup()). This was done on the assumption that VMA flags cannot change with a read lock held. However this changed in commit 2ab7f1bbafc9 ("mm/madvise: allow guard page install/remove under VMA lock"), which allowed VM_ATOMIC_SET_ALLOWED flags (currently only VMA_MAYBE_GUARD_BIT) to be written concurrently under a VMA read lock. The actual write itself is safe as this is done under the VMA write lock at which point no further concurrent writes can occur, however at this point the stale flags mean that these callers can unintentionally overwrite atomic flags incorrectly. The consequences of this are significant - a missing VMA_MAYBE_GUARD_BIT could result in page tables not being copied on fork (the vma_needs_copy() check can return false) or being overwritten on file-backed THP collapse (the file_backed_vma_is_retractable() can return true). Resolve the issue by always taking care to retain existing atomic flags when overwriting VMA flags, replacing the inconsistently named vma_flags_reset_once() with vma_overwrite_flags() to do so, and always invoking it when flags are overwritten like this. Reads are a problem too - madvise, mlock and mprotect all compare VMA flags without a VMA write lock held via vma_flags_same_pair(). This has more serious impact, as concurrent changes to atomic VMA flags can cause two sets of VMA flags to be wrongly considered different. For mprotect and madvise this causes a useless split, but mlock is impacted more seriously as it can result in mm->locked_vm underflow. Fix this by updating vma_flags_same_pair() to disregard VM_ATOMIC_SET_ALLOWED VMAs - VMA equality is the same as VMA mergeability, and atomic VMA flags are disregarded when comparing VMA flags for merge - so this is justified semantically. Additionally, remove the redundant vma_flags_same_mask() and the unused vma_flags_same() as part of the change, and replace VM_ATOMIC_SET_ALLOWED with VMA_ATOMIC_SET_ALLOWED, using the new VMA flag API. Finally, update userland VMA tests to reflect the changes.
CVE-2026-139797
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: ocfs2/cluster: hold a reference on the heartbeat thread Since commit 688bc88e2046 ("ocfs2/cluster: keep heartbeat local node stable"), o2hb_thread() leaves its loop and returns when the local node changes, for example after "echo 0 > node/<name>/local". The thread was started with kthread_run() and nothing holds a reference to its task_struct, so the task is freed once it exits, while reg->hr_task still points to it. Reading the region's pid attribute then reads the freed task, and removing the region calls kthread_stop() on it: BUG: KASAN: slab-use-after-free in o2hb_region_pid_show+0xb3/0xc0 refcount_t: addition on 0; use-after-free. Oops: Oops: 0000 [#1] SMP KASAN NOPTI RIP: 0010:kthread_stop+0xb1/0x390 The thread could already return by itself before, when heartbeat start was aborted or on an unclean stop, but the local node change makes it reachable from userspace at any time. Create the thread, take a reference on it and only then wake it, so the reference cannot race with the thread exiting. Drop it with kthread_stop_put().
CVE-2026-139796
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: ocfs2/heartbeat: serialize concurrent writes to a region's dev attribute o2hb_region_dev_store() checks reg->hr_bdev_file to see if the region is already started, but nothing stops two writers from doing that at the same time. configfs only serializes writes through the same open file, so two processes that each open the dev attribute can both get past the check: A: hr_bdev_file is NULL, opens file A, sets hr_bdev_file = A B: hr_bdev_file is NULL, opens file B, sets hr_bdev_file = B A: start fails, fput(hr_bdev_file) drops B, sets it to NULL B: start fails, fput(NULL) Both calls also use the same hr_slots, hr_slot_data and hr_tmp_block, so the error paths can free the slot data twice. syzbot hit the fput(NULL) with an unbound loop device, where every start fails with -EIO. With four threads doing the same thing on a KASAN kernel I get both crashes within a second: BUG: KASAN: double-free in o2hb_unmap_slot_data+0x14d/0x2f0 BUG: kernel NULL pointer dereference, address: 0000000000000158 Add a mutex to the region and hold it in dev_store(), in the block_bytes, start_block and blocks stores, and in dev_show(), since they all look at hr_bdev_file. dev_store() cleans up with goto, so it takes the mutex in a small wrapper rather than with guard(). The mutex is dropped while dev_store() waits for the heartbeat to become steady, which takes seconds, so a read of dev doesn't stall behind a start. hr_bdev_file is already set at that point, so other writers still get -EINVAL, and the cleanup after the wait retakes the mutex. With the patch the same test ran for 10 minutes with lockdep on and nothing was reported. So did a second one, with a working loop device, that interrupts starts during the wait while other threads read and write the attributes.
CVE-2026-139795
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: net: mana: Add support to process throttled EQEs When an event queue nears full, the hardware coalesces the per-CQ GDMA_EQE_COMPLETION notifications into a single throttle EQE (type 4) that carries no cq_id. The driver does not handle this event type, so it falls through to the default case and is dropped. Any CQ whose completion notification was replaced by the throttle EQE can remain unserviced, causing its queue to stall. This was observed internally as a TX stall: ens1: NETDEV WATCHDOG: CPU: 45: transmit queue 1 timed out 15133 ms mana 7870:00:00.0: HWC: Request timed out: 60000 ms mana 7870:00:00.0: Gf stats wk handler: gf stats query timed out. ens1: NETDEV WATCHDOG: CPU: 20: transmit queue 0 timed out 15859 ms ens1: NETDEV WATCHDOG: CPU: 15: transmit queue 0 timed out 31731 ms ens1: NETDEV WATCHDOG: CPU: 21: transmit queue 0 timed out 47603 ms ens1: NETDEV WATCHDOG: CPU: 42: transmit queue 0 timed out 62451 ms Handle the throttle EQE: - Record up to two child CQs per EQ when a CQ is created with a parent EQ. A mana_en EQ serves one TX CQ and one RX CQ, and the HWC EQ serves the HWC CQ. - On a throttle EQE, call the callback of each child CQ that is still in cq_table[]. - Before a child CQ is freed, unlink it from its parent EQ and from cq_table[] in mana_gd_detach_cq(), then wait for an RCU grace period, because mana_gd_intr() reads both under rcu_read_lock(). mana_destroy_txq() and mana_destroy_rxq() detach the CQ before deleting its NAPI, so the synchronize_net() that NAPI deletion already needs also covers the CQ. mana_hwc_destroy_channel() detaches the HWC CQ and waits for a grace period before freeing the HWC queues. - Advertise the capability bit for throttled EQE. - Add a throttle eqe counter per queue.
CVE-2026-139794
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to fetch ino via ino_of_node() under cache lock In f2fs_writeback_node_caches(), it's better to fetch ino via ino_of_node() under cache lock, otherwise, node cache content may become stale after cache is unlocked due to racing w/ truncation. Commit 493b9dc8b52c ("f2fs: cache: use node cache") fixes similar issue in f2fs_flush_inline_data() introduced in commit 34c061ad85a2 ("f2fs: Avoid double lock for cp_rwsem during checkpoint").
CVE-2026-139793
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: inet: frags: bound the wmem charge of the socket completing a reassembly When a socket owned fragment completes a reassembly queue, inet_frag_reasm_prepare() and inet_frag_reasm_finish() charge the truesize of all other fragments to its sk_wmem_alloc. These fragments were orphaned when queued, and might have been sent by someone else, for instance padded TUN packets. Commit 3ae20e4697eb ("inet: frags: limit the truesize of a reassembly queue") bounds this charge to INT_MAX / 2 per queue, but a socket can complete several queues while the reassembled skbs are still alive, for instance held in a qdisc. sk_wmem_alloc can then go past INT_MAX, refcount_add() saturates it with a WARN, and the socket is leaked. This is reachable from an unprivileged user/network namespace, by raising ipfrag_high_thresh. Refuse the reassembly if the charge would push sk_wmem_alloc above 2 * sk_sndbuf, the bound ip_append_data() uses, plus 4MB of slack for fragments inflated by a refragmentation with a small MTU, and never above INT_MAX / 2. The cap matters for tun sockets, which use sk_sndbuf = INT_MAX, and whose skbs are still owned when act_ct or openvswitch reassemble them at ingress. Several queues can complete at the same time on different cpus for the same socket, so the charge is reserved with a cmpxchg() loop in inet_frag_reasm_prepare(), before it modifies the queue, and settled in inet_frag_reasm_finish(). Move the size checks of ip_frag_reasm(), ip6_frag_reasm() and nf_ct_frag6_reasm() before inet_frag_reasm_prepare(), using the first fragment which becomes the head, so that a successful inet_frag_reasm_prepare() is always followed by inet_frag_reasm_finish(). All callers already kill the queue when inet_frag_reasm_prepare() returns NULL. Found by code inspection (AI review), not reproduced.
CVE-2026-139792
2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었다: ALSA: pcm: OSS 스트림에서 O_APPEND 열기를 차단 ALSA PCM 코어는 O_APPEND가 전달되면 기존 스트림을 재사용하는 것을 허용했으며, 이는 dmix 등에서 사용되어 왔다. 그러나 이 모드는 OSS에 대해 사용되도록 되어 있지 않다: OSS 스트림은 mmapped 상태에서도 hw_params/hw_refine 절차를 통해 재구성 가능하므로 단일 스트림의 사용만을 암시한다. 이로 인해 OSS 스트림에 대한 현대화된 검증이 스킵되며, 사용자가 O_APPEND로 기존 OSS 스트림에 연결할 수 있다면 매핑된 페이지의 UAF가 발생하여 권한 상승 익스플로잇으로 악용될 수 있다. 이를 해결하기 위해 이 패치는 OSS 스트림에서 O_APPEND 동작을 금지한다. OSS 레이어 자체에는 O_APPEND가 절대 사용되지 않으므로, 올바른 어플리케이션에서 이로 인해 문제가 발생하지 않는다.
CVE-2026-139791
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: net: Use a dedicated flag to track disabled napi instances Trying to disable the napi threaded state while the napi instance is disabled will hang forever in napi_stop_kthread(), as it waits for NAPIF_STATE_SCHED_THREADED to clear. This won't happen until the next ____napi_schedule() call, which won't happen as it's disabled. This happens in 2 instances : - Drivers that create but don't use napi instances (stmmac's rxtx napi for AF_XDP for example), here it's a driver bug - Drivers that create their napi instances in .probe(). Here, setting threaded off while the interface is down will hang : ip link set eth0 down echo 1 > /sys/class/net/eth0/threaded echo 0 > /sys/class/net/eth0/threaded -> hang Checking on netif_running() isn't enough, as napi instances may be transiently disabled when changing the MTU for example, let's use a dedicated flag to track if the instance is disabled. This allows immediately disabling the kthread when the instance is disabled. This was tested on mvpp2 (probe-time napi_add) and stmmac.
CVE-2026-139790
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg When hw_init() fails, amdgpu_device_ip_fini_early() skips hw_fini() because status.hw was never set. For VCN, UVD (including UVD ENC), VCE, and JPEG, hw_fini() is where cancel_delayed_work_sync() is called. Any idle work queued during the partial hw_init() is therefore left pending after sw_fini() frees the adev state the handler touches. Cancel the idle work in each hw_init() error path, immediately before returning the error, so that hw_fini() remains the sole cancel site on the normal teardown path with no duplication. (cherry picked from commit 7ff2327fde029e97d0050fcb94e3f4063c318547)
CVE-2026-139789
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: hugetlbfs: enforce F_SEAL_EXEC in setattr F_SEAL_EXEC is enforced by shmem_setattr(), but hugetlbfs_setattr() does not check it. As a result, fchmod() can change the execute bits of a sealed hugetlbfs memfd. Use memfd_check_seals_mode() in hugetlbfs_setattr() to reject changes to execute bits when F_SEAL_EXEC is set. This also fixes the memfd_test hugetlbfs SEAL-EXEC subtest, where fchmod() incorrectly succeeded after applying F_SEAL_EXEC. [ david: use common helper; fixup Fixes:; check only regular files ]
CVE-2026-139788
2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: cipso: live ip_options_rcu 수정 중지 cipso_v4_delopt()는 소켓이나 요청 소켓의 ip_options_rcu에서 작동하며, 모든 후속 옵션을 옮겨 중간에서 CIPSO 옵션을 제거하려고 시도합니다. 그렇게 하는 것은 허용되지 않습니다 - ip_options_rcu는 읽기 락을 방지 없이 읽을 수 있으며 항상 일관되어야 합니다. 예를 들어 ip_options_undo()는 옵션 버퍼에서 신뢰할 수 있는 오프셋과 길이 값을 읽습니다. 수정을 복사본에서 수행하여 해결합니다. 핵심 변경은 cipso_v4_delopt()에 있으며, 나머지는 메모리 할당 실패를 전파하기 위한 불필요한 배선 작업입니다. 이 버그를 트리거하려면 시스템이 CIPSO 사용으로 구성되어 있어야 합니다. (CIPSO 설정은 init_user_ns의 권한이 필요합니다.)
CVE-2026-139787
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: nvme-tcp: fix use-after-free in nvme_tcp_free_ctrl() nvme_tcp_free_ctrl() reads ctrl->ctrl.opts to know how many queue mutexes to destroy. When creating the controller fails, nvmf_create_ctrl() frees opts as soon as nvme_tcp_create_ctrl() returns, but a concurrent open of the character device can hold the last reference to the controller. With CONFIG_DEBUG_KOBJECT_RELEASE, which delays the release, every failed connect reads freed memory: BUG: KASAN: slab-use-after-free in nvme_tcp_free_ctrl+0x38b/0x430 Read of size 4 at addr ffff888005b93740 by task kworker/2:1/51 Keep the size of the queue array in the controller and use it instead.
CVE-2026-139786
번역 확인 필요2026년 11월 30일Linux 커널에서 다음 취약점이 해결되었습니다: mm/vma: mm_lock_seq 오버플로우 시 의도하지 않은 쓰기 잠금을 피합니다 지금까지 mm->mm_lock_seq 오버플로우는 정상적이라고 가정되었고, 읽기자(readers)가 mmap 잠금으로 스스로 돌아가는 경우에만 발생한다고 여겨졌습니다. 그러나 이 가정이 안전하지 않다는 것이 확인되었습니다. VMA가 의도치 않게 쓰기 잠금으로 간주될 수 있다면 읽기 잠금 배타성이 적용되지 않으므로 동시 읽기가 있는 상태에서 VMA가 쓰기 잠금 상태로 남을 수 있습니다. 오버플로우는 매 2^31회의 쓰기 잠금/해제 주기마다만 발생하므로 이러한 오버플로우가 발생할 때마다 각 VMA의 vma->vm_lock_seq를 재설정하여 이 문제를 해결합니다. 이는 mmap 쓰기 잠금이 해제될 때 호출되는 vma_end_write_all()에서 수행되며, 즉 mmap_write_unlock() 및 mmap_write_downgrade()에서 수행됩니다. 시퀀스 카운트를 오버플로우 시 재설정하면 이미 연결되어 관찰 가능한 VMA의 시퀀스 카운트를 바꾸게 되므로 주의가 필요합니다. mm의 시퀀스 카운트는 쓰기 잠금이 유지될 때 홀수로 보장되며, 따라서 쓰기 잠금이 된 모든 VMA는 홀수의 시퀀스 카운트를 가지게 됩니다. 따라서 짝수 값으로 재설정하는 것은 은닉된(spurious) 쓰기 잠금을 방지하는데, 이는 mmap 쓰기 잠금이 유지될 때만 발생하고 그 시점의 mmap 시퀀스 카운트는 홀수이기 때문입니다. 다만 vma_start_read()는 vma->vm_lock_seq == mm->mm_lock_seq를 추가로 확인하여 (쓰기가 잠겨 있음을 나타냄) 이로 인해 읽기 잠금을 얻지 못하는 경우를 방지합니다. 이로 인해 격려로 설정된 짝수 재설정 값은 VMA의 읽기 잠금을 차단할 수 있으므로, 읽기 잠금을 중단하기 전에 VMA 시퀀스 카운트가 홀수인지도 확인하는 것이 필요합니다. 지금까지 vma->vm_lock_seq의 기본값은 UINT_MAX였으나, 커밋 e5e7fb278e59("mm: convert mm_lock_seq to a proper seqcount") 이후에는 VMA가 분리된 상태에서도 할당되며 observers 될 수 없으므로 불필요합니다. 따라서 vma->vm_lock_seq의 재설정과 초기화를 단순히 0으로 설정하는 방식으로 수행합니다. 재설정은 __mm_reset_vma_seqcounts()에서 수행되며 값은 WRITE_ONCE()로만 작성하면 됩니다. 다만 vma_start_read()에서 vma->vm_lock_seq를 읽는 것은 do_raw_write_seqcount_end()의 smp_wmb()와 짝지으려면 acquire 시맨틱을 갖추어야 하므로 재설정 값을 읽는 읽기자는 또한 쓰기 잠금 아래에서 이루어진 VMA 수정을 관찰합니다. 모든 VMA 쓰기 잠금은 방금 해제되었고 mmap 쓰기 잠금은 여전히 유지되고 있으므로 동시 VMA 작성자는 존재하지 않습니다. 동시 VMA 읽기는 영향을 받지 않습니다. 새로운 VMA 읽기는 0 또는 이전의 시퀀스 카운트를 관찰하며, 재설정 이전의 동작과 동일하게 동작합니다. 이 현상은 매 2^31회의 쓰기 잠금/해제 주기마다 발생하므로 모든 VMAs를 업데이트하는 데 소요되는 시간은 허용 가능한 것으로 간주됩니다. 또한 변경 사항을 반영하기 위해 주석, 문서 및 VMA 사용자 공간 테스트도 업데이트합니다. 사용자 측 영향은 - 메모리 손상이나 NULL 포인터 역참조를 초래할 수 있는 위험한 경쟁이 발생할 수 있는 상황이 방지됩니다(특히 페이지 테이블 순회 시).
CVE-2026-139785
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: mm/vma: avoid losing atomic VMA flags when setting sticky VMA flags vma_merge_existing_range() merges an existing VMA (middle) when its attributes have changed to match those of one or both adjacent VMAs. Sticky flags are propagated if they are set in any of the merged VMAs. They are initialised from vmg->vma_flags, which is assumed to contain middle's sticky flags when the function is invoked. However, the VMA write lock is not held for middle when they are first populated, so concurrent updates to atomic VMA flags may occur, which will be lost upon merge. This can result in fork failing to propagate guard region markers and (if file-backed) THP collapse discarding them. Resolve this by propagating the sticky flags after middle is locked. Make life easier by factoring this into propagate_sticky_flags(), which treats vmg->vma_flags as its base (in case any sticky flags are set there), updating it as sticky flags are accumulated from merged VMAs. Also update vma_expand() to use propagate_sticky_flags() so all merge paths utilise it. propagate_sticky_flags() also asserts that the VMA write lock is held for the VMA whose sticky flags are being read, with a comment explaining why. Another means by which atomic VMA flags can fail to be observed is when the merge is finalised in commit_merge(). rmap locks are dropped in vma_complete() before the sticky flags are written, meaning an rmap walker can observe the VMA without sticky flags set, which can also result in retract_page_tables() discarding guard markers. Resolve this by assigning the sticky flags before dropping rmap locks, factored into commit_sticky_flags() with a write assert on the VMA being written to. Also remove the vma_set_flags_mask() invocation at the end of vma_merge_existing_range() as this was introduced by commit 64212ba02e66 ("mm: implement sticky VMA flags") to propagate sticky flags, which is now redundant with the introduction of commit_sticky_flags(). The vma_set_flags_mask() invocation at the end of vma_expand() setting sticky flags only is also removed for the same reason. Also update vma_merge_existing_range()'s comment to reflect the fact that vmg->vma_flags gets updated. Finally, update the userland VMA tests to reflect a previously missed const-ification in vma_assert_write_locked() which would otherwise cause a warning when building them.
CVE-2026-139784
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: ASoC: qcom: q6apm: clear g_apm on driver removal The global g_apm pointer is set during apm_probe() but never cleared in apm_remove(). After the driver is removed the devm-managed struct q6apm is freed, leaving g_apm dangling. A subsequent call to q6apm_is_adsp_ready() dereferences the freed pointer. Clear g_apm in apm_remove() before the component is unregistered so that q6apm_is_adsp_ready() returns false instead of triggering a use-after-free.