총 15,720건
CVE-2026-99004
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: drm/imagination: Size page table preallocation by device address Commit 0a8224058a58 ("drm/imagination: Fix page count for page table for map() interface") passed the device address to pvr_mmu_op_context_create(), but the preallocation is still sized from device_addr + sgt_offset with an exclusive end. The offset into the object's pages has no place in a device-virtual range, and the exclusive end allocates one table too many when the range ends on a table boundary. Count the tables from device_addr and the inclusive end of the range. The new calculation does not take page table indices into account. This fixes another issue with the previous implementation, where the difference between start and end indices could underflow when a mapping crossed a page table boundary. This would lead to the driver preallocating a huge number of MMU pages, exhausting system memory and triggering an out of memory panic. [Alessio: add paragraph to point out OOM bug being fixed, cc stable]
CVE-2026-99003
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: drm/panthor: validate userspace queue count against initialized firmware slot count In panthor_drv.c:panthor_ioctl_group_create(), the queue count is validated against the hardcoded maximum: if (!args->queues.count || args->queues.count > MAX_CS_PER_CSG) return -EINVAL; However, if the firmware reports fewer slots than MAX_CS_PER_CSG, panthor_fw_init_ifaces() will only initialize that smaller number of stream interfaces. If unprivileged userspace requests more queues than the firmware reported (but no more than MAX_CS_PER_CSG), cs_slot_prog_locked() fetches an uninitialized stream interface and may crash when dereferencing cs_iface->input->ringbuf_base.
CVE-2026-99002
2026년 10월 23일Linux 커널에서 다음 취약점이 해결되었다: drm/vmwgfx: 사용자 공간에서 오는 pitch 검증 기본 표면에서 데이터를 복사하기 전에 box 크기와 함께 pitch를 검증한다. 커서 스누핑으로 인한 범위 밖 읽기 가능성을 수정한다.
CVE-2026-99001
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: drm/xe/i2c: cancel the client work on remove xe_i2c_notifier() stores the DesignWare adapter in i2c->adapter and schedules i2c->work when the adapter is registered under the xe I2C platform device, and xe_i2c_client_work() then instantiates the AMC client device on that adapter. xe_i2c_remove() tears down the AMC, unregisters the client devices, the bus notifier and the adapter platform device, but it never drains i2c->work. A work item that is still queued or running when the adapter is unregistered dereferences i2c->adapter in i2c_new_client_device() after platform_device_unregister() has released the adapter. The work item is also embedded in the devm-allocated struct xe_i2c, so a work item still queued after the drm device devm unwind frees that allocation runs its callback on freed memory. The bus notifier is the only thing that schedules this work, and it is unregistered after the client devices. An instance that is still queued when the teardown runs can therefore write i2c->client[XE_I2C_CLIENT_AMC] while the loop is unregistering and clearing the same array, and an AMC client it instantiates late is only cleaned up by the adapter's own child sweep in i2c_del_adapter(). Move bus_unregister_notifier() in front of the client teardown loop and cancel the work right after it, so no new instance can be scheduled and a queued instance is drained before the client array is touched. A running instance still finds a live adapter, since the adapter is unregistered later. (cherry picked from commit a23f27d5ec11c3f418c5e5531eea34ccda2b5b20)
CVE-2026-99000
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: drm/xe: Fix shrinker accounting double-subtraction on nested external pins xe_bo_pin_external() and xe_bo_unpin_external() support nested pins, since the underlying ttm_bo_pin()/ttm_bo_unpin() maintain a pin_count refcount rather than a boolean. However, the shrinker accounting calls xe_ttm_tt_account_subtract() and xe_ttm_tt_account_add() are invoked unconditionally on every pin_external()/unpin_external() call, instead of only on the transition into and out of the pinned state. An external BO (dma-buf) can be pinned more than once while already pinned, for example when it has multiple attachments/importers, each independently calling xe_bo_pin_external(). Each such nested pin subtracts the BO's pages from the shrinker's accounting again, even though the BO's pages were already removed from consideration by the first pin. Symmetrically, each nested unpin adds them back again before the BO is actually unpinned. This desynchronizes the shrinker's page and object counts from reality, and since they are declared as signed long but interpreted as unsigned long in xe_shrinker_count(), the underflow can turn into an enormous shrinkable/purgeable page count, causing the shrinker to be invoked excessively under memory pressure. Guard the accounting calls with the same pin-count transition checks already used to guard the pinned_link list maintenance, so accounting is only updated on the outermost pin and the final unpin. While centralizing this logic into xe_bo_account_pin()/ xe_bo_account_unpin(), also close a second, related accounting gap affecting imported dma-bufs. For an imported bo's ttm_tt, xe's ttm_tt_populate hook (xe_ttm_tt_populate()) early-returns without calling xe_ttm_tt_account_add(), since TTM_TT_FLAG_EXTERNAL is set without TTM_TT_FLAG_EXTERNAL_MAPPABLE. However, TTM core's ttm_tt_populate() wrapper unconditionally marks the tt as populated on driver-hook success, so ttm_tt_is_populated() still reports true for it. xe_bo_account_pin()/xe_bo_account_unpin() trusted ttm_tt_is_populated() as a proxy for "these pages are accounted for by the shrinker", and would subtract/add pages for such a tt that were never added in the first place, again underflowing the shrinker's counts. This is reachable today via xe_bo_pin_external(), and would have become newly reachable via the fb-pin path once this patch routes __xe_pin_fb_vma() through xe_bo_pin_account() below, so fix it here rather than in a later patch, to avoid a commit in this series that introduces the regression before fixing it. Skip the accounting for imported bos, using the same EXTERNAL && !EXTERNAL_MAPPABLE test xe_ttm_tt_populate()/xe_ttm_tt_unpopulate() use to decide whether to act, via a new xe_ttm_bo_is_imported() helper (hoisted up from its only prior use site). v2: - Fix the critical issue caught by Sashiko AI review: the pin-count transition check introduced here was still bypassed by the fb-pin path (__xe_pin_fb_vma()/__xe_unpin_fb_vma()), which could leave a stale pinned_link entry and a permanent shrinker accounting leak when the fb-unpin performed the true last unpin. Addressed in a separate follow-up patch in this series rather than folded in here, since it is a distinct bug with its own Fixes: tag. - Drop the unneeded local "last_unpin" variable in xe_bo_unpin_external(), restoring the original inline bo->ttm.pin_count == 1 check; it was a no-op rename not used by any of the new accounting helpers, and was going to be deleted again by the follow-up patch anyway. v3: - Exclude imported dma-bufs from the pin/unpin shrinker accounting, fixing another underflow caught by Sashiko AI review. - Add a short comment on the backup-object pin site noting it's already populated/accounted at pin time, addressing (as a false-positive clarification, no code fix needed) a separate Medium-severity accounting-leak concern also caught by Sashiko AI ---truncated---
CVE-2026-98999
2026년 10월 23일Linux 커널에서 다음 취약점이 해결되었다: drm/xe: fb-pin이 최종 unpin을 수행할 때 오래된 pinned_link 항목 수정 xe_bo_pin_external()과 xe_bo_unpin_external()은 현재 호출이 가장 바깥쪽 pin인지 최종 unpin인지에 따라 bo의 pinned_link 목록 멤버십을 xe->pinned.late.external에서 유지한다. 그러나 동일한 외부 bo의 pin_count는 __xe_pin_fb_vma()/__xe_unpin_fb_vma()에 의해 직접 증가 및 감소될 수 있는데, 이 함수들은 bo를 디스플레이 스캔아웃 버퍼로 고정하지만 xe_bo_pin_external()/xe_bo_unpin_external()을 전혀 거치지 않으며 pinned_link에 대한 개념이나 소유권이 없다. bo가 외부(예: dma-buf export)와 fb로 모두 고정되어 있고 외부 unpin이 먼저 발생하면 xe_bo_unpin_external()은 pin_count > 1임을 올바르게 인지하여 bo를 pinned_link에 남긴다. 이후 fb unpin이 실제 마지막 unpin(pin_count 1 -> 0)을 수행할 때 pinned_link를 전혀 건드리지 않아 bo가 xe->pinned.late.external에 무기한 연결된 상태로 남는다. 이후 bo가 해제되면 이 오래된 목록 항목이 해제된 메모리를 가리켜 목록을 손상시키고 목록이 탐색되거나 연결될 때 use-after-free 위험을 초래한다. xe_bo_notifier_prepare_pinned()/xe_bo_notifier_unprepare_pinned()의 백업 객체 pin/unpin 위치도 동일한 우회 특성을 가지지만 bo를 pinned 목록에 추가하지 않으므로 이 특정 목록 손상 문제에는 영향을 받지 않는다. pinned_link 제거를 xe_bo_account_unpin()으로 이동했는데, 이 함수는 실제 1 -> 0 pin_count 전환 직전에 모든 unpin 경로(커널, 외부, 프레임버퍼, 백업 객체)에서 이미 실행된다. list_del_init()은 노드 자체에만 작동하므로 이 제거는 목록에 무관하며 bo가 연결된 목록(외부 또는 kernel_bo_present)이나 최종 unpin을 수행하는 코드 경로에 관계없이 안전하게 수행할 수 있다. xe_bo_unpin_external()과 xe_bo_unpin()에서 중복된 명시적 list_del_init() 호출은 제거되었다. v2: - 새로운 패치 v3: - 이전 패치 변경 사항에 리베이스됨 (commit ca58d36a1f93af586ee93b340c9f9fd81312cc01에서 체리픽됨)
CVE-2026-98998
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: drm/bridge: th1520-dw-hdmi: Fix remove() callback This driver stores struct th1520_hdmi * in platform drvdata, but th1520_dw_hdmi_remove() was reading it back as struct dw_hdmi * and passing it to dw_hdmi_remove(), so teardown runs on the wrong pointer. Retrieve struct th1520_hdmi * from platform drvdata and pass hdmi->dw_hdmi to dw_hdmi_remove().
CVE-2026-98997
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu/userq: only accept doorbell BOs as queue doorbell amdgpu_userq_get_doorbell_index() pins any BO passed as doorbell_handle into the doorbell domain. For a regular BO, TTM moves it with ttm_bo_move_null() and its contents are lost. Since an importer on the same device gets the exporter's GEM object, a client can do this to a buffer another client shared with it. Reject BOs that were not created in the doorbell domain. v2: drop the error message, use a local abo variable (Christian) (cherry picked from commit f7497bbc19db4821c62b9d97b31c9086feb2d917)
CVE-2026-98996
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: fs: don't silently unmount busy mounts The propagate_mount_busy() helper exists to decide whether a synchronous can suceed. It does that by looking at the copies of the victims in the mounts its parent propagates to. One of those functions from propagation hell. It skips a copy that has child mounts except for the case of a single child mount covering the copy's root. That algorithm used to be exact. It isn't anymore. Originally only childless copies were unmounted during propagation. And 1064f874abc0 ("mnt: Tuck mounts under others instead of creating shadow/side mounts.") ended up adding covered mounts to both sides in one go. Along came 99b19d16471e ("mnt: In propgate_umount handle visiting mounts in any order") and that started to unmount more than before: [1]: A copy of a mount is unmounted when each of its children is either its overmount or a copy of the victim itself. In the former case the overmount gets reparented. In the latter case the copy of the victim will end up being unmounted. So propagate_umount() ended up being rewritten without adjusting propagate_mount_busy(). And currently propagate_mount_busy() doesn't look at copies of the victim that have two or more children nor a single child that is not the overmount. So any such copy in [1] is not checked for references. The result is that a synchronous unmount succeeds, pulling out a mount that is still in use. A container can run into this with its own mounts. The host shares a tree with the container and the host has a mount in that tree: mount -t tmpfs none /mnt mount --make-shared /mnt mount -t tmpfs none /mnt/a The container's /mnt is a slave copy of the host mount. The container now takes a detached copy of the tree and mounts that copy beneath its propagated copy of /mnt/a and keeps the file descriptor to the tree open: unshare -m --propagation unchanged mount --make-rslave / fd = open_tree(AT_FDCWD, "/mnt", OPEN_TREE_CLONE | AT_RECURSIVE) move_mount(fd, "", AT_FDCWD, "/mnt/a", MOVE_MOUNT_BENEATH) grep /mnt /proc/self/mountinfo 775 355 ... /mnt ... master:646 777 775 ... /mnt/a ... master:646 776 777 ... /mnt/a ... master:647 778 777 ... /mnt/a/a ... master:647 The now attached tree (777) is now mounted beneath the container's copy of /mnt/a. That's also where the host mount sits (as seen from the host mount namespace). So the propagated copy (776) of the host's mount is on top of its root and the copy of that (778) is inside it. Now the host runs: umount /mnt/a and it succeeds. The moved tree tree and the copy inside of it are gone from the container. Now only the propagated copy is left and it got reparented to where it was before: grep /mnt /proc/self/mountinfo 775 355 ... /mnt ... master:646 776 775 ... /mnt/a ... But the file descriptor still refers to the moved tree. So a synchronous umount detached a mount that is still in use. Teach propagate_mount_busy() the same checks that propagate_umount() does. It now checks for a single victim mount without children for which it can assume that MNT_LOCKED is cleared on every copy like propagate_umount() does. The copies form chains. IOW, when a copy itself receives propagation from the victim's parent then the mount at the same mountpoint inside that copy is a copy as well. Whether a mount receives propagation from the victim's can simply be checked by walking its masters. Walk each chain once from its top so we are sure that nested copies stay linear. Check every reference once of every copy that gets unmounted.
CVE-2026-98995
2026년 10월 23일Linux 커널에서 다음 취약점이 해결되었다: namespace: mnt_change_mountpoint()에서 이전 부모의 ->overmount를 재설정 __umount_mnt()는 자신을 오버마운트하는 마운트를 언마운트할 때 부모의 ->overmount를 재설정한다. mnt_change_mountpoint()는 그렇지 않다. 이 함수는 마운트를 새 부모로 이동시키고 이전 부모는 여전히 그것을 가리키게 둔다. attach_recursive_mnt()에서 아래로 이동된 마운트의 경우에는 문제가 되지 않는다. 새 마운트는 이전 최상위 마운트가 그 위로 이동되기 전에 이미 이전 부모의 ->overmount를 재설정했기 때문이다. 그러나 reparent()의 경우에는 문제가 된다. propagate_umount()는 언마운트되지 않을 첫 번째 조상에게 살아남은 오버마운트를 이동시킨다. 그 마운트가 즉시 언마운트된다. 파일 디스크립터가 그 언마운트된 마운트를 유지하면 ->overmount가 이동된 마운트를 가리키게 된다. 이는 이동된 마운트가 언마운트되고 해제되면서 널 포인터 역참조 및 해제 후 사용(UAF)이 발생하는 댕글링 포인터이다. do_lock_mount()는 mount_lock 아래에서 대상 경로의 ->overmount를 따른다. 최상위 오버마운트 아래에 있는 마운트의 대상으로서 그런 마운트에 대한 파일 디스크립터가 있으면 topmost_overmount()가 해제된 마운트로 들어가고 do_lock_mount()는 그곳에서 발견한 것에 대한 참조를 취한다. 따라서 mnt_change_mountpoint()에서 __umount_mnt()와 동일한 방식으로 이전 부모의 ->overmount를 재설정한다. 마운트의 ->overmount는 항상 그 마운트에 연결된 마운트가 된다.
CVE-2026-98994
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: statmount: read the parent of an unmounted mount under mount_lock statmount_mnt_basic() reads the ids of the parent through m->mnt_parent with namespace_sem held for reading. That's fine for a mount that is in a namespace. Everything above it is pinned by that namespace. STATMOUNT_BY_FD also accepts a file descriptor on a mount that has been unmounted on purpose and that only the file descriptor keeps alive. If that mount stayed attached to its parent when it was unmounted the parent is unmounted as well and nothing pins it for the child. The final mntput() unmounts the children under mount_lock alone and frees the parent afterwards. Concurrently, statmount_mnt_basic() reads m->mnt_parent twice while that can happen and can easily dereference a mount that's already gone. Read the parent of an unmounted mount under mount_lock. The parent can't be put while it is held and both ids come from the same mount. A mounted mount's parent is pinned by the namespace and a mount can't leave its namespace while namespace_sem is held, so the common case takes no global lock.
CVE-2026-98993
2026년 10월 23일Linux 커널에서 다음 취약점이 해결되었다: namespace: clone_mnt()에서 MNT_UMOUNT를 상속하지 않음 MNT_UMOUNT는 umount_tree() 또는 umount_one()이 네임스페이스에서 제거한 마운트에 대해 설정된다. 이 플래그는 절대 해제되지 않는다. __detach_mounts()는 이를 가진 마운트를 언마운트하지 않고 분리한다. disconnect_mount()는 언마운트된 자식이 부모가 이를 가지고 있을 때만 연결 상태를 유지하도록 허용한다. propagate_umount()는 마운트가 언마운트될 것임을 나타내는 신호로 받아서 어떤 마운트를 추가로 언마운트할지, 잠긴 마운트 체인이 어디서 끝나는지, 오버마운트를 위한 재부모 지정 위치를 결정한다. clone_mnt()는 소스의 플래그를 복사하며 MNT_UMOUNT를 포함하지 않는 MNT_INTERNAL_FLAGS만 마스킹한다. 루트가 nsfs 또는 pidfs 파일인 경우 may_copy_tree()가 소스가 마운트되었는지 확인하기 전에 이를 허용하기 때문에 파일 디스크립터에 의해 유지되는 지연 언마운트된 마운트도 복사될 수 있다: mount --bind /proc/self/ns/net /tmp/x exec 3< /tmp/x umount -l /tmp/x mount --bind /proc/self/fd/3 /tmp/y /tmp/y의 마운트는 호출자의 네임스페이스에 MNT_UMOUNT가 이미 설정된 상태로 연결되며, 그 복사본마다 이 플래그를 다시 상속한다. 이로 인해 여러 버그가 발생한다: - 마운트 네임스페이스에 속하지 않은 마운트포인트를 언링크한다. __detach_mounts()는 이를 이전에 언마운트된 마운트로 간주하여 부모에서 분리하고 네임스페이스가 가진 참조를 해제한다. 이 마운트는 참조가 하나 부족한 상태로 네임스페이스에 남아 자신의 부모가 되어 파일 디스크립터를 통해 더 이상 언마운트할 수 없으며 네임스페이스가 다시 찾지 못한다. 네임스페이스가 사라질 때 누수가 발생하며, freed된 struct mnt_namespace를 가리켜 may_change_propagation()와 anon_ns_root()가 다음 전파 변경 시 또는 mount_setattr() 호출 시 읽게 된다. - 이를 공유 상태로 만들고 피어를 언마운트한다. trace_transfers()는 피어에서 플래그를 따라가 이를 제거한다. - 전파된 언마운트가 이 마운트에 도달하게 한다. gather_candidates()는 이를 T_UMOUNT_CANDIDATE로 표시하지만 후보 목록에 추가하지 않아 표시가 해제되지 않고 이후 전파된 모든 언마운트가 이를 건너뛴다. 잠긴 마운트의 부모인 경우 handle_locked()가 이를 컷오프로 간주하고 잠긴 자식을 커밋하며 disconnect_mount()는 그 자식을 연결 상태로 남겨 언마운트된 상태에서 마운트된 부모 아래에 있게 한다. 이는 disconnect_mount()가 방지하려는 상황이다. 네임스페이스가 사라질 때 umount_tree()가 자식을 두 번째로 방문한다. __detach_mounts()가 이를 자신의 부모로 만들면 reparent()는 언마운트된 부모 체인의 끝을 찾지 못한다. 클론은 한 번도 언마운트된 적 없는 새로운 마운트이다. clone_mnt()가 MNT_UMOUNT를 복사하지 않도록 MNT_UMOUNT를 MNT_INTERNAL_FLAGS에 추가한다. 그리고 umount_tree()가 이미 이 플래그가 설정된 마운트에 도달할 때 경고를 출력한다.
CVE-2026-98992
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: namespace: don't copy an unmounted mount tree may_copy_tree() accepts a mount whose root is an nsfs or pidfs file before it checks whether that mount is mounted. This exception exists for nsfs and pidfs mounts. They are part of no mount namespace so neither check_mnt() nor is_mounted() would let them through and bind-mounting a nsfsfd or a pidfd wouldn't work. Problem is that exception also admits a bind mount of such a file when it was lazily unmounted and is only kept alive by a file descriptor: mount --bind /proc/self/ns/net /tmp/x exec 3< /tmp/x umount -l /tmp/x mount --rbind /proc/self/fd/3 /tmp/y With MS_REC or AT_RECURSIVE copy_tree() doesn't stop at the unmounted mount. It copies every mount that stayed attached to it as well. So if you have a bunch of overmounts over the nsfsfd or the pidfd the whole unmounted stack is copied. That's a bug. So refuse to walk an unmounted tree. Copying its root alone stays possible. So a bind mount of a namespace that is gone can still be recreated from a file descriptor on the old one. The file descriptor pins that mount and its root and __has_locked_children() only reads the direct children which don't leave the parent's list without namespace_sem. The internal mounts carry MNT_NS_INTERNAL instead of NULL and are still walked. Copying an unmounted tree recursively fails with EINVAL.
CVE-2026-98991
2026년 10월 23일Linux 커널에서 다음 취약점이 해결되었다: namespace: 마운트 알림을 위해 마운트를 한 번만 큐에 추가 mnt_notify_add()는 마운트를 notify_list에 추가한다. 이미 리스트에 마운트가 있는지 확인하지 않는다. 이는 각 마운트가 namespace_sem 보유당 최대 한 번만 큐에 추가되는 한 문제없다. 그러나 그렇지 않다. propagate_umount()는 사라지는 마운트 스택에서 살아남은 오버마운트를 이동시키고 moved로 큐에 추가한다. shrink_submounts()와 mark_mounts_for_expiry()는 단일 namespace_sem 보유 하에 여러 마운트에 대해 umount_tree()를 호출한다. 따라서 두 번째 umount_tree()는 첫 번째가 재부모화한 정확한 마운트를 다시 재부모화하여 두 번째로 큐에 추가할 수 있다. 두 번째 list_add_tail()은 그 사이에 큐에 추가된 마운트들을 리스트에서 제거하는데, 헤드는 여전히 그 중 마지막 마운트를 가리킨다. notify_mnt_list()는 그 한 마운트만 방문하고 나머지는 유예 기간 후에 해제되며 notify_list는 여전히 그것들을 가리킨다. 이후 호스트에서의 모든 마운트 작업은 해제된 메모리를 참조한다: BUG: KASAN: slab-use-after-free in __list_add_valid_or_report Read of size 8 at addr ffff8881003d57e0 by task notify_dq/162 __list_add_valid_or_report+0x15c/0x1a0 mnt_add_to_ns+0x322/0x890 attach_recursive_mnt.isra.0+0xf2a/0x1a00 path_mount+0x139c/0x1d40 이것은 MNT_SHRINKABLE 플래그가 있는 마운트가 필요하다. finish_automount()가 생성하는 것(예: NFS, AFS, CIFS의 서브마운트 및 debugfs 아래의 tracefs 마운트)이다. 바인드 마운트는 이 플래그를 상속한다. FAN_MARK_MNTNS 마크가 있는 마운트 네임스페이스가 나머지를 처리하며, 사용자 네임스페이스의 루트는 둘 다 가질 수 있다. alloc_vfsmnt()에서 to_notify를 초기화하고 이미 큐에 추가된 마운트는 그대로 둔다. mnt_notify()는 리스트가 비워질 때 마운트의 상태를 확인하므로 마운트당 단일 항목이면 충분하다. 동일한 보유 하에 언마운트된 마운트에 대한 이동 이벤트는 손실된다. 이는 문제없다. 중요한 것은 분리(detach)이다.
CVE-2026-98990
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: namespace: check a submount for references right before unmounting it shrink_submounts() and mark_mounts_for_expiry() first collect all the mounts they are allowed to unmount and then unmount them. Whether a mount is busy is decided by propagate_mount_busy() on the tree. But unmounting the first mount changes the tree that the second one propagates into. propagate_umount() moves a surviving overmount off a copy it unmounts and mounts it where the copy was mounted. If that's where the propagated copy of the second victim is looked up the overmount becomes a candidate of the second umount_tree(). It's childless and so trim_one() commits it without looking at its reference count. So a synchronous umount pulls out a busy mount that is in use somewhere else and marks it MNT_SYNC_UMOUNT while it has users: umount2(/tmp/plshrink/p1, 0) = 0 errno 0 cwd is (unreachable) The same two umounts requested one after the other fail with EBUSY. This needs a mount with MNT_SHRINKABLE, i.e., automounted submounts of NFS, AFS and CIFS or the tracefs mount below debugfs. Bind mounts inherit the flag. Check each mount right before it is unmounted under the same hold of namespace_sem and mount_lock as the umount itself. Make sure that the algorithm stays linear.
CVE-2026-98989
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: namespace: check a recursive bind mount for mount namespace loops do_loopback() refuses to bind mount the file of a mount namespace that is as old as the caller's or older because a mount namespace that holds a mount of its own file, or of an ancestor's, would cause a cycle. But it only checks the dentry the bind mount starts from. With MS_REC everything below it is copied and do_loopback() passes CL_COPY_MNT_NS_FILE so mount namespace files below the source are copied. That's fine for a source in the caller's own mount namespace. Every mount namespace file in there passed the same check when it was bind-mounted. It isn't fine for a source in another mount namespace. may_copy_tree() accepts a bind mount of any nsfs or pidfs file no matter what mount namespace it lives in so that /proc/<pid>/ns/<ns> and pidfds can be bind mounted. If we create a bind-mount stack of mount namespaces file descriptors the kernel will copy them irrespective of their ancestoral relationship to the mount namespace in question: 151 146 0:7 net:[4026531833] /tmp/nrc/y rw - nsfs nsfs rw 152 151 0:7 mnt:[4026532293] /tmp/nrc/y rw - nsfs nsfs rw Mount 152 is a mount of the mount namespace file of mount namespace 4026532293 inside mount namespace 4026532293. That namespace and every mount in it are leaked... All it takes is a process in an older mount namespace that stacks the file and repeating it leaks without limit: after control: Shmem: 380 kB child: mount(/proc/self/fd/6, MS_BIND|MS_REC): ok after cycle: Shmem: 65916 kB do_move_mount() runs check_for_nsfs_mounts() over a detached tree for exactly that reason. Do the same for the copy before it is grafted.
CVE-2026-98988
2026년 10월 23일Linux 커널에서 다음 취약점이 해결되었다: namespace: OPEN_TREE_NAMESPACE에서 덮여 있는 마운트를 계속 덮여 있도록 유지 open_tree(OPEN_TREE_NAMESPACE)는 주어진 경로의 트리 복사본에서 새로운 마운트 네임스페이스를 생성한다. 호출자는 새로운 마운트 네임스페이스가 자신의 소유가 되므로 현재 사용자 네임스페이스에 대해 권한이 있어야 한다. 트리가 복사되는 마운트 네임스페이스에 대해 권한이 있을 필요는 없다. 권한이 없는 사용자는 먼저 사용자 네임스페이스를 생성하기만 하면 된다. 복사는 분리된 바인드 마운트 규칙을 따른다. AT_RECURSIVE가 없으면 마운트 자체만 복제되고 자식은 제외된다. AT_RECURSIVE가 있으면 바인드 불가능한 마운트는 건너뛴다. 호출자가 소스 마운트 네임스페이스에 대해 권한이 있으면 둘 다 괜찮다. 왜냐하면 어차피 그 마운트를 언마운트할 수 있기 때문이다. 그러나 해당 마운트 네임스페이스에서 권한이 없는 사용자에게는 그렇지 않다. 그들에게 마운트 네임스페이스 복사는 unshare()가 하는 작업이다. copy_mnt_ns()는 바인드 불가능한 마운트를 포함해 모두 복사하고 lock_mnt_tree()는 복사본에서 아무것도 언마운트되지 않도록 보장한다. 덮여 있던 것은 드러나지 않는다. create_new_namespace()는 잠금만 수행하므로 덮여 있는 내용이 새로운 마운트 네임스페이스에 그대로 존재한다: # mount -t tmpfs none /tmp/otn; mkdir /tmp/otn/covered # echo hidden > /tmp/otn/covered/under.txt # mount -t tmpfs none /tmp/otn/covered uid 1000, unshare(CLONE_NEWUSER) 후: fd = open_tree(AT_FDCWD, "/tmp/otn", OPEN_TREE_NAMESPACE); setns(fd, CLONE_NEWNS); open("/covered/under.txt", O_RDONLY) -> "hidden" 마운트로 경로를 덮는 것은 컨테이너 런타임이 /proc 및 /sys의 일부를 가리는 방법이며 관리자들이 항목을 숨기는 방법이다. 호출자의 사용자 네임스페이스가 소스 마운트 네임스페이스를 소유하지 않으면 unshare()가 하는 방식대로 동작하고, 요청된 디렉터리 아래에 마운트가 있는 비재귀적 복사를 거부하며, 재귀적 복사에서는 바인드 불가능한 마운트를 복사한다. 소스 마운트 네임스페이스에 권한이 있는 호출자는 변화가 없다.
CVE-2026-98987
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: namespace: look at the topmost mount for a mount namespace file attach_recursive_mnt() preallocates a mountpoint for the root of the topmost mount of the source so that a mount that already sits at the destination can be put on top of the source or on top of one of its propagated copies. The copies are made without CL_COPY_MNT_NS_FILE so their chain of overmounts is shorter than the source's. It ends below the first bind mount of a mount namespace file. So while the loop walks up the chain of the source it remembers the mountpoint of that mount in "shorter" and the existing mount is put there for the copies. But the loop ends at the topmost mount without ever looking at it. If the topmost mount is the only mount namespace file in the chain "shorter" stays NULL and mnt_change_mountpoint() attaches the existing mount of the copy below the root of the mount namespace file. That's a dentry of nsfs. No path walk in the copy's mount namespace ever gets there. The mount is gone until its parent goes and the copy that took its place can't be unmounted synchronously because it has a child: S bind mount of a file N bind mount of a mount namespace file on top of S A shared mount, B a slave of A, Q mounted on B/file move_mount(S, A/file) cat B/file -> the content of S instead of Q umount B/file -> EBUSY Look at every mount of the chain including the topmost one.
CVE-2026-98986
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: namespace: remove the fsnotify marks of a mount namespace in process context mnt_ns_release() drops the last passive reference of a mount namespace and removes its fanotify marks via fsnotify_mntns_delete(). That takes the mutex of every group with a mark on the namespace and the spinlock of the connector. Fine from process context. But mnt_ns_tree_remove() hands the reference the namespace was allocated with to call_rcu() and so the marks are removed from the RCU softirq: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:623 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 __mutex_lock+0x113/0x24b0 fsnotify_destroy_marks+0x11b/0x3d0 mnt_ns_release_rcu+0x57/0xa0 rcu_core+0x6b6/0x1e40 and lockdep complains about the connector lock being taken from softirq context. A fanotify group with a FAN_MARK_MNTNS mark on the mount namespace of another task is all that's needed. Root in a user namespace can do that for a mount namespace it owns. The task exits and the namespace is freed with the mark still on it. Remove the marks in free_mnt_ns() before the namespace is handed to RCU. That runs in process context once the last active reference is gone. A mark is added through a file descriptor to the namespace which holds an active reference so no mark can show up after that.
CVE-2026-98985
2026년 10월 23일In the Linux kernel, the following vulnerability has been resolved: namespace: check the mounts before reading their parents in pivot_root() path_pivot_root() reads the parents of new_root and of the caller's root and checks whether they are shared before it checks that either mount is in the caller's mount namespace. Only namespace_sem is held. That's fine for a mount that is in the caller's mount namespace. But new_root can be a file descriptor to a mount that has been unmounted and that only the file descriptor keeps alive. If that mount stayed attached to its parent when it was unmounted nothing pins the parent for it. The final mntput() of the parent unhooks the children under mount_lock alone and frees the parent afterwards: pivot_root() close(fd), last ref on the parent ------------ --------------------------------- ex_parent = new_mnt->mnt_parent mntput_no_expire_slowpath() __umount_mnt(new_mnt) cleanup_mnt() call_rcu() IS_MNT_SHARED(ex_parent) BUG: KASAN: slab-use-after-free in path_pivot_root+0xf1a/0x1840 Read of size 4 at addr ffff8881047382f8 by task pivot_widen/157 path_pivot_root+0xf1a/0x1840 __x64_sys_pivot_root+0x165/0x190 The same goes for the caller's root via chroot(). Both outcomes of the check end in EINVAL so nothing but the read itself goes wrong. It's the same thing commit bb4609405752 ("statmount: read the parent of an unmounted mount under mount_lock") fixed for statmount(). Check that both mounts are in the caller's namespace before their parents are read. Every path returns EINVAL either way.