CVE-2026-98982 (GCVE-0-2026-98982)

Vulnerability from cvelistv5 – Published: 2026-10-23 12:19 – Updated: 2026-10-24 14:09
VLAI
Title
namespace: don't let a pseudo dentry become the root of a mount
Summary
In the Linux kernel, the following vulnerability has been resolved: namespace: don't let a pseudo dentry become the root of a mount d_alloc_pseudo() hands out dentries for pipes, sockets and other files that are never anyone's child or parent. They carry DCACHE_NORCU and dentry_free() frees them right away because no lockless path walk can ever reach them. That holds as long as such a dentry isn't the root of a mount. But bind mounting /proc/self/fd/<fd> of such a file does exactly that. Most callers of alloc_file_pseudo() put their files on kernel-internal mounts and may_copy_tree() refuses those. bpf_token_create() doesn't. It places the token file on the bpffs mount the caller handed it and that mount is in the caller's mount namespace so the clone goes through: mount --bind /proc/self/fd/<token> <file> open_tree(tokfd, "", AT_EMPTY_PATH | OPEN_TREE_CLONE) + move_mount() __follow_mount_rcu() then loads ->mnt_root of that mount, reads d_seq and d_flags of the dentry and only then checks mount_lock. The dentry can be gone by then. The final mntput() of an unmounted parent unhooks a child that stayed attached to it under mount_lock alone. When the child's holder does the final put right after that the root is dput() and freed immediately while a walker that found the mount hashed still looks at it. Refuse to clone a mount with a DCACHE_NORCU dentry as its root. Nothing sensible can be done with a bind mount of a bpf token anyway.
Assigner
Linux CNA under the mitre root
CNA scorecard D 53/100 over 7064 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 35f96de04127d332a5c5e8a155d31f452f88c76d , < a256e31e0c54c4c37d2523aa52faabdcdd2ebc07 (git)
Affected: 35f96de04127d332a5c5e8a155d31f452f88c76d , < 7e1c466011ba9e64d43075396badc03191bcee44 (git)
Affected: 35f96de04127d332a5c5e8a155d31f452f88c76d , < 00287afa7cd989efdbf5822b7efac33cce7d489a (git)
Affected: 35f96de04127d332a5c5e8a155d31f452f88c76d , < b138e16fb1e81376cea89f727dda7bfccd140de4 (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.9
Unaffected: 0 , < 6.9 (semver)
Unaffected: 6.12.113 , ≤ 6.12.* (semver)
Unaffected: 6.18.57 , ≤ 6.18.* (semver)
Unaffected: 7.2.11 , ≤ 7.2.* (semver)
Unaffected: 7.3 , ≤ * (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/namespace.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a256e31e0c54c4c37d2523aa52faabdcdd2ebc07",
              "status": "affected",
              "version": "35f96de04127d332a5c5e8a155d31f452f88c76d",
              "versionType": "git"
            },
            {
              "lessThan": "7e1c466011ba9e64d43075396badc03191bcee44",
              "status": "affected",
              "version": "35f96de04127d332a5c5e8a155d31f452f88c76d",
              "versionType": "git"
            },
            {
              "lessThan": "00287afa7cd989efdbf5822b7efac33cce7d489a",
              "status": "affected",
              "version": "35f96de04127d332a5c5e8a155d31f452f88c76d",
              "versionType": "git"
            },
            {
              "lessThan": "b138e16fb1e81376cea89f727dda7bfccd140de4",
              "status": "affected",
              "version": "35f96de04127d332a5c5e8a155d31f452f88c76d",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/namespace.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.9"
            },
            {
              "lessThan": "6.9",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.113",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.57",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.11",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.113",
                  "versionStartIncluding": "6.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.57",
                  "versionStartIncluding": "6.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.11",
                  "versionStartIncluding": "6.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "6.9",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnamespace: don\u0027t let a pseudo dentry become the root of a mount\n\nd_alloc_pseudo() hands out dentries for pipes, sockets and other files\nthat are never anyone\u0027s child or parent. They carry DCACHE_NORCU and\ndentry_free() frees them right away because no lockless path walk can\never reach them. That holds as long as such a dentry isn\u0027t the root of\na mount. But bind mounting /proc/self/fd/\u003cfd\u003e of such a file does\nexactly that.\n\nMost callers of alloc_file_pseudo() put their files on kernel-internal\nmounts and may_copy_tree() refuses those. bpf_token_create() doesn\u0027t. It\nplaces the token file on the bpffs mount the caller handed it and that\nmount is in the caller\u0027s mount namespace so the clone goes through:\n\n  mount --bind /proc/self/fd/\u003ctoken\u003e \u003cfile\u003e\n  open_tree(tokfd, \"\", AT_EMPTY_PATH | OPEN_TREE_CLONE) + move_mount()\n\n__follow_mount_rcu() then loads -\u003emnt_root of that mount, reads d_seq\nand d_flags of the dentry and only then checks mount_lock. The dentry\ncan be gone by then. The final mntput() of an unmounted parent unhooks\na child that stayed attached to it under mount_lock alone. When the\nchild\u0027s holder does the final put right after that the root is dput()\nand freed immediately while a walker that found the mount hashed still\nlooks at it.\n\nRefuse to clone a mount with a DCACHE_NORCU dentry as its root. Nothing\nsensible can be done with a bind mount of a bpf token anyway."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - Local bpf(BPF_TOKEN_CREATE) reaches bpf_token_create()/alloc_file_pseudo(), after which mount(MS_BIND) or open_tree(OPEN_TREE_CLONE) reaches the patched __do_loopback() on /proc/self/fd/\u003ctoken\u003e; no network protocol carries the triggering data.\nAC:L - The attacker controls creation and teardown of the token-root mount and can race cleanup_mnt()/dput() against openat() reaching __follow_mount_rcu() using concurrent threads; neither side of the race requires external timing or victim-controlled state.\nPR:L - bpf_token_create() requires CAP_BPF in the bpffs user namespace, while open_tree(OPEN_TREE_CLONE) and move_mount() require CAP_SYS_ADMIN over the mount namespace; because bpf_fs_type has FS_USERNS_MOUNT, an ordinary user can obtain these capabilities through unprivileged user and mount namespaces.\nUI:N - The attacking process performs every required action itself: mounting delegated bpffs, creating the token, cloning and tearing down mounts, and racing openat(); no victim must mount, open, or otherwise process attacker-supplied data.\nS:U - The freed dentry is consumed by __follow_mount_rcu() inside the same host kernel, yielding ordinary local kernel compromise or denial of service rather than crossing a VM, IOMMU, or separate security-authority boundary.\nC:H - cleanup_mnt() can dput() and immediately free the DCACHE_NORCU mount root while __follow_mount_rcu() still reads its d_seq, d_flags, and potentially d_op; attacker-driven dentry-cache reuse makes this kernel UAF capable of high-impact memory disclosure.\nI:H - The freed struct dentry can be reclaimed through attacker-driven dentry allocation, letting heap spraying influence fields and the d_op-\u003ed_manage dispatch consumed by __follow_mount_rcu(); this is an exploitable kernel UAF path to arbitrary modification or control-flow hijacking.\nA:H - __follow_mount_rcu() dereferences the mount root after dentry_free() has returned it immediately to dentry_cache, so poisoned or reclaimed contents can cause a kernel oops or panic, and attacker-controlled threads can repeat the race."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-24T14:09:50.745Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a256e31e0c54c4c37d2523aa52faabdcdd2ebc07"
        },
        {
          "url": "https://git.kernel.org/stable/c/7e1c466011ba9e64d43075396badc03191bcee44"
        },
        {
          "url": "https://git.kernel.org/stable/c/00287afa7cd989efdbf5822b7efac33cce7d489a"
        },
        {
          "url": "https://git.kernel.org/stable/c/b138e16fb1e81376cea89f727dda7bfccd140de4"
        }
      ],
      "title": "namespace: don\u0027t let a pseudo dentry become the root of a mount",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-98982",
    "datePublished": "2026-10-23T12:19:59.784Z",
    "dateReserved": "2026-09-25T10:25:14.384Z",
    "dateUpdated": "2026-10-24T14:09:50.745Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-98982",
      "date": "2026-10-26",
      "epss": "0.00163",
      "percentile": "0.05461"
    },
    "microsoft_vex": {
      "current_release_date": "2026-10-24T01:10:53.000Z",
      "cve": "CVE-2026-98982",
      "id": "msrc_CVE-2026-98982",
      "initial_release_date": "2026-10-24T01:10:53.000Z",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "namespace: don\u0027t let a pseudo dentry become the root of a mount",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-98982.json",
      "version": "1"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "fs/namespace.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "a256e31e0c54c4c37d2523aa52faabdcdd2ebc07",
                    "status": "affected",
                    "version": "35f96de04127d332a5c5e8a155d31f452f88c76d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7e1c466011ba9e64d43075396badc03191bcee44",
                    "status": "affected",
                    "version": "35f96de04127d332a5c5e8a155d31f452f88c76d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "00287afa7cd989efdbf5822b7efac33cce7d489a",
                    "status": "affected",
                    "version": "35f96de04127d332a5c5e8a155d31f452f88c76d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "b138e16fb1e81376cea89f727dda7bfccd140de4",
                    "status": "affected",
                    "version": "35f96de04127d332a5c5e8a155d31f452f88c76d",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "fs/namespace.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.9"
                  },
                  {
                    "lessThan": "6.9",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.113",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.57",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.2.*",
                    "status": "unaffected",
                    "version": "7.2.11",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.3",
                    "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\nnamespace: don\u0027t let a pseudo dentry become the root of a mount\n\nd_alloc_pseudo() hands out dentries for pipes, sockets and other files\nthat are never anyone\u0027s child or parent. They carry DCACHE_NORCU and\ndentry_free() frees them right away because no lockless path walk can\never reach them. That holds as long as such a dentry isn\u0027t the root of\na mount. But bind mounting /proc/self/fd/\u003cfd\u003e of such a file does\nexactly that.\n\nMost callers of alloc_file_pseudo() put their files on kernel-internal\nmounts and may_copy_tree() refuses those. bpf_token_create() doesn\u0027t. It\nplaces the token file on the bpffs mount the caller handed it and that\nmount is in the caller\u0027s mount namespace so the clone goes through:\n\n  mount --bind /proc/self/fd/\u003ctoken\u003e \u003cfile\u003e\n  open_tree(tokfd, \"\", AT_EMPTY_PATH | OPEN_TREE_CLONE) + move_mount()\n\n__follow_mount_rcu() then loads -\u003emnt_root of that mount, reads d_seq\nand d_flags of the dentry and only then checks mount_lock. The dentry\ncan be gone by then. The final mntput() of an unmounted parent unhooks\na child that stayed attached to it under mount_lock alone. When the\nchild\u0027s holder does the final put right after that the root is dput()\nand freed immediately while a walker that found the mount hashed still\nlooks at it.\n\nRefuse to clone a mount with a DCACHE_NORCU dentry as its root. Nothing\nsensible can be done with a bind mount of a bpf token anyway."
          }
        ],
        "id": "CVE-2026-98982",
        "lastModified": "2026-10-24T14:16:50.850",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-10-23T13:17:20.043",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/00287afa7cd989efdbf5822b7efac33cce7d489a"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7e1c466011ba9e64d43075396badc03191bcee44"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a256e31e0c54c4c37d2523aa52faabdcdd2ebc07"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/b138e16fb1e81376cea89f727dda7bfccd140de4"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "suse_vex": {
      "aggregate_severity": "important",
      "current_release_date": "2026-10-24T16:31:54Z",
      "cve": "CVE-2026-98982",
      "id": "CVE-2026-98982",
      "initial_release_date": "2026-10-23T23:52:21Z",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-98982",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-98982.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
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.