HIGH Introduced in 4.11
namespace Submount UAF
CVE-2026-98990
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 4.1 | 4.1.40 | 4.2 | cda0c4e502a0 |
| 4.10 | 4.10.3 | 4.11 | f63942818344 |
| 4.4 | 4.4.54 | 4.5 | 3f55f71291e4 |
| 4.9 | 4.9.15 | 4.10 | 361f59e7f3f9 |
| 5.10 | 4.11 | 5.10.273 | 6e4012e57186 |
| 5.15 | 4.11 | 5.15.224 | d73f04e92c1a |
| 6.1 | 4.11 | 6.1.191 | 18902a23ef36 |
| 6.12 | 4.11 | 6.12.113 | — |
| 6.18 | 4.11 | 6.18.57 | — |
| 6.6 | 4.11 | 6.6.160 | 32bf92416614 |
| 7.2 | 4.11 | 7.2.11 | — |
| mainline | 4.11 | 7.3 | — |
| cip/6.12 | 4.11 | 6.12.114-cip34 | 6e4012e57186 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.114-cip34 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip137) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip137-rt51) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip116) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |