# CVE-2026-99639: ovl: fix whiteout creation in casefolded directories

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.16% (percentile 5, 2026-12-03)
- **Published:** 2026-11-20T05:49:55.329Z
- **Modified:** 2026-11-20T06:17:57.257Z

## Who should check

- Anyone running Linux \>= 833d2b3a072f7ff6005bf84c065c7cbda81a8aaa, \< 48bd1823237fb076db6e109e35c59b1bc08f550a; \>= 833d2b3a072f7ff6005bf84c065c7cbda81a8aaa, \< e803c82dcdd15e87b48fca1ea8d2cfe6a7ed83d4
- Anyone running Linux 6.19

## Description

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

ovl: fix whiteout creation in casefolded directories

unlink and rmdir fail with EINVAL on an overlay with casefolded
(case-insensitive) layers, if the name exists in a lower layer.
Casefolded layers need CONFIG\_UNICODE. Root can mount such an overlay,
and so can an unprivileged user in a user namespace, with tmpfs layers.

Overlayfs does not change a lower layer. To remove a name that exists
there, it hides the name with a marker file, a whiteout. It creates the
whiteout in the work directory, a scratch directory on the upper
filesystem, and renames it over the name in the upper directory:

- ovl\_whiteout() creates the whiteout with mknod, or as a hard link to
  an earlier whiteout.
- ovl\_cleanup\_and\_whiteout() then prepares the rename with
  start\_renaming\_two\_dentries(), which returns -EINVAL if the source or
  the target dentry is unhashed, that is, not in the dentry hash table.

With casefolded directories, both dentries can be unhashed:

- The target. Lookup in a casefolded directory leaves a negative dentry
  unhashed, so the rename target is unhashed if the name does not exist
  in the upper directory.
- The source, which is the new whiteout. tmpfs hashes a dentry when
  mknod or link makes it positive, but ext4 does not, so on ext4 the
  source is unhashed as well.

The cleanup after the failure also refuses an unhashed dentry, so on
ext4 the whiteout is left behind in the work directory.

Reproduced with rm and rmdir on casefolded tmpfs and ext4 layers, also
as uid 1000 in a user namespace.

Fix this by creating the whiteout with ovl\_create\_temp(), which repeats
the lookup if the new dentry is unhashed. Prepare the rename with
start\_renaming\_dentry(), which looks up the target name with the
directories locked. The caller looked the name up without a lock, so
return -ESTALE if the name now refers to a different inode.

\[amir: pass the name used for lookup instead of taking a name snapshot\]

## Affected and fixed versions

- Linux: \>= 833d2b3a072f7ff6005bf84c065c7cbda81a8aaa, \< 48bd1823237fb076db6e109e35c59b1bc08f550a; \>= 833d2b3a072f7ff6005bf84c065c7cbda81a8aaa, \< e803c82dcdd15e87b48fca1ea8d2cfe6a7ed83d4 (cvelist)
- Linux: 6.19 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-99639.md
Affected: Linux >= 833d2b3a072f7ff6005bf84c065c7cbda81a8aaa, < 48bd1823237fb076db6e109e35c59b1bc08f550a; >= 833d2b3a072f7ff6005bf84c065c7cbda81a8aaa, < e803c82dcdd15e87b48fca1ea8d2cfe6a7ed83d4; Linux 6.19
Fixed in: Linux 48bd1823237fb076db6e109e35c59b1bc08f550a

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-99639 being exploited?

There is no confirmed exploitation: CVE-2026-99639 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-12-03).

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

It has no CVSS score yet. Unknown.

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

Linux \>= 833d2b3a072f7ff6005bf84c065c7cbda81a8aaa, \< 48bd1823237fb076db6e109e35c59b1bc08f550a; \>= 833d2b3a072f7ff6005bf84c065c7cbda81a8aaa, \< e803c82dcdd15e87b48fca1ea8d2cfe6a7ed83d4; Linux 6.19.

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

Yes. Fixed in Linux 48bd1823237fb076db6e109e35c59b1bc08f550a. No fix listed yet: follow the vendor advisory.

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

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/48bd1823237fb076db6e109e35c59b1bc08f550a>
- other: <https://git.kernel.org/stable/c/e803c82dcdd15e87b48fca1ea8d2cfe6a7ed83d4>

## 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-99639>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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