CVE-2026-142810

Not scored yetLast modified Dec 3, 2026

Description

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 16754d61dc69cb4550225a967a2639809226de42, < 6a49ab7c9a68ad9ace8c7fb6fdd7126f4f3411c8; >= 16754d61dc69cb4550225a967a2639809226de42, < d3cd02c8c6917f36f635d82575a9b206531bbfea; >= 16754d61dc69cb4550225a967a2639809226de42, < 1d27da7de3f74405b1de85ad26c5ea90f826114b
LinuxLinux6.18

References

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142811In the Linux kernel, the following vulnerability has been resolved: media: rc: Fix ABBA deadlock by making locks more fine grained The ir_CVE-2026-142812In the Linux kernel, the following vulnerability has been resolved: media: rc: fintek-cir: process a full RX buffer instead of overflowing CVE-2026-142813In the Linux kernel, the following vulnerability has been resolved: ksmbd: use the existing xattr name for a named stream SMB stream namesCVE-2026-142814In the Linux kernel, the following vulnerability has been resolved: ksmbd: retry break notifications on another connection An oplock or leCVE-2026-142815In the Linux kernel, the following vulnerability has been resolved: ksmbd: track delivery of queued TCP writes A nonblocking break send muCVE-2026-142816In the Linux kernel, the following vulnerability has been resolved: HID: hid-lenovo-go-s: Use devm_kzalloc for drvdata Changes drvdata froCVE-2026-142817In the Linux kernel, the following vulnerability has been resolved: fork: move the coredump and exec checks into create_io_thread() Only aCVE-2026-142818In the Linux kernel, the following vulnerability has been resolved: ns: don't add init_ipc_ns and init_net without namespace support When CVE-2026-142819In the Linux kernel, the following vulnerability has been resolved: kgdb: Fix buffer overflow in the qRcmd packet handler gdb_cmd_query() CVE-2026-142829.8The GoDAM – Organize WordPress Media Library & File Manager with Unlimited Folders for Images, Videos & more plugin for WordPress is vulneraCVE-2026-142820In the Linux kernel, the following vulnerability has been resolved: kgdb: Fix buffer overflow in the 'm' packet handler gdb_cmd_memread() CVE-2026-142821In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: validate SRAT subtables before parsing The KFD SRAT walker
CVE-2026-142810: Unscored | Vulnix