PT-2026-151635
CVE-2026-99424
·
Published
2026-11-19
·
Updated
2026-11-19
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
In the Linux kernel, the following vulnerability has been resolved:
ovl: set OVL WHITEOUTS before publishing the upper dir
Listing a directory while it is copied up causes a use-after-free of
the readdir cache.
A merge directory must never be iterated as a real upper directory:
that mode frees the cache in OVL I(inode)->cache without looking at
its refcount, while files opened in merged mode still use it.
ovl copy up workdir() publishes the upper dentry before it sets
OVL WHITEOUTS, and ovl dir open() samples both without a lock, so an
open between the two stores finds the upper directory and takes it
for a real one.
With a delay between the two stores, an unprivileged process that
listed a directory during its copy-up saw only "." and "..", and its
next getdents freed the readdir cache of another descriptor.
Fix this by setting OVL WHITEOUTS before ovl inode update(), so that
ovl dir reset() agrees with ovl dir open(), and by testing
OVL TYPE MERGE() of the path type in ovl dir open(), so that an open
that observes the upper dentry never iterates a merge dir as a real
dir, regardless of the order in which it observes the flag.
[amir: test OVL TYPE MERGE() instead of smp rmb() in ovl dir open()]
Found an issue in the description? Have something to add? Feel free to write us 👾