CVE-2026-99419: Linux kernel overlayfs copies a deleted file up over whatever now holds its name, so an unprivileged user can replace a file root just created

ByLinuxtastic

December 1, 2026 #CVE, #Linux Kernel

Overlayfs serves a read-only lower layer through a writable upper one, and the first write to a lower file copies it up into the upper directory. The kernel CNA record describes what happens when the file was removed in between: “After an unlink, an rmdir or a rename over a lower dentry, a dentry that an open file keeps alive still has its old parent and name, but in the upper directory that name is now a whiteout or a new object. ovl_copy_up_workdir() renames the copy over it, which brings back the removed object and destroys whatever took its name.” The record’s own demonstration: “An unprivileged user opened a lower FIFO and unlinked it, root created a file at that name, and fchmod on the old descriptor replaced the file of root with the FIFO.” Red Hat and SUSE rate it Important at 7.8, Ubuntu Medium. If a host uses overlayfs where unprivileged users can open lower-layer files, which includes every container host on the overlay2 storage driver, upgrade it to a kernel at or above 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 or 7.3.2 and reboot.

CVE-2026-99419 at a glance.

ComponentLinux kernel, overlayfs: ovl_copy_up_workdir() in fs/overlayfs/copy_up.c, the copy-up path that is taken when a mount has a work directory (the default; the O_TMPFILE path already refused a taken name)
Affected versionsmainline 3.18 up to 7.4-rc1 (from commit e9be9d5e, “overlay filesystem”, the merge that introduced overlayfs); 5.10.x below 5.10.275, 5.15.x below 5.15.226, 6.1.x below 6.1.193, 6.6.x below 6.6.163, 6.12.x below 6.12.117, 6.18.x below 6.18.61, 7.3.x below 7.3.2. Kernels before 3.18 have no overlayfs
Fixed inmainline 7.4-rc1 (commit f635192a, the one Debian and Ubuntu cite) and stable 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2; eight fix commits in the record. The fix looks up the rename target with LOOKUP_EXCL, so copy-up fails with -EEXIST when the name is taken; three lines changed in one file
SeverityRed Hat Important, CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), CWE-73 (external control of a file name), score marked draft; SUSE Important, 7.8 and 8.5 under CVSS 4.0; Ubuntu Medium, CVSS 4.0 5.8 (AT:P, a race the attacker has to win); the kernel CNA gives no score and NVD is Received with no score, CWE or CPE
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00222 (14th percentile) on 1 December 2026
Who is exposedHosts with an overlay mount on which an unprivileged user can open a lower-layer file and a privileged process later creates a file with the same name: container hosts (the overlay2 and native overlay storage drivers of Docker, Podman and containerd put every container root filesystem on one), live and image-based systems with an overlay over the root, and any host where overlayfs serves a shared tree. The attacker is local (AV:L) and needs no capability; Red Hat’s statement is that “a local unprivileged user can overwrite or replace files created by privileged users” on an overlay mount. Inside a container the lower layer is the image, so a process in the container can replace a file the container’s root creates at a name the image once had
PublishedCVE record 19 November 2026 (kernel CNA, updated 23 November with the stable backports); this page built 1 December 2026, last updated 1 December 2026

What it is

Copy-up is the operation that gives overlayfs its writable upper layer: on the first modifying access to a file that exists only in the lower layer, the file is copied into the work directory and renamed into place in the upper directory under its own name. The name is the problem. A process that holds a lower file open keeps its dentry alive, and that dentry remembers the parent and name it had when it was opened, not what has happened to that name since. If the file was unlinked, the upper directory has a whiteout there; if something else was created at that name afterwards, the upper directory has that. Copy-up did not look: ovl_copy_up_workdir() renamed the fresh copy over whatever was there, which, as the record says, “brings back the removed object and destroys whatever took its name”.

The record’s reproduction is three steps and needs no privilege beyond opening a lower file: open a FIFO that lives in the lower layer, unlink it, wait for root to create a regular file at that path, then fchmod() the old descriptor. The chmod is a modifying operation on a lower inode, so it copies up; the copy-up renames the FIFO over root’s file. Any later open of that path by root gets the FIFO, and the attacker, who still holds it, can feed it whatever root expects to read. Red Hat’s CWE-73 and the three high impacts follow from that; Ubuntu’s 5.8 reflects that the attacker has to be first to the name and that root has to use it afterwards.

The fix on GitHub, by Chris Mason with Josef Bacik and committed by Amir Goldstein, changes three lines in ovl_copy_up_workdir(): the rename target is now looked up with LOOKUP_EXCL, with the comment “The name may have been taken since lookup, never replace it”, and an -EEXIST from that lookup is passed up instead of being turned into -EIO, so the fchmod() in the example fails and root’s file is untouched. The record notes this matches what the O_TMPFILE copy-up path already did when linking the copy to its name. The Fixes: tag is the 2014 merge that introduced overlayfs. git.kernel.org and lore.kernel.org refused our reader, so the backports are described from the record and the mainline commit from its GitHub mirror.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. Overlayfs has been in every kernel since 3.18, so every supported kernel is in range; on 1 December Debian trixie and bookworm’s 6.12 backport and openSUSE Tumbleweed had the fix, and the enterprise kernels were pending.

DistributionStatusFixed package
AlpineNot consulted for this page—
DebianFixed in trixie (6.12.117-1), trixie-security (6.12.118-1), forky and sid (7.3.6-1) and in bookworm’s linux-6.12 backport (6.12.118-1~deb12u1, DLA-4927-1); bookworm’s own 6.1 kernel (6.1.192-3) vulnerable; no DSAtrixie 6.12.117-1; unstable 7.3.3-1; bookworm linux-6.12 6.12.117-1~deb12u1; nothing for bookworm’s 6.1 on 1 December 2026
UbuntuMedium, CVSS 4.0 5.8; linux needed in 24.04 LTS, 22.04 LTS, 20.04 LTS, 18.04 LTS and 16.04, pending in 26.10 (7.3.0-12.13) and 26.04 LTS (7.0.0-45.45); 14.04 not affected; every cloud, realtime, raspi, nvidia and FIPS kernel vulnerable; no USNnothing released on 1 December 2026
RHEL, Rocky, Alma, CentOS StreamImportant, 7.8, CWE-73 (bug 2576937, “Unauthorized file replacement in OverlayFS via copy-up of removed files”); RHEL 7, 8, 9 and 10 affected, RHEL 6 not affected; OpenShift CoreOS images affected; no errata on 1 Decembernot yet
openSUSE/SLEImportant, 7.8 (8.5 under 4.0), state Pending, bugs 1291331 and 1291333; released for openSUSE Tumbleweed; affected on every other listed product from SLES 12 SP5 to 16.1, Micro, Leap 16.x and the LTSS lines; SLES 11 SP4 not affectedTumbleweed 7.3.6-2.1; nothing for SLE on 1 December 2026
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply5.10.275 / 5.15.226 / 6.1.193 / 6.6.163 / 6.12.117 / 6.18.61 / 7.3.2 or later

How to check

Three questions, in order: which kernel is running, is overlayfs in use at all, and can an unprivileged user open files on a lower layer that a privileged process also writes to. The second is nearly always yes on a container host; the third is what decides whether the race is reachable.

# 1. the running kernel (compare with the fixed stable version for its series)
uname -r

# 2. is overlayfs mounted, and by whom
grep -E '^overlay ' /proc/mounts | awk '{print $2}'
lsmod | grep -E '^overlay'
docker info 2>/dev/null | grep -E 'Storage Driver'
podman info 2>/dev/null | grep -E 'graphDriverName'
# the work directory is the path this bug lives in (O_TMPFILE copy-up already refused a taken name)
grep -E '^overlay ' /proc/mounts | grep -oE 'workdir=[^,]+'

# 3. the precondition: lower-layer files an unprivileged user can open on a mount a privileged process writes to
grep -E '^overlay ' /proc/mounts | grep -oE 'lowerdir=[^,]+'
for d in $(grep -E '^overlay ' /proc/mounts | awk '{print $2}'); do echo "$d: $(stat -c '%U %a' "$d")"; done

A kernel at or above the fixed stable version for its series is done. A host with no overlay mount and the module never loaded is not in the path. A container host is in it by construction: each container’s root is an overlay whose lower layers are the image, every process in the container can open image files, and the container’s own root creates files at image paths all the time, so the race is between two processes in the same container, which is an escalation from an unprivileged process to the container’s root. On a host whose overlay serves a shared tree to several users, the race is between those users and whatever privileged service writes there. There is no log line for a successful replacement; the fixed kernel’s symptom is the opposite, an EEXIST from a chmod or write on a file that has been deleted and recreated, which is the new, correct behaviour.

How to fix it

Install the fixed kernel and reboot; overlayfs is in the running kernel and every container on the host runs on it, so a container restart does nothing. Debian trixie, bookworm’s 6.12 backport and Tumbleweed had the fix out on 1 December; Ubuntu, Red Hat and SUSE’s enterprise kernels were pending.

# Debian trixie / forky / sid, and bookworm on the linux-6.12 backport
apt update && apt install linux-image-amd64 && systemctl reboot       # or linux-image-arm64
# Ubuntu, RHEL family, SUSE: when the pending builds land
apt update && apt full-upgrade && systemctl reboot
dnf upgrade kernel && systemctl reboot
zypper patch && systemctl reboot
uname -r

There is no mount option that closes this; the fix is in the copy-up code and nothing in mount -o changes which name it renames over. What not to do: do not switch container storage to a non-overlay driver to avoid it, which costs more than a reboot and leaves the host’s other overlays in place; and do not read the local vector as a reason to wait on a container host, where “local” means any process in any container, including the ones that run untrusted images. Until the reboot, the ordinary control applies: a privileged process inside a container should not create and then trust files at paths an unprivileged process in the same container can reach, which is a rule worth keeping after the fix as well.

Sources

  • CVE-2026-99419 at CVE.org — the kernel CNA record (19 November 2026, updated 23 November): the commit message with the “brings back the removed object” sentence and the FIFO demonstration, the git and version ranges, fs/overlayfs/copy_up.c
  • Fix commits on git.kernel.org: f635192a (mainline, 7.4-rc1) and the backports 50916610, 7795a423, a13c8b1c, 1f1e5300, 383a883c, 1d9706fb, 0defa3e4; git.kernel.org refuses automated readers, so the mainline commit was read on GitHub: Chris Mason and Josef Bacik, committed by Amir Goldstein, the Fixes: e9be9d5e tag, LOOKUP_EXCL and the -EEXIST pass-through
  • NVD entry — Received on 19 November 2026; no NVD score, CWE or CPE on 1 December
  • Distribution trackers: Debian (trixie 6.12.117-1 fixed, DLA-4927-1 for bookworm’s 6.12, bookworm 6.1 vulnerable) · Ubuntu (Medium, 5.8; needed in every LTS, 26.x pending) · Red Hat (Important 7.8, CWE-73, RHEL 7–10 affected, no errata; bug 2576937) · SUSE (Important 7.8 and 8.5, Tumbleweed 7.3.6-2.1; bugs 1291331, 1291333)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00222 (percentile 0.137) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.