proc: don't let an entry below /proc/<pid>/net be a mountpoint
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 4.19.29, < 4.20→ 4.20 ≥ 4.20.16, < 4.21→ 4.21 ≥ 5.0.0, < 5.10.275→ 5.10.275 ≥ 5.11.0, < 5.15.226→ 5.15.226 ≥ 5.16.0, < 6.1.193→ 6.1.193 ≥ 6.2.0, < 6.6.163→ 6.6.163 ≥ 6.7.0, < 6.12.119→ 6.12.119 ≥ 6.13.0, < 6.18.63→ 6.18.63 ≥ 6.19.0, < 7.3.4→ 7.3.4 |
4.20 4.21 5.10.275 5.15.226 6.1.193 6.6.163 6.12.119 6.18.63 7.3.4 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-99841 linux-lts Fix available
- Debian DEBIAN-CVE-2026-99841 linux Fix available
- Ubuntu UBUNTU-CVE-2026-99841 linux-xilinx-zynqmp, linux-xilinx, linux-vmware +166 more No fixed version in this record
Original description The description as published by the source.
In the Linux kernel, the following vulnerability has been resolved:
proc: don't let an entry below /proc//net be a mountpoint
proc_net_d_revalidate() always returns 0 so that a dentry below
/proc//net is never reused after setns(). So lookup_fast() will end
up calling d_invalidate(), which unhashes the dentry and detaches every
mount on it, in every mount namespace; including locked mounts.
Then lookup_slow() creates a new dentry for the same entry. So a mount
on /proc//net/dev succeeds and goes away with the first lookup of
the name by anybody with search permission on the directory. Given it's
0555 that's everyone's grandma. A mask on such a name hides nothing as
the repro below shows.
Treat those entries like I did fd/, fdinfo/ and map_files/ and refuse to
mount on them in the first place. It's nonsensical theater otherwise:
procnet net/dev stat
// SPDX-License-Identifier: GPL-2.0
/*
- procnet: cover an entry of /proc// with a bind mount, lock the mount,
- then look the name up.
- The first task stays alive, is its pid. The "container" task has its
- own mount namespace. There it binds a mask on /proc//. It drops to
- uid 1000 and enters a new user namespace with a new mount namespace, so that
- the mask is locked. Then one task looks the name up:
- stat the container calls stat() on the name
- umount the container calls umount2(MNT_DETACH) on the name
- nobody a task with uid 65534 in the first namespaces calls…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com