CVE-2026-142810
Received Received - Intake

Overlayfs Directory Casefold Flag Validation Flaw

Vulnerability report for CVE-2026-142810, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-03

Last updated on: 2026-12-03

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-03
Last Modified
2026-12-03
Generated
2026-12-03
AI Q&A
2026-12-03
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects the Linux kernel's overlay filesystem (overlayfs) when used with casefolded (case-insensitive) directories. It causes lookups of non-directory files to fail with an error (EREMOTE), and the first file creation triggers a kernel warning. The issue arises because overlayfs incorrectly checks the casefold flag for all file types, not just directories.

Detection Guidance

This vulnerability affects overlayfs in the Linux kernel when used with casefolded directories. To detect it, check if your system uses overlayfs with casefolded directories by running: mount | grep overlay. If casefolded directories are mounted, verify if the S_CASEFOLD flag is set on directories with lsattr -d /path/to/directory. Look for failed lookups with EREMOTE errors in system logs.

Impact Analysis

An unprivileged user in a user namespace can exploit this to cause errors when accessing files on an overlay filesystem with casefolded directories. This may lead to failed operations like file access or creation, and kernel warnings that could affect system stability or performance.

Mitigation Strategies

Apply the kernel patch that limits casefold checks to directories only. Avoid using casefolded directories in overlayfs mounts. If casefolding is required, ensure all directories in the overlay have the S_CASEFOLD flag set consistently. Monitor logs for EREMOTE errors indicating failed lookups.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-142810. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...