{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1fde6f21d90f8ba5da3cb9c54ca991ed72696c43"
            },
            {
              "fixed": "a596be2ec595c51c8aaf04eea9bd9ccb1959284c"
            },
            {
              "fixed": "141294337bea78c9adacc0555273e6aca2f8eb74"
            },
            {
              "fixed": "624835b96e86f39708c680ba99dfe5d4bf1c819f"
            },
            {
              "fixed": "ab4efbf1f0d64763f2ba48a429c90306fecf6dcd"
            },
            {
              "fixed": "e83abe6bb7fea184518973773eff55301bd460f9"
            },
            {
              "fixed": "594a389f90686159f4a2198f370b43fcec01fdec"
            },
            {
              "fixed": "aece5f74f1e4a112f52adcc2af9b888ab2072562"
            },
            {
              "fixed": "eeecea75ece2ba894bee4d3c53ed2e40abda8f0e"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "845d73be1b4cba6c353e99f79eff0f17e0d7c1d8"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "84f5605a34a21fca82460648560d5135795389d7"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.19.29"
            },
            {
              "fixed": "4.20"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "4.20.16"
            },
            {
              "fixed": "4.21"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.0.0"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99841.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nproc: don't 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's\n0555 that's everyone's 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's 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] == '.')\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, '\\n'))\n  \t\t*strchr(buf, '\\n') = 0;\n  \tprintf(\"container: %s: read(%s) = \\\"%s\\\"%s\\n\", when\n---truncated---",
  "id": "CVE-2026-99841",
  "modified": "2026-11-30T14:45:23.805478012Z",
  "published": "2026-11-30T13:17:33.035Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/141294337bea78c9adacc0555273e6aca2f8eb74"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/594a389f90686159f4a2198f370b43fcec01fdec"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/624835b96e86f39708c680ba99dfe5d4bf1c819f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a596be2ec595c51c8aaf04eea9bd9ccb1959284c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ab4efbf1f0d64763f2ba48a429c90306fecf6dcd"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/aece5f74f1e4a112f52adcc2af9b888ab2072562"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e83abe6bb7fea184518973773eff55301bd460f9"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/eeecea75ece2ba894bee4d3c53ed2e40abda8f0e"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99841.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99841"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "proc: don't let an entry below /proc/\u003cpid\u003e/net be a mountpoint"
}