In the Linux kernel, the following vulnerability has been resolved: namespace: check the mounts before reading their parents in pivot_root()… (CVE-2026-98985)
Description
A vulnerability in the Linux kernel's pivot_root() function involves improper checks of mount points before reading their parent mounts. The issue arises when new_root or the caller's root is a file descriptor to a mount that has been unmounted but still kept alive by the file descriptor, potentially leading to a use-after-free condition. The vulnerability causes a read operation on freed memory, resulting in a kernel bug detected by KASAN. The fix involves verifying that both mounts are in the caller's mount namespace before accessing their parents, preventing the unsafe read. All error paths return EINVAL, so no other side effects occur.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel affects the path_pivot_root() function, which reads the parents of new_root and the caller's root mounts and checks if they are shared before verifying namespace membership. The flaw is that new_root can reference an unmounted mount still alive due to a file descriptor, leading to a use-after-free when reading the parent mount without proper locking or namespace verification. This results in a kernel slab-use-after-free bug detected by KASAN. The resolution is to ensure both mounts are confirmed to be in the caller's mount namespace before reading their parents, with all paths returning EINVAL on failure, thus preventing unsafe memory access.
Potential Impact
The vulnerability can cause a kernel use-after-free condition leading to a kernel bug and potential system instability or crashes. However, the error handling returns EINVAL, so no unauthorized access or privilege escalation is indicated by the provided data. There is no evidence of exploitation in the wild.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to check that both mounts are in the caller's namespace before reading their parents in pivot_root(). Users should apply the official kernel update that includes this fix once available. Patch status is not explicitly stated in the provided data; therefore, check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-gfp5-4w3q-vwjx
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98985"]
Threat ID: 6adbaacfd73cc49347b20570
Added to database: 10/23/2026, 18:43:27 UTC
Last enriched: 10/23/2026, 18:57:41 UTC
Last updated: 10/23/2026, 22:45:08 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.