{"cve":"CVE-2026-98984","nvd":{"published":"2026-10-23T13:17:20.287","modified":"2026-10-23T13:17:20.287","status":"Received","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndcache: don't put a mountpoint on a dentry that's being removed\n\nrmdir(), unlink() and rename() call dont_mount() on the victim and then\ndetach_mounts() with the victim's inode locked. do_lock_mount() takes\nthe inode lock of the mountpoint and checks cant_mount() so a mount\ncan't show up after detach_mounts().\n\nBut attach_recursive_mnt() makes a second mountpoint for the root of the\nsource mount so that the mounts already located at the destination can\nbe put on top of it. No inode is locked for that one and d_set_mounted()\nonly refuses a dentry that is unlinked. Between detach_mounts() and\nd_delete() the victim is still hashed:\n\n  rmrace: b passed dont_mount() and detach_mounts(), sleeping\n  T2: move_mount(S, /tmp/plcant/x, BENEATH) = 0 errno 0 ()\n  T1: rmdir(/tmp/plcant/d/b) = 0 errno 0\n      109 107 0:61 /d/b//deleted /tmp/plcant/x rw,relatime - tmpfs tmpfs rw\n      108 109 0:63 / /tmp/plcant/x rw,relatime - tmpfs T rw\n\nA bind mount of the directory that's being removed is moved beneath an\nexisting mount while the rmdir() is located between the two calls. The\nmount ends up on the removed directory and nothing will ever detach it.\n\nCheck cant_mount() in d_set_mounted() as well. dont_mount() raises the\nflag under d_lock before detach_mounts() runs so either the mountpoint\nis set first and detach_mounts() finds the mount or the flag is seen and\nthe mount is refused.","cvss_v4":null,"cvss_v3":null,"cwes":[],"references":["https://git.kernel.org/stable/c/30a1625022411a387cce9239408ece9955bc9c58","https://git.kernel.org/stable/c/390ddcea2a8aca411b931a8e2863a80ccca8d2b3","https://git.kernel.org/stable/c/5e6bfd9f249f2c74bb63c0f06ad959da3bee0971","https://git.kernel.org/stable/c/75f4197f1e11d2eb75c2d6f916a7d4764db621e5","https://git.kernel.org/stable/c/793cb67b0f52d00c67bd0e76bc57455b5c70ebb8"],"products":[],"source":"nvd","synced_at":"2026-10-23T16:39:28.036610720+00:00"},"epss":{"cve":"CVE-2026-98984","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."]}