{"cve":"CVE-2026-98985","nvd":{"published":"2026-10-23T13:17:20.420","modified":"2026-10-23T13:17:20.420","status":"Received","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnamespace: check the mounts before reading their parents in pivot_root()\n\npath_pivot_root() reads the parents of new_root and of the caller's root\nand checks whether they are shared before it checks that either mount is\nin the caller's mount namespace. Only namespace_sem is held. That's fine\nfor a mount that is in the caller's mount namespace.\n\nBut new_root can be a file descriptor to a mount that has been unmounted\nand that only the file descriptor keeps alive. If that mount stayed\nattached to its parent when it was unmounted nothing pins the parent for\nit. The final mntput() of the parent unhooks the children under\nmount_lock alone and frees the parent afterwards:\n\n  pivot_root()                     close(fd), last ref on the parent\n  ------------                     ---------------------------------\n  ex_parent = new_mnt->mnt_parent\n                                   mntput_no_expire_slowpath()\n                                     __umount_mnt(new_mnt)\n                                   cleanup_mnt()\n                                     call_rcu()\n  IS_MNT_SHARED(ex_parent)\n\n  BUG: KASAN: slab-use-after-free in path_pivot_root+0xf1a/0x1840\n  Read of size 4 at addr ffff8881047382f8 by task pivot_widen/157\n   path_pivot_root+0xf1a/0x1840\n   __x64_sys_pivot_root+0x165/0x190\n\nThe same goes for the caller's root via chroot(). Both outcomes of the\ncheck end in EINVAL so nothing but the read itself goes wrong. It's the\nsame thing commit bb4609405752 (\"statmount: read the parent of an\nunmounted mount under mount_lock\") fixed for statmount().\n\nCheck that both mounts are in the caller's namespace before their\nparents are read. Every path returns EINVAL either way.","cvss_v4":null,"cvss_v3":null,"cwes":[],"references":["https://git.kernel.org/stable/c/3c2441e21c3df867e4131e0ff784ecdb3a7a55f8","https://git.kernel.org/stable/c/3dad2330c89343ba083cf7868779083fd5fbe0fe","https://git.kernel.org/stable/c/6b7c001eb5857fa09041f47673666060a2e5fc1c","https://git.kernel.org/stable/c/a56d4f8f8f4c5d9ac339d5c03a9d90eecd3697fc","https://git.kernel.org/stable/c/e3aba6900483f64e6c9eb328150dd633b7d36c1c"],"products":[],"source":"nvd","synced_at":"2026-10-23T16:39:28.036610720+00:00"},"epss":{"cve":"CVE-2026-98985","score":0.00168,"percentile":0.06156,"date":"2026-10-25"},"kev":null,"osv":[],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}