AZL-114842: CVE-2026-99423 affecting package kernel 6.6.161.1-1
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.
- Compensating control
In overlayfs copy-up, use take_dentry_name_snapshot() for c->destname to avoid reading a freed dentry name.