# CVE-2026-99641: ovl: fail the mount if the casefold flag has changed

- Priority: **Insufficient evidence**
- Reason: No CVSS vector published; no exploitation reported by the 5 checked sources
- Next step: Check the vendor advisory
- Status: published
- Published: 2026-11-20 · Modified: 2026-11-20
- Aliases: DEBIAN-CVE-2026-99641, UBUNTU-CVE-2026-99641, CGA-29q2-93j2-c466, CGA-6398-6374-rjwj, CGA-7g72-gp3f-vg93, CGA-gmmm-74c9-jwmv, CGA-jm54-xrxc-59m8, CGA-jv8x-cmv2-xf8c, CGA-p669-pp36-c745, CGA-pq8v-hh52-qj24, CGA-v2w5-2x59-9cmx, CGA-xh4c-46w4-mjvg, CGA-52cq-3vwj-84qp, CGA-9c5h-xpww-p8mx, CGA-f45j-gf6m-gcc7, CGA-f8qj-f78c-j8m6, CGA-mfg8-3m74-jvwh, CGA-mq98-jh2h-f555, CGA-p4h6-p5vj-22g5, CGA-jxw8-hx8x-c722, CGA-m5x6-8j5x-f68p
- Record: https://cvemate.com/vulnerability/CVE-2026-99641 · JSON: https://cvemate.com/vulnerability/CVE-2026-99641/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

ovl: fail the mount if the casefold flag has changed

An unprivileged user in a user namespace can repeatedly trigger a kernel
warning with their own overlay mounts. They do so by changing the
casefold flag of the topmost layer's empty root, the top directory of
that layer, after the layers are set and before the mount is created.

The casefold flag of a directory makes name lookups in that directory
case-insensitive. All layers of an overlay must agree on casefolding.

ovl_mount_dir_check() reads the casefold flag of a layer root when
fsconfig() sets that layer, and saves the result in ofs->casefold. The
mount is created later, by another fsconfig() call with
FSCONFIG_CMD_CREATE.

The casefold flag of an empty directory can be changed.

The casefold flag of the overlay root must match ofs->casefold.
ovl_get_root() copies the flag from the topmost layer root, as it is
when the mount is created. On a mismatch, ovl_get_root() only does a
WARN_ON(), and the mount continues. The check is not a WARN_ON_ONCE(),
so each such mount warns again.

An unprivileged user needs CONFIG_UNICODE, and a tmpfs mounted with the
casefold option in their namespace.

Reproduced by changing the casefold flag of the empty upper directory
after the layers were set and before FSCONFIG_CMD_CREATE, with tmpfs and
ext4 layers, and as uid 1000 in a user namespace.

Fix this by replacing the WARN_ON() with a check that fails the mount
with -EINVAL.
```

## Signals

- CVSS: none published
- EPSS: 0.199%, percentile 10.132%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 133)

- chainguard linux-desktop-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-modules (Chainguard): All versions (No fix recorded)
- debian linux (Debian): All versions (No fix recorded) \| \< 7.3.5-1
- ubuntu linux (Ubuntu): All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/f182e7bc11c401d09f890ee1a3ec359670e1e308>
- <https://git.kernel.org/stable/c/549fb7c77951ad9ddfed05ce1776f497538ad13e>
- <https://git.kernel.org/stable/c/c782fc8ada811569811c0fdea5c3412511be95d0>
- <https://security-tracker.debian.org/tracker/CVE-2026-99641>
- <https://ubuntu.com/security/CVE-2026-99641>
- <https://www.cve.org/CVERecord?id=CVE-2026-99641>
- <https://git.kernel.org/linus/c782fc8ada811569811c0fdea5c3412511be95d0>

---

Data as of 2026-12-05T14:03:48.460Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
