Skip to main content

In the Linux kernel, the following vulnerability has been resolved: namespace: unhash a dentry before detaching the mounts on it unlink(), rmdir()… (CVE-2026-98981)

0
Medium
Published: 10/23/2026 (10/23/2026, 15:31:33 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel namespace handling was resolved involving the order of unhashing a dentry before detaching mounts on it. The issue allowed a race condition during unlink(), rmdir(), and rename() operations where the dentry remained hashed and visible between detach_mounts() and d_delete(), potentially exposing mount points that should have been hidden. This race window could be exploited by concurrent lookups to observe mounts that were supposed to be detached. The fix changes the order to unhash the dentry before detaching mounts, preventing lookups from seeing stale mount information.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/23/2026, 18:57:49 UTC

Technical Analysis

The Linux kernel vulnerability (CVE-2026-98981) concerns the namespace subsystem where during unlink(), rmdir(), and rename() operations, the dentry was not unhashed before detaching mounts. This left the dentry still hashed and visible in the dcache, allowing concurrent lookups to find the dentry and uncover mounts that should have been hidden. The race window includes the namespace_unlock() and inode_unlock() periods, which are significant. The fix involves calling d_drop() to unhash the dentry before proceeding with detach_mounts() and d_delete(), ensuring the dentry cannot be found during the race window. This corrects the ordering problem and closes the race condition.

Potential Impact

This vulnerability could allow concurrent processes performing lookups to observe mount points that should have been detached, potentially leaking information about mount namespaces and filesystem structure during unlink, rmdir, or rename operations. While no direct code execution or privilege escalation is described, the exposure of mount information could aid attackers in understanding or interfering with namespace isolation.

Mitigation Recommendations

A fix has been implemented in the Linux kernel to unhash the dentry before detaching mounts, closing the race condition. Users should update to the Linux kernel version that includes this patch once available. No vendor advisory or patch version is provided in the data; therefore, check the official Linux kernel mailing lists or vendor advisories for the specific fixed version and apply updates accordingly.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-9hg7-cp6v-469m
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98981"]

Threat ID: 6adbaacfd73cc49347b20572

Added to database: 10/23/2026, 18:43:27 UTC

Last enriched: 10/23/2026, 18:57:49 UTC

Last updated: 10/23/2026, 22:45:05 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses