CVE-2026-99423: ovl: take a snapshot of the name for copy up
In the Linux kernel, the following vulnerability has been resolved:
ovl: take a snapshot of the name for copy up
The copy up of a directory reads a freed dentry name when a lookup moves the directory at the same time.
A pointer to the name of a dentry is only valid while something stops a move of the dentry. ovldocopyup() keeps a plain copy of c->dentry->dname in c->destname, and ovlcopyupstart() only keeps ovlrename() away. When a lookup finds the same directory under another name after a change to the lower layer, dsplicealias() moves the dentry and frees its external name.
With a delay in ovldocopyup(), a chmod of a lower-only directory with a 60 byte name raced with a rename of that directory in the lower layer and a stat of the new name, and KASAN reported a use-after-free in lookupnopermcommon().
Fix this by using takedentrynamesnapshot() for c->destname.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2