CVE-2026-98921

Source
https://cve.org/CVERecord?id=CVE-2026-98921
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98921.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98921
Downstream
Published
2026-10-23T12:02:38Z
Modified
2026-10-28T02:30:31Z
Summary
ovl: fix UAF in ovl_do_mkdir() debug print
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98921.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
fe497f0759e0efb949f9480911d00b6045c21f50
Fixed
719bd33ab359c539a68a278c15a97deb77565cdb
Fixed
ae146bc1abdeb4607abf2975b858c053024e8ac1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98921.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98921.json"