CVE-2026-98995·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: namespace: reset the old parent's ->overmount in mnt_change_mountpoint() __umount_mnt() resets ->overmount of the parent when it unmounts the mount that overmounts it. mnt_change_mountpoint() doesn't. It moves the mount to its new parent and leaves the old one pointing at it. For a mount that is moved beneath in attach_recursive_mnt() that doesn't matter. The new mount has already reset ->overmount of the old parent by the time the old top mount is moved onto it. It matters for reparent() though. propagate_umount() moves a surviving overmount onto the first ancestor that isn't going to be unmounted. The mount it was taken from is unmounted immediately afterwards. If a file descriptor keeps that unmounted mount alive ->overmount points at the moved mount. That's a dangling pointer and UAF as the moved mount is unmounted and freed. do_lock_mount() follows ->overmount from the target path under mount_lock. With a file descriptor on such a mount as the target of a mount beneath topmost_overmount() walks into the freed mount and do_lock_mount() takes references on whatever it finds there. So reset ->overmount of the old parent in mnt_change_mountpoint() the same way __umount_mnt() does. A mount's ->overmount is then always a mount that is attached to it.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.18.57, 7.2.11, 7.3
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.16% — higher than 5% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-98995 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.16%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
How to fix this CVE
Update your Linux kernel to version 6.18.57 (stable), 7.2.11 (stable), or 7.3+ (mainline) to resolve a use-after-free vulnerability in mount namespace handling. This flaw can allow local attackers with file descriptor access to trigger kernel memory corruption. Apply the patched kernel through your distribution's package manager rather than jumping to a newer kernel branch.
sudo dnf check-update kernel && sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with 'uname -r' and compare against fixed versions (6.18.57, 7.2.11, 7.3+)
- Step 2: Verify mount namespace features are in use by running 'cat /proc/mounts | wc -l' to confirm active mounts, then check dmesg for mount-related errors with 'dmesg | grep -i mount'
- Step 3: Search system logs for UAF indicators with 'journalctl -p err --since=1day | grep -E "(UAF|use-after-free|freed mount|dangling pointer)"'
- Step 4: After patching, reboot with 'sudo reboot' and confirm new kernel version loads via 'uname -r', then verify mount operations work correctly with 'mount | head -5'
FAQ
What is CVE-2026-98995?
This is a use-after-free vulnerability in the Linux kernel's mount namespace handling that occurs when mount points are reparented or moved. An attacker with local access and an open file descriptor to a mount point can trigger kernel memory corruption by exploiting improper cleanup of the ->overmount pointer.
Is CVE-2026-98995 being actively exploited?
No, this vulnerability is not listed on CISA's KEV catalog and no public exploits have been released. However, the local attack surface and severity warrant prompt patching.
What versions of Kernel are affected by CVE-2026-98995?
All kernel versions prior to 6.18.57 (6.18 branch), 7.2.11 (7.2 branch), and 7.3 (mainline) are vulnerable. Most distributions currently ship versions below these thresholds.
How do I check if my server is vulnerable to CVE-2026-98995?
Run 'uname -r' to display your kernel version, then compare the version number against the fixed releases (6.18.57, 7.2.11, 7.3). If your version is older than the corresponding fixed release in your branch, you are vulnerable.
Does Defensia detect CVE-2026-98995?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-98995 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-98995. Free for 1 server.
Get started free