{"id":"CVE-2026-98994","title":"statmount: read the parent of an unmounted mount under mount_lock","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nstatmount: read the parent of an unmounted mount under mount_lock\n\nstatmount_mnt_basic() reads the ids of the parent through m->mnt_parent\nwith namespace_sem held for r…","severity":"none","vendor":"Linux","product":"Linux","affected":["Linux >= 0e5032237ee5530147fbdf33134297e1490d5ec3 < 98fc6c7b6ca676157d2c780bd0a537b2c10fe08f","Linux >= 0e5032237ee5530147fbdf33134297e1490d5ec3 < bb46094057520304073130920c223451c2a694a7","Linux 7.0"],"published":"2026-10-23","updated":"2026-10-23","sourceUpdated":"2026-10-23T12:20:13.244Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98994","references":[{"url":"https://git.kernel.org/stable/c/98fc6c7b6ca676157d2c780bd0a537b2c10fe08f"},{"url":"https://git.kernel.org/stable/c/bb46094057520304073130920c223451c2a694a7"}],"tags":["cve.org"],"ingestedAt":"2026-10-23T13:24:55.544Z","slug":"CVE-2026-98994","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nstatmount: read the parent of an unmounted mount under mount_lock\n\nstatmount_mnt_basic() reads the ids of the parent through m->mnt_parent\nwith namespace_sem held for reading. That's fine for a mount that is\nin a namespace. Everything above it is pinned by that namespace.\n\nSTATMOUNT_BY_FD also accepts a file descriptor on a mount that has\nbeen unmounted on purpose and that only the file descriptor keeps alive.\nIf that mount stayed attached to its parent when it was unmounted the\nparent is unmounted as well and nothing pins it for the child.\n\nThe final mntput() unmounts the children under mount_lock alone and\nfrees the parent afterwards. Concurrently, statmount_mnt_basic() reads\nm->mnt_parent twice while that can happen and can easily dereference a\nmount that's already gone.\n\nRead the parent of an unmounted mount under mount_lock. The parent\ncan't be put while it is held and both ids come from the same mount. A\nmounted mount's parent is pinned by the namespace and a mount can't\nleave its namespace while namespace_sem is held, so the common case\ntakes no global lock.\n\n## Affected\n\n- `Linux >= 0e5032237ee5530147fbdf33134297e1490d5ec3 < 98fc6c7b6ca676157d2c780bd0a537b2c10fe08f`\n- `Linux >= 0e5032237ee5530147fbdf33134297e1490d5ec3 < bb46094057520304073130920c223451c2a694a7`\n- `Linux 7.0`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}