In the Linux kernel, the following vulnerability has been resolved: ovl: fix UAF in ovl_do_mkdir() debug print ovl_do_mkdir() prints the input… (CVE-2026-98921)
Description
A use-after-free (UAF) vulnerability in the Linux kernel's overlay filesystem (ovl) was fixed in the ovl_do_mkdir() function. The issue occurs because ovl_do_mkdir() prints the input dentry after calling vfs_mkdir(), which may free or replace the dentry, leading to a UAF when CONFIG_OVERLAY_FS_DEBUG is enabled. The fix involves printing the dentry before the call and only printing the result afterward.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel overlay filesystem (ovl) involves a use-after-free condition in the ovl_do_mkdir() function's debug printing. Specifically, after the vfs_mkdir() call, which may free or replace the input dentry, ovl_do_mkdir() prints the dentry using %pd, potentially accessing freed memory when CONFIG_OVERLAY_FS_DEBUG is enabled. This issue was introduced after commit fe497f0759e0, which changed vfs_mkdir() to unlock on failure and call end_creating() on the input dentry. The patch corrects this by printing the dentry before the vfs_mkdir() call and only printing the result afterward, preventing use-after-free.
Potential Impact
The vulnerability can cause a use-after-free condition in kernel debug code related to overlay filesystem directory creation. This may lead to kernel instability or crashes when overlay filesystem debugging is enabled. There is no indication of active exploitation or broader impact beyond debug scenarios.
Mitigation Recommendations
A fix has been implemented to prevent the use-after-free by adjusting the debug print order in ovl_do_mkdir(). Users should apply the official kernel patch that corrects this behavior. Since this affects debug code enabled by CONFIG_OVERLAY_FS_DEBUG, disabling this debug option can mitigate exposure until the patch is applied.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-5m82-wc7w-682w
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98921"]
Threat ID: 6adbaad1d73cc49347b205b2
Added to database: 10/23/2026, 18:43:29 UTC
Last enriched: 10/23/2026, 19:02:01 UTC
Last updated: 10/23/2026, 21:05:21 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.