All reports
Medium

kernel: ovl: fix UAF in ovl_do_mkdir() debug print

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-98921

Probability of exploitation in the next 30 days: 0.16%

FIRST EPSS · 2026-11-22

Description

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 dentry with %pd after vfs_mkdir(). Since commit fe497f0759e0 ("VFS: change vfs_mkdir() to unlock on failure."), vfs_mkdir() calls end_creating() on the input dentry on failure and may replace it on success, so the post-call %pd can use-after-free the dentry when CONFIG_OVERLAY_FS_DEBUG is enabled. Print the dentry before the call and only the result afterward.

A flaw was found in the Linux kernel's OverlayFS subsystem. When debug logging is enabled, a directory creation operation can trigger a use-after-free condition by referencing a directory entry that has already been released by the virtual file system. A local user could exploit this flaw to crash the system, resulting in a Denial of Service (DoS), or potentially corrupt kernel memory.