# CVE-2026-142810: ovl: check the casefold flag of directories only

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:17:42.224Z
- **Modified:** 2026-12-03T04:18:15.267Z

## Who should check

- Anyone running Linux \>= 16754d61dc69cb4550225a967a2639809226de42, \< 6a49ab7c9a68ad9ace8c7fb6fdd7126f4f3411c8; \>= 16754d61dc69cb4550225a967a2639809226de42, \< d3cd02c8c6917f36f635d82575a9b206531bbfea; \>= 16754d61dc69cb4550225a967a2639809226de42, \< 1d27da7de3f74405b1de85ad26c5ea90f826114b
- Anyone running Linux 6.18

## 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.

## Affected and fixed versions

- Linux: \>= 16754d61dc69cb4550225a967a2639809226de42, \< 6a49ab7c9a68ad9ace8c7fb6fdd7126f4f3411c8; \>= 16754d61dc69cb4550225a967a2639809226de42, \< d3cd02c8c6917f36f635d82575a9b206531bbfea; \>= 16754d61dc69cb4550225a967a2639809226de42, \< 1d27da7de3f74405b1de85ad26c5ea90f826114b (cvelist)
- Linux: 6.18 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 1d27da7de3f74405b1de85ad26c5ea90f826114b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142810. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142810.md
Affected: Linux >= 16754d61dc69cb4550225a967a2639809226de42, < 6a49ab7c9a68ad9ace8c7fb6fdd7126f4f3411c8; >= 16754d61dc69cb4550225a967a2639809226de42, < d3cd02c8c6917f36f635d82575a9b206531bbfea; >= 16754d61dc69cb4550225a967a2639809226de42, < 1d27da7de3f74405b1de85ad26c5ea90f826114b; Linux 6.18
Fixed in: Linux 6a49ab7c9a68ad9ace8c7fb6fdd7126f4f3411c8, Linux 1d27da7de3f74405b1de85ad26c5ea90f826114b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142810 being exploited?

There is no confirmed exploitation: CVE-2026-142810 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142810?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142810?

Linux \>= 16754d61dc69cb4550225a967a2639809226de42, \< 6a49ab7c9a68ad9ace8c7fb6fdd7126f4f3411c8; \>= 16754d61dc69cb4550225a967a2639809226de42, \< d3cd02c8c6917f36f635d82575a9b206531bbfea; \>= 16754d61dc69cb4550225a967a2639809226de42, \< 1d27da7de3f74405b1de85ad26c5ea90f826114b; Linux 6.18.

### Is there a fix for CVE-2026-142810?

Yes. Fixed in Linux 6a49ab7c9a68ad9ace8c7fb6fdd7126f4f3411c8, Linux 1d27da7de3f74405b1de85ad26c5ea90f826114b. Upgrade Linux to 1d27da7de3f74405b1de85ad26c5ea90f826114b or later.

### How do I check if I'm affected by CVE-2026-142810?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/6a49ab7c9a68ad9ace8c7fb6fdd7126f4f3411c8>
- other: <https://git.kernel.org/stable/c/d3cd02c8c6917f36f635d82575a9b206531bbfea>
- other: <https://git.kernel.org/stable/c/1d27da7de3f74405b1de85ad26c5ea90f826114b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142810>

HTML: <https://flawdb.com/CVE-2026-142810> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142810>
