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

Published Dec 3, 2026
·
Updated

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 SCASEFOLD 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. ovllookupsingle() compares the SCASEFOLD flag of each file that it finds against ofs->casefold and returns -EREMOTE on a mismatch.

Filesystems only set SCASEFOLD on directories, so with casefolded layers a regular file, a symlink or a special file never matches and its lookup fails.

ovlgetinode() does the same comparison in a WARNONONCE() 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 Software

3 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.18.0<6.18.61
6.18.61
linux/kernel>=6.19.0<7.3.2
7.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.61
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.2
  3. Compensating control

    In overlayfs, limit both casefold-flag checks to directories only.

Event History

Dec 3, 2026
CVE Published
via MITRE·03:17 AM
Data Sourced
via MITRE·03:17 AM
Description
Data Sourced
via OSV·03:17 AM
DescriptionAffected Software
Data Sourced
via NVD·04:18 AM
Description

Frequently Asked Questions

1

Which deployments are exposed to this issue?

The issue affects OverlayFS mounts whose layers use casefolded directories. Casefolding must be enabled consistently on every directory in the layers for OverlayFS to record the mount as casefolded.

2

Does exploitation require elevated privileges?

No. An unprivileged user can trigger the behavior from a user namespace when the OverlayFS layers are on a tmpfs they mounted with the casefold option.

3

What symptoms indicate an affected mount?

Lookups of non-directory objects, including regular files, symlinks, and special files, fail with EREMOTE on a casefolded OverlayFS mount. The first file creation can also trigger a kernel warning.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203