In the Linux kernel, the following vulnerability has been resolved: namespace: remove the fsnotify marks of a mount namespace in process context… (CVE-2026-98986)
Description
A vulnerability in the Linux kernel related to the removal of fsnotify marks from a mount namespace in process context has been resolved. The issue involved improper removal of fanotify marks in an invalid context, causing kernel locking bugs and potential system instability. The flaw allowed a root user in a user namespace to leave marks on a mount namespace that could trigger a BUG due to sleeping functions called from invalid contexts during namespace release. The fix ensures marks are removed in process context before the namespace is handed to RCU, preventing the invalid context issue.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability (CVE-2026-98986) in the Linux kernel concerns the removal of fsnotify marks from mount namespaces. The function mnt_ns_release() drops the last passive reference of a mount namespace and removes its fanotify marks via fsnotify_mntns_delete(), which takes mutexes and spinlocks safely in process context. However, mnt_ns_tree_remove() passes the namespace reference to call_rcu(), causing marks to be removed in RCU softirq context, which is invalid and leads to kernel BUGs due to sleeping functions called from an invalid context. This occurs when a fanotify group with a FAN_MARK_MNTNS mark exists on the mount namespace of another task, and a root user in a user namespace can exploit this by marking a mount namespace it owns. The fix removes the marks earlier in free_mnt_ns(), which runs in process context, ensuring safe removal and preventing the bug.
Potential Impact
The vulnerability causes kernel BUGs due to improper locking and context usage during mount namespace release, potentially leading to system instability or crashes. It requires root privileges in a user namespace to exploit and involves manipulation of fanotify marks on mount namespaces. There is no indication of remote exploitation or privilege escalation beyond the root user in a user namespace context.
Mitigation Recommendations
A fix has been implemented that removes the fsnotify marks in free_mnt_ns() before the namespace is handed to RCU, ensuring the removal occurs in process context and preventing the invalid context bug. Users should update to the fixed Linux kernel version once available. Patch status is not explicitly stated in the input; therefore, check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-6338-gv67-39m8
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98986"]
Threat ID: 6adbaacfd73cc49347b20577
Added to database: 10/23/2026, 18:43:27 UTC
Last enriched: 10/23/2026, 18:58:07 UTC
Last updated: 10/23/2026, 22:25:16 UTC
Views: 2
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.