PT-2026-166533

CVE-2026-142810

·

Published

2026-12-03

·

Updated

2026-12-03

Description by

Score
N/A
Not available

No 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: check the casefold flag of directories only
On an overlay over casefolded (case-insensitive) directories, every lookup of a file that is not a directory fails with EREMOTE, and the first file create triggers a kernel warning. No privilege is needed: an unprivileged user can cause both in a user namespace, with the layers on a tmpfs that they have mounted with the casefold option.
Some filesystems support casefolding, which is case-insensitive name lookup. It is enabled per directory, and the inode of a casefolded directory has the S CASEFOLD flag.
overlayfs accepts layers on a filesystem that supports casefolding as long as casefolding is enabled on every directory of the layers, or on none. The mount records which of the two applies in ofs->casefold. ovl lookup single() compares the S CASEFOLD flag of each file that it finds against ofs->casefold and returns -EREMOTE on a mismatch.
Filesystems only set S CASEFOLD on directories, so with casefolded layers a regular file, a symlink or a special file never matches and its lookup fails.
ovl get inode() does the same comparison in a WARN ON ONCE() for each new overlay inode. A failed lookup never gets that far, so it is the first file create that trips the warning.
Reproduced on an overlay over casefolded tmpfs or ext4 directories, with stat() of a regular file, a symlink and a FIFO, and with a file create: each stat() failed with EREMOTE. For an unprivileged user in a user namespace, on tmpfs, stat() of a regular file failed in the same way, and the file create triggered the warning.
Fix this by limiting both checks to directories.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾