{"id":"CVE-2026-98982","aliases":["CVE-2026-98982"],"related":[],"kind":"vulnerability","state":"published","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:\n\nnamespace: don't 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's 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't the root of\na mount. But bind mounting /proc/self/fd/<fd> 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't. It\nplaces the token file on the bpffs mount the caller handed it and that\nmount is in the caller's mount namespace so the clone goes through:\n\n  mount --bind /proc/self/fd/<token> <file>\n  open_tree(tokfd, \"\", AT_EMPTY_PATH | OPEN_TREE_CLONE) + move_mount()\n\n__follow_mount_rcu() then loads ->mnt_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's 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnamespace: don't 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's 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't the root of\na mount. But bind mounting /proc/self/fd/<fd> 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't. It\nplaces the token file on the bpffs mount the caller handed it and that\nmount is in the caller's mount namespace so the clone goes through:\n\n  mount --bind /proc/self/fd/<token> <file>\n  open_tree(tokfd, \"\", AT_EMPTY_PATH | OPEN_TREE_CLONE) + move_mount()\n\n__follow_mount_rcu() then loads ->mnt_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's 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.","source":"cvelist"}],"published":"2026-10-23T12:19:59.784Z","modified":"2026-10-24T14:16:50.850Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"35f96de04127d332a5c5e8a155d31f452f88c76d","fixed":"a256e31e0c54c4c37d2523aa52faabdcdd2ebc07","status":"affected"},{"type":"git","introduced":"35f96de04127d332a5c5e8a155d31f452f88c76d","fixed":"7e1c466011ba9e64d43075396badc03191bcee44","status":"affected"},{"type":"git","introduced":"35f96de04127d332a5c5e8a155d31f452f88c76d","fixed":"00287afa7cd989efdbf5822b7efac33cce7d489a","status":"affected"},{"type":"git","introduced":"35f96de04127d332a5c5e8a155d31f452f88c76d","fixed":"b138e16fb1e81376cea89f727dda7bfccd140de4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.12.113","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.11","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/a256e31e0c54c4c37d2523aa52faabdcdd2ebc07","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e1c466011ba9e64d43075396badc03191bcee44","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/00287afa7cd989efdbf5822b7efac33cce7d489a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b138e16fb1e81376cea89f727dda7bfccd140de4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98982","url":"https://www.cve.org/CVERecord?id=CVE-2026-98982","licence":"CVE Terms of Use","modified":"2026-10-24T14:09:50.745Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98982","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98982","licence":"Public domain","modified":"2026-10-24T14:16:50.850Z"}],"updatedAt":"2026-11-25T22:59:46.933Z","epss":{"score":0.00175,"percentile":0.04111,"date":"2026-11-30T12:00:22.000Z"}}