KernelScan.io

HIGH Introduced in 4.11

namespace Submount UAF

CVE-2026-98990

CVSS 7.8 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

01

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.

02

Engine v0.9.0

Risk summary

A local attacker with access to a user namespace can trigger a use-after-free in the kernel's mount subsystem by manipulating shrinkable automounts (NFS, AFS, CIFS, or tracefs) with specific propagation topology. This allows privilege escalation to kernel level and potential container escape.

Affectedfs/namespace.c (mount namespace)

Vulnerability analysis

The kernel's shrink_submounts() and mark_mounts_for_expiry() functions first collect all shrinkable mounts that appear unbusy, then unmount them in a batch. However, unmounting the first mount alters the mount tree via propagate_umount(), which moves surviving overmounts. This changed topology causes a subsequent mount's busy check to pass incorrectly — a busy overmount appears childless and gets unmounted while still referenced (e.g., as a process's current working directory). The fix makes the busy check and unmount atomic for each mount by verifying propagate_mount_busy() immediately before calling umount_tree() under the same locks, and repeats the walk until no further progress is made.

03

BranchIntroducedFixed inPatch commit
4.14.1.404.2cda0c4e502a0
4.104.10.34.11f63942818344
4.44.4.544.53f55f71291e4
4.94.9.154.10361f59e7f3f9
5.104.115.10.2736e4012e57186
5.154.115.15.224d73f04e92c1a
6.14.116.1.19118902a23ef36
6.124.116.12.113—
6.184.116.18.57—
6.64.116.6.16032bf92416614
7.24.117.2.11—
mainline4.117.3—
cip/6.124.116.12.114-cip346e4012e57186

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip137)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip115)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)