CVE-2026-99841 (GCVE-0-2026-99841)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:17 – Updated: 2026-11-30 13:17
VLAI
Title
proc: don't let an entry below /proc/<pid>/net be a mountpoint
Summary
In the Linux kernel, the following vulnerability has been resolved: proc: don't let an entry below /proc/<pid>/net be a mountpoint proc_net_d_revalidate() always returns 0 so that a dentry below /proc/<pid>/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/<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 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/<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(MNT_DETACH) 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 _GNU_SOURCE #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 write_str(const char *path, const char *s, int flags) { int fd = open(path, O_WRONLY | 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->d_name[0] == '.') continue; printf(" %s", de->d_name); hit |= strcmp(de->d_name, "MASK"); } closedir(d); printf("%s\n", hit ? " <-- HIT" : ""); return; } fd = open(target, O_RDONLY); 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---
Severity
No CVSS data available.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 1fde6f21d90f8ba5da3cb9c54ca991ed72696c43 , < a596be2ec595c51c8aaf04eea9bd9ccb1959284c (git)
Affected: 1fde6f21d90f8ba5da3cb9c54ca991ed72696c43 , < 141294337bea78c9adacc0555273e6aca2f8eb74 (git)
Affected: 1fde6f21d90f8ba5da3cb9c54ca991ed72696c43 , < 624835b96e86f39708c680ba99dfe5d4bf1c819f (git)
Affected: 1fde6f21d90f8ba5da3cb9c54ca991ed72696c43 , < ab4efbf1f0d64763f2ba48a429c90306fecf6dcd (git)
Affected: 1fde6f21d90f8ba5da3cb9c54ca991ed72696c43 , < e83abe6bb7fea184518973773eff55301bd460f9 (git)
Affected: 1fde6f21d90f8ba5da3cb9c54ca991ed72696c43 , < 594a389f90686159f4a2198f370b43fcec01fdec (git)
Affected: 1fde6f21d90f8ba5da3cb9c54ca991ed72696c43 , < aece5f74f1e4a112f52adcc2af9b888ab2072562 (git)
Affected: 1fde6f21d90f8ba5da3cb9c54ca991ed72696c43 , < eeecea75ece2ba894bee4d3c53ed2e40abda8f0e (git)
Affected: 845d73be1b4cba6c353e99f79eff0f17e0d7c1d8 (git)
Affected: 84f5605a34a21fca82460648560d5135795389d7 (git)
Affected: 4.19.29 , < 4.20 (semver)
Affected: 4.20.16 , < 4.21 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 5.0
Unaffected: 0 , < 5.0 (semver)
Unaffected: 5.10.275 , ≤ 5.10.* (semver)
Unaffected: 5.15.226 , ≤ 5.15.* (semver)
Unaffected: 6.1.193 , ≤ 6.1.* (semver)
Unaffected: 6.6.163 , ≤ 6.6.* (semver)
Unaffected: 6.12.119 , ≤ 6.12.* (semver)
Unaffected: 6.18.63 , ≤ 6.18.* (semver)
Unaffected: 7.3.4 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/proc/generic.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a596be2ec595c51c8aaf04eea9bd9ccb1959284c",
              "status": "affected",
              "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
              "versionType": "git"
            },
            {
              "lessThan": "141294337bea78c9adacc0555273e6aca2f8eb74",
              "status": "affected",
              "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
              "versionType": "git"
            },
            {
              "lessThan": "624835b96e86f39708c680ba99dfe5d4bf1c819f",
              "status": "affected",
              "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
              "versionType": "git"
            },
            {
              "lessThan": "ab4efbf1f0d64763f2ba48a429c90306fecf6dcd",
              "status": "affected",
              "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
              "versionType": "git"
            },
            {
              "lessThan": "e83abe6bb7fea184518973773eff55301bd460f9",
              "status": "affected",
              "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
              "versionType": "git"
            },
            {
              "lessThan": "594a389f90686159f4a2198f370b43fcec01fdec",
              "status": "affected",
              "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
              "versionType": "git"
            },
            {
              "lessThan": "aece5f74f1e4a112f52adcc2af9b888ab2072562",
              "status": "affected",
              "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
              "versionType": "git"
            },
            {
              "lessThan": "eeecea75ece2ba894bee4d3c53ed2e40abda8f0e",
              "status": "affected",
              "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "845d73be1b4cba6c353e99f79eff0f17e0d7c1d8",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "84f5605a34a21fca82460648560d5135795389d7",
              "versionType": "git"
            },
            {
              "lessThan": "4.20",
              "status": "affected",
              "version": "4.19.29",
              "versionType": "semver"
            },
            {
              "lessThan": "4.21",
              "status": "affected",
              "version": "4.20.16",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/proc/generic.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.0"
            },
            {
              "lessThan": "5.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.275",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.119",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.275",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.226",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.193",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.163",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.119",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.63",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.4",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.19.29",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.20.16",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nproc: don\u0027t let an entry below /proc/\u003cpid\u003e/net be a mountpoint\n\nproc_net_d_revalidate() always returns 0 so that a dentry below\n/proc/\u003cpid\u003e/net is never reused after setns(). So lookup_fast() will end\nup calling d_invalidate(), which unhashes the dentry and detaches every\nmount on it, in every mount namespace; including locked mounts.\n\nThen lookup_slow() creates a new dentry for the same entry. So a mount\non /proc/\u003cpid\u003e/net/dev succeeds and goes away with the first lookup of\nthe name by anybody with search permission on the directory. Given it\u0027s\n0555 that\u0027s everyone\u0027s grandma. A mask on such a name hides nothing as\nthe repro below shows.\n\nTreat those entries like I did fd/, fdinfo/ and map_files/ and refuse to\nmount on them in the first place. It\u0027s nonsensical theater otherwise:\n\n  procnet net/dev stat\n\n  // SPDX-License-Identifier: GPL-2.0\n  /*\n   * procnet: cover an entry of /proc/\u003cpid\u003e/ with a bind mount, lock the mount,\n   * then look the name up.\n   *\n   * The first task stays alive, \u003cpid\u003e is its pid. The \"container\" task has its\n   * own mount namespace. There it binds a mask on /proc/\u003cpid\u003e/\u003cname\u003e. It drops to\n   * uid 1000 and enters a new user namespace with a new mount namespace, so that\n   * the mask is locked. Then one task looks the name up:\n   *\n   *   stat    the container calls stat() on the name\n   *   umount  the container calls umount2(MNT_DETACH) on the name\n   *   nobody  a task with uid 65534 in the first namespaces calls stat()\n   *\n   * The container lists its mounts before and after (that does not look the\n   * name up) and then reads the name. MASK is fine. Anything else means that\n   * the lookup uncovered the entry.\n   *\n   * usage: procnet \u003cname\u003e stat|umount|nobody\n   *   name \"status\" is the control, \"net/dev\" is a file below net, \"net/stat\" is\n   *   a directory below net\n   */\n  #define _GNU_SOURCE\n  #include \u003cdirent.h\u003e\n  #include \u003cerrno.h\u003e\n  #include \u003cfcntl.h\u003e\n  #include \u003csched.h\u003e\n  #include \u003cstdio.h\u003e\n  #include \u003cstdlib.h\u003e\n  #include \u003cstring.h\u003e\n  #include \u003ctime.h\u003e\n  #include \u003cunistd.h\u003e\n  #include \u003csys/mount.h\u003e\n  #include \u003csys/prctl.h\u003e\n  #include \u003csys/stat.h\u003e\n  #include \u003csys/wait.h\u003e\n\n  #define WORK \"/run/pn\"\n\n  static char target[128];\n\n  static void die(const char *what)\n  {\n  \tfprintf(stderr, \"FATAL %s: %s\\n\", what, strerror(errno));\n  \texit(2);\n  }\n\n  static void write_str(const char *path, const char *s, int flags)\n  {\n  \tint fd = open(path, O_WRONLY | flags, 0644);\n\n  \tif (fd \u003c 0 || write(fd, s, strlen(s)) \u003c 0)\n  \t\tdie(path);\n  \tclose(fd);\n  }\n\n  /* list the mounts below /proc without a lookup of the target */\n  static void mounts(const char *when)\n  {\n  \tchar line[512];\n  \tFILE *f = fopen(\"/proc/self/mountinfo\", \"r\");\n  \tint n = 0;\n\n  \tif (!f)\n  \t\tdie(\"mountinfo\");\n  \twhile (fgets(line, sizeof(line), f)) {\n  \t\tif (!strstr(line, \" /proc/\"))\n  \t\t\tcontinue;\n  \t\tprintf(\"container: %s: mount: %s\", when, line);\n  \t\tn++;\n  \t}\n  \tfclose(f);\n  \tif (!n)\n  \t\tprintf(\"container: %s: nothing is mounted below /proc\\n\", when);\n  }\n\n  static void show(const char *when, int isdir)\n  {\n  \tchar buf[48] = \"\";\n  \tint fd;\n\n  \tif (isdir) {\n  \t\tstruct dirent *de;\n  \t\tDIR *d = opendir(target);\n  \t\tint hit = 0;\n\n  \t\tif (!d) {\n  \t\t\tprintf(\"container: %s: opendir(%s) = %s\\n\", when, target, strerror(errno));\n  \t\t\treturn;\n  \t\t}\n  \t\tprintf(\"container: %s: readdir(%s) =\", when, target);\n  \t\twhile ((de = readdir(d))) {\n  \t\t\tif (de-\u003ed_name[0] == \u0027.\u0027)\n  \t\t\t\tcontinue;\n  \t\t\tprintf(\" %s\", de-\u003ed_name);\n  \t\t\thit |= strcmp(de-\u003ed_name, \"MASK\");\n  \t\t}\n  \t\tclosedir(d);\n  \t\tprintf(\"%s\\n\", hit ? \"   \u003c-- HIT\" : \"\");\n  \t\treturn;\n  \t}\n  \tfd = open(target, O_RDONLY);\n  \tif (fd \u003c 0) {\n  \t\tprintf(\"container: %s: open(%s) = %s\\n\", when, target, strerror(errno));\n  \t\treturn;\n  \t}\n  \tif (read(fd, buf, sizeof(buf) - 1) \u003c 0)\n  \t\tdie(\"read\");\n  \tclose(fd);\n  \tif (strchr(buf, \u0027\\n\u0027))\n  \t\t*strchr(buf, \u0027\\n\u0027) = 0;\n  \tprintf(\"container: %s: read(%s) = \\\"%s\\\"%s\\n\", when\n---truncated---"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-30T13:17:33.035Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a596be2ec595c51c8aaf04eea9bd9ccb1959284c"
        },
        {
          "url": "https://git.kernel.org/stable/c/141294337bea78c9adacc0555273e6aca2f8eb74"
        },
        {
          "url": "https://git.kernel.org/stable/c/624835b96e86f39708c680ba99dfe5d4bf1c819f"
        },
        {
          "url": "https://git.kernel.org/stable/c/ab4efbf1f0d64763f2ba48a429c90306fecf6dcd"
        },
        {
          "url": "https://git.kernel.org/stable/c/e83abe6bb7fea184518973773eff55301bd460f9"
        },
        {
          "url": "https://git.kernel.org/stable/c/594a389f90686159f4a2198f370b43fcec01fdec"
        },
        {
          "url": "https://git.kernel.org/stable/c/aece5f74f1e4a112f52adcc2af9b888ab2072562"
        },
        {
          "url": "https://git.kernel.org/stable/c/eeecea75ece2ba894bee4d3c53ed2e40abda8f0e"
        }
      ],
      "title": "proc: don\u0027t let an entry below /proc/\u003cpid\u003e/net be a mountpoint",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99841",
    "datePublished": "2026-11-30T13:17:33.035Z",
    "dateReserved": "2026-09-25T10:25:14.437Z",
    "dateUpdated": "2026-11-30T13:17:33.035Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99841",
      "date": "2026-12-04",
      "epss": "0.0022",
      "percentile": "0.13249"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "fs/proc/generic.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "a596be2ec595c51c8aaf04eea9bd9ccb1959284c",
                    "status": "affected",
                    "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "141294337bea78c9adacc0555273e6aca2f8eb74",
                    "status": "affected",
                    "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "624835b96e86f39708c680ba99dfe5d4bf1c819f",
                    "status": "affected",
                    "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "ab4efbf1f0d64763f2ba48a429c90306fecf6dcd",
                    "status": "affected",
                    "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e83abe6bb7fea184518973773eff55301bd460f9",
                    "status": "affected",
                    "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "594a389f90686159f4a2198f370b43fcec01fdec",
                    "status": "affected",
                    "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "aece5f74f1e4a112f52adcc2af9b888ab2072562",
                    "status": "affected",
                    "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "eeecea75ece2ba894bee4d3c53ed2e40abda8f0e",
                    "status": "affected",
                    "version": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43",
                    "versionType": "git"
                  },
                  {
                    "status": "affected",
                    "version": "845d73be1b4cba6c353e99f79eff0f17e0d7c1d8",
                    "versionType": "git"
                  },
                  {
                    "status": "affected",
                    "version": "84f5605a34a21fca82460648560d5135795389d7",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "4.20",
                    "status": "affected",
                    "version": "4.19.29",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "4.21",
                    "status": "affected",
                    "version": "4.20.16",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "fs/proc/generic.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.0"
                  },
                  {
                    "lessThan": "5.0",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.10.*",
                    "status": "unaffected",
                    "version": "5.10.275",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.226",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.193",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.163",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.119",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.63",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.4",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nproc: don\u0027t let an entry below /proc/\u003cpid\u003e/net be a mountpoint\n\nproc_net_d_revalidate() always returns 0 so that a dentry below\n/proc/\u003cpid\u003e/net is never reused after setns(). So lookup_fast() will end\nup calling d_invalidate(), which unhashes the dentry and detaches every\nmount on it, in every mount namespace; including locked mounts.\n\nThen lookup_slow() creates a new dentry for the same entry. So a mount\non /proc/\u003cpid\u003e/net/dev succeeds and goes away with the first lookup of\nthe name by anybody with search permission on the directory. Given it\u0027s\n0555 that\u0027s everyone\u0027s grandma. A mask on such a name hides nothing as\nthe repro below shows.\n\nTreat those entries like I did fd/, fdinfo/ and map_files/ and refuse to\nmount on them in the first place. It\u0027s nonsensical theater otherwise:\n\n  procnet net/dev stat\n\n  // SPDX-License-Identifier: GPL-2.0\n  /*\n   * procnet: cover an entry of /proc/\u003cpid\u003e/ with a bind mount, lock the mount,\n   * then look the name up.\n   *\n   * The first task stays alive, \u003cpid\u003e is its pid. The \"container\" task has its\n   * own mount namespace. There it binds a mask on /proc/\u003cpid\u003e/\u003cname\u003e. It drops to\n   * uid 1000 and enters a new user namespace with a new mount namespace, so that\n   * the mask is locked. Then one task looks the name up:\n   *\n   *   stat    the container calls stat() on the name\n   *   umount  the container calls umount2(MNT_DETACH) on the name\n   *   nobody  a task with uid 65534 in the first namespaces calls stat()\n   *\n   * The container lists its mounts before and after (that does not look the\n   * name up) and then reads the name. MASK is fine. Anything else means that\n   * the lookup uncovered the entry.\n   *\n   * usage: procnet \u003cname\u003e stat|umount|nobody\n   *   name \"status\" is the control, \"net/dev\" is a file below net, \"net/stat\" is\n   *   a directory below net\n   */\n  #define _GNU_SOURCE\n  #include \u003cdirent.h\u003e\n  #include \u003cerrno.h\u003e\n  #include \u003cfcntl.h\u003e\n  #include \u003csched.h\u003e\n  #include \u003cstdio.h\u003e\n  #include \u003cstdlib.h\u003e\n  #include \u003cstring.h\u003e\n  #include \u003ctime.h\u003e\n  #include \u003cunistd.h\u003e\n  #include \u003csys/mount.h\u003e\n  #include \u003csys/prctl.h\u003e\n  #include \u003csys/stat.h\u003e\n  #include \u003csys/wait.h\u003e\n\n  #define WORK \"/run/pn\"\n\n  static char target[128];\n\n  static void die(const char *what)\n  {\n  \tfprintf(stderr, \"FATAL %s: %s\\n\", what, strerror(errno));\n  \texit(2);\n  }\n\n  static void write_str(const char *path, const char *s, int flags)\n  {\n  \tint fd = open(path, O_WRONLY | flags, 0644);\n\n  \tif (fd \u003c 0 || write(fd, s, strlen(s)) \u003c 0)\n  \t\tdie(path);\n  \tclose(fd);\n  }\n\n  /* list the mounts below /proc without a lookup of the target */\n  static void mounts(const char *when)\n  {\n  \tchar line[512];\n  \tFILE *f = fopen(\"/proc/self/mountinfo\", \"r\");\n  \tint n = 0;\n\n  \tif (!f)\n  \t\tdie(\"mountinfo\");\n  \twhile (fgets(line, sizeof(line), f)) {\n  \t\tif (!strstr(line, \" /proc/\"))\n  \t\t\tcontinue;\n  \t\tprintf(\"container: %s: mount: %s\", when, line);\n  \t\tn++;\n  \t}\n  \tfclose(f);\n  \tif (!n)\n  \t\tprintf(\"container: %s: nothing is mounted below /proc\\n\", when);\n  }\n\n  static void show(const char *when, int isdir)\n  {\n  \tchar buf[48] = \"\";\n  \tint fd;\n\n  \tif (isdir) {\n  \t\tstruct dirent *de;\n  \t\tDIR *d = opendir(target);\n  \t\tint hit = 0;\n\n  \t\tif (!d) {\n  \t\t\tprintf(\"container: %s: opendir(%s) = %s\\n\", when, target, strerror(errno));\n  \t\t\treturn;\n  \t\t}\n  \t\tprintf(\"container: %s: readdir(%s) =\", when, target);\n  \t\twhile ((de = readdir(d))) {\n  \t\t\tif (de-\u003ed_name[0] == \u0027.\u0027)\n  \t\t\t\tcontinue;\n  \t\t\tprintf(\" %s\", de-\u003ed_name);\n  \t\t\thit |= strcmp(de-\u003ed_name, \"MASK\");\n  \t\t}\n  \t\tclosedir(d);\n  \t\tprintf(\"%s\\n\", hit ? \"   \u003c-- HIT\" : \"\");\n  \t\treturn;\n  \t}\n  \tfd = open(target, O_RDONLY);\n  \tif (fd \u003c 0) {\n  \t\tprintf(\"container: %s: open(%s) = %s\\n\", when, target, strerror(errno));\n  \t\treturn;\n  \t}\n  \tif (read(fd, buf, sizeof(buf) - 1) \u003c 0)\n  \t\tdie(\"read\");\n  \tclose(fd);\n  \tif (strchr(buf, \u0027\\n\u0027))\n  \t\t*strchr(buf, \u0027\\n\u0027) = 0;\n  \tprintf(\"container: %s: read(%s) = \\\"%s\\\"%s\\n\", when\n---truncated---"
          }
        ],
        "id": "CVE-2026-99841",
        "lastModified": "2026-11-30T14:20:17.223",
        "metrics": {},
        "published": "2026-11-30T14:20:17.223",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/141294337bea78c9adacc0555273e6aca2f8eb74"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/594a389f90686159f4a2198f370b43fcec01fdec"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/624835b96e86f39708c680ba99dfe5d4bf1c819f"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a596be2ec595c51c8aaf04eea9bd9ccb1959284c"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/ab4efbf1f0d64763f2ba48a429c90306fecf6dcd"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/aece5f74f1e4a112f52adcc2af9b888ab2072562"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e83abe6bb7fea184518973773eff55301bd460f9"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/eeecea75ece2ba894bee4d3c53ed2e40abda8f0e"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-12-01T03:27:07+00:00",
      "cve": "CVE-2026-99841",
      "id": "CVE-2026-99841",
      "initial_release_date": "2026-11-30T13:17:33.035000+00:00",
      "product_status:known_affected": "252",
      "product_status:known_not_affected": "28",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: information disclosure via locked mount detachment under /proc/\u003cpid\u003e/net",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99841.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.