data built 2026-10-19T13:16:53Z

Look up another CVE · open CVE-2026-72034 in the interactive tracker

CVE-2026-72034

fhandle: reject detached mounts in capable_wrt_mount()

7.8 EPSS 0.2% AV:L

Published 2026-08-15 (2 months ago) by the Linux kernel CNA. Subsystem fs. Debian urgency: unimportant.

What to do, per Debian release

Debian's own status for CVE-2026-72034 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source

ReleaseStatus VersionWhat this means
Debian 12bookwormnot affected6.1.190-1Nothing to do. bookworm never shipped the vulnerable code.
Debian 13trixiefixed6.12.100-1Update the kernel and reboot. Fixed in 6.12.100-1. A running kernel keeps the old code until the machine restarts.
Debian 14forkyfixed7.1.5-1Update the kernel and reboot. Fixed in 7.1.5-1. A running kernel keeps the old code until the machine restarts.
Debian unstablesidfixed7.1.5-1Update the kernel and reboot. Fixed in 7.1.5-1. A running kernel keeps the old code until the machine restarts.

The vulnerability

What the bug is

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.

Where it lives

The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.

fs/fhandle.c

What this is
FILESYSTEMS [EXPORTFS]MAINTAINERS section matched on fs/fhandle.c · linux-fsdevel@vger.kernel.org · Supported

Check it on the machine

grep -w CONFIG_FHANDLE /boot/config-$(uname -r)

Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.

Show whether Debian builds this, per release

Debian builds this code. Every release below compiles the affected file into the kernels it ships.

  • bookworm, trixie, forky, sidy
y
built into the kernel image on every flavour - only a patch removes it
Build switch
CONFIG_FHANDLE

From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages

Signals

Published
2026-08-15 (2 months ago)source
CVSS
7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hsource recompute it
Attack vector
local (AV:L)source
EPSS
0.18%, higher than 6.5% of all CVEssource
CISA KEV
not listedthe KEV catalogue
Debian urgency
unimportantsource
Subsystem
fs

Upstream fixes

The versions the CNA records as introducing and fixing this, and the commit for each. source

IntroducedFixed inCommit
6.116.12.9715104234c267
6.116.18.406c52226072a3
6.117.1.56ee183d89261
6.117.26c732471740b

Why the CNA scored it this way

Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source

AV:LAttack vector, local
Exploitation requires local syscalls only: open_tree(OPEN_TREE_CLONE) to obtain a detached mount fd, open_by_handle_at() to enter may_decode_fh()/capable_wrt_mount(), and close()/fput to dissolve the mount; no network, adjacent, or physical interface reaches this VFS fhandle path.
AC:LAttack complexity, low
The attacker controls both sides of the TOCTOU race by concurrently calling open_by_handle_at() on a detached mount fd while another thread closes that fd (or a dup) to trigger dissolve_on_fput()/umount_tree() clearing mount->mnt_ns, making success depend on attacker timing rather than external state.
PR:LPrivileges required, low
The relaxed permission path requires CAP_SYS_ADMIN in the current mount namespace (may_mount/open_tree) and CAP_DAC_READ_SEARCH in the current user namespace while lacking init_user_ns CAP_DAC_READ_SEARCH; these are obtainable by an unprivileged local user via user/mount namespaces (unshare -Urn), not real init-namespace root.
UI:NUser interaction, none
No victim action is required; the attacker creates the detached mount, supplies the file handle, and drives the concurrent open_by_handle_at()/close race entirely through their own syscalls and threads.
S:UScope, unchanged
Impact is confined to kernel memory/availability within the same security authority (local/container-triggered kernel panic or namespace lifetime corruption); it does not cross a VM escape, sandbox, or IOMMU boundary per kernel CVSS scope guidance.
C:HConfidentiality impact, high
The affected window (since 620c266f3949) includes unsynchronized mount::mnt_ns access that can UAF freed mnt_namespace memory before the RCU fix, and later NULL/stale namespace dereferences; per kernel guidance UAF and mount-namespace lifetime races enable arbitrary kernel memory disclosure.
I:HIntegrity impact, high
Concurrent umount_tree() clearing mount->mnt_ns while capable_wrt_mount() dereferences mnt_ns->user_ns is a mount-namespace lifetime corruption bug; UAF in the same code path can be leveraged for heap corruption and arbitrary kernel writes/code execution, not merely a benign error return.
A:HAvailability impact, high
Observing NULL or freed mnt_ns during ns_capable(mnt_ns->user_ns, CAP_SYS_ADMIN) causes a kernel oops/panic; the race is repeatable by reopening detached mounts, enabling reliable host DoS from containerized tenants on multi-tenant cloud nodes.