fhandle: reject detached mounts in capable_wrt_mount()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6ee183d89261bf1d1cf9f06d80a40dab8f36ee55, Kernel 15104234c267ebe04b9f9a73e5c2179cc265ff60, Kernel 6c52226072a3c61337b1eec1799bb987748884fa and 4 more.
In the Linux kernel, the following vulnerability has been resolved: fhandle: reject detached mounts in capable_wrt_mount() The recent fhandle RCU fix moved the mount namespace capability check into capable_wrt_mount(), so a non-NULL mnt_namespace survives the ns_capable() dereference. The helper still assumes the later READ_ONCE(mount->mnt_ns) must be non-NULL because may_decode_fh() checked is_mounted() first. That assumption is not stable. A detached mount from open_tree(..., OPEN_TREE_CLONE) can be dissolved on fput while open_by_handle_at() is between those checks, and umount_tree() can clear mount->mnt_ns. If the helper observes NULL, it dereferences mnt_ns->user_ns and panics. Return false when the RCU read observes a detached mount. This keeps the relaxed permission path conservative: a mount no longer attached to a namespace cannot authorize open_by_handle_at() access.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=620c266f394932e5decc4b34683a75dfc59dc2f4 <6ee183d89261bf1d1cf9f06d80a40dab8f36ee55, >=620c266f394932e5decc4b34683a75dfc59dc2f4 <15104234c267ebe04b9f9a73e5c2179cc265ff60, >=620c266f394932e5decc4b34683a75dfc59dc2f4 <6c52226072a3c61337b1eec1799bb987748884fa, >=620c266f394932e5decc4b34683a75dfc59dc2f4 <6c732471740bc2ac9b0946134f9f551dc75f4369, =6.11 | 6ee183d89261bf1d1cf9f06d80a40dab8f36ee55, 15104234c267ebe04b9f9a73e5c2179cc265ff60, 6c52226072a3c61337b1eec1799bb987748884fa, 6c732471740bc2ac9b0946134f9f551dc75f4369 |
| linux-kernel: Kernel | >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.11.0 <6.12.97 | 6.18.40, 7.1.5, 6.12.97 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket