{"schema":"threatline.record/2","record":{"id":"CVE-2026-98984","aliases":[],"summary":"dcache: don't put a mountpoint on a dentry that's being removed","details":"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.","categories":["Operating systems"],"product":"Linux","vendor":"Linux","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98984","source_modified_at":"2026-10-23T12:20:02.285Z","fetched_at":"2026-10-23T18:42:43.628194Z","product":"Linux","vendor":"Linux","versions":[{"version":"1064f874abc0d05eeed8993815f584d847b72486","lessThan":"5e6bfd9f249f2c74bb63c0f06ad959da3bee0971","status":"affected","versionType":"git"},{"version":"1064f874abc0d05eeed8993815f584d847b72486","lessThan":"793cb67b0f52d00c67bd0e76bc57455b5c70ebb8","status":"affected","versionType":"git"},{"version":"1064f874abc0d05eeed8993815f584d847b72486","lessThan":"390ddcea2a8aca411b931a8e2863a80ccca8d2b3","status":"affected","versionType":"git"},{"version":"1064f874abc0d05eeed8993815f584d847b72486","lessThan":"30a1625022411a387cce9239408ece9955bc9c58","status":"affected","versionType":"git"},{"version":"1064f874abc0d05eeed8993815f584d847b72486","lessThan":"75f4197f1e11d2eb75c2d6f916a7d4764db621e5","status":"affected","versionType":"git"},{"version":"5e6ef5ef6eaf690faad3a7c6c665ebf45d7b6ccf","status":"affected","versionType":"git"},{"version":"839d42687dfce0ed0ea2c6bd8d707cc0e276fbe7","status":"affected","versionType":"git"},{"version":"808e83e5add13152bd4a88346487de68395c136b","status":"affected","versionType":"git"},{"version":"6de9d08a9718ee9c12ba6343c50141c2d633e3dc","status":"affected","versionType":"git"},{"version":"4.1.40","lessThan":"4.2","status":"affected","versionType":"semver"},{"version":"4.4.54","lessThan":"4.5","status":"affected","versionType":"semver"},{"version":"4.9.15","lessThan":"4.10","status":"affected","versionType":"semver"},{"version":"4.10.3","lessThan":"4.11","status":"affected","versionType":"semver"}],"defaultStatus":"unaffected"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98984","source_modified_at":"2026-10-23T12:20:02.285Z","fetched_at":"2026-10-23T18:42:43.628194Z","product":"Linux","vendor":"Linux","versions":[{"version":"4.11","status":"affected"},{"version":"0","lessThan":"4.11","status":"unaffected","versionType":"semver"},{"version":"6.6.160","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.113","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.57","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.11","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"defaultStatus":"affected"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98984","source_modified_at":"2026-10-23T12:20:02.285Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"Linux","ecosystem":null},"version":"5e6bfd9f249f2c74bb63c0f06ad959da3bee0971","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98984","source_modified_at":"2026-10-23T12:20:02.285Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"Linux","ecosystem":null},"version":"793cb67b0f52d00c67bd0e76bc57455b5c70ebb8","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98984","source_modified_at":"2026-10-23T12:20:02.285Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"Linux","ecosystem":null},"version":"390ddcea2a8aca411b931a8e2863a80ccca8d2b3","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98984","source_modified_at":"2026-10-23T12:20:02.285Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"Linux","ecosystem":null},"version":"30a1625022411a387cce9239408ece9955bc9c58","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98984","source_modified_at":"2026-10-23T12:20:02.285Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"Linux","ecosystem":null},"version":"75f4197f1e11d2eb75c2d6f916a7d4764db621e5","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98984","source_modified_at":"2026-10-23T12:20:02.285Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"Linux","ecosystem":null},"version":"4.2","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98984","source_modified_at":"2026-10-23T12:20:02.285Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"Linux","ecosystem":null},"version":"4.5","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98984","source_modified_at":"2026-10-23T12:20:02.285Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"Linux","ecosystem":null},"version":"4.10","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98984","source_modified_at":"2026-10-23T12:20:02.285Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"Linux","ecosystem":null},"version":"4.11","basis":"first unaffected version stated in the CVE record"}],"cvss":null,"severity":null,"kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-10-23T12:20:02.285Z","modified_at":"2026-10-23T12:20:02.285Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-98984","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23T12:20:02.285Z"}],"sources":["CVE List"],"references":[{"source":"CVE List","url":"https://git.kernel.org/stable/c/5e6bfd9f249f2c74bb63c0f06ad959da3bee0971"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/793cb67b0f52d00c67bd0e76bc57455b5c70ebb8"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/390ddcea2a8aca411b931a8e2863a80ccca8d2b3"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/30a1625022411a387cce9239408ece9955bc9c58"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/75f4197f1e11d2eb75c2d6f916a7d4764db621e5"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-23T12:20:02.285Z","content_hash":"5c24e6bee256064ed6198a929497abc8c1d5bbafb493a89c21a190d92496ac37"}}
