CVE-2026-99424: Linux kernel OverlayFS frees a directory cache still in use when a listing races a copy-up

ByLinuxtastic

November 30, 2026 #CVE, #Linux Kernel

OverlayFS is the filesystem under every Docker and Podman container and a good many immutable-image systems, and “copy-up” is what it does the first time a file or directory from the read-only lower layer is modified: it copies it into the writable upper layer. Since kernel 4.15 the overlay code published the new upper directory a moment before it marked it as a merged directory that still has whiteouts to hide, and a directory listing that opened the directory in that moment took it for a plain upper directory, a mode that “frees the cache in OVL_I(inode)->cache without looking at its refcount, while files opened in merged mode still use it”. The record’s own test shows an unprivileged process doing exactly that: it listed a directory during its copy-up, saw only . and .., “and its next getdents freed the readdir cache of another descriptor”. Upgrade 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; there is no mitigation short of not giving untrusted users a writable overlay, which on a container host means not running untrusted containers.

CVE-2026-99424 at a glance.

ComponentLinux kernel, OverlayFS copy-up and directory reading: fs/overlayfs/copy_up.c (ovl_copy_up_workdir()) and fs/overlayfs/readdir.c (ovl_dir_open(), ovl_dir_reset()); built into every distribution kernel as overlay, loaded by every container runtime
Affected versionsmainline 4.15 up to 7.4-rc1 (from commit b79e05aa); 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 4.15 are not affected
Fixed inmainline 7.4-rc1 (commit cbec8610) and stable 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2; the fix sets OVL_WHITEOUTS before ovl_inode_update() publishes the upper dentry, and makes ovl_dir_open() test OVL_TYPE_MERGE() of the path type so that a merge directory is never iterated as a real one whatever order the flags are observed in
Severitykernel CNA CVSS 3.1 7.8 High (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H); NVD Received with no score of its own. Red Hat Important, 7.8, CWE-825; Ubuntu High, 7.8; SUSE important, 7.0 (AC:H) and CVSS 4.0 7.3
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 30 November 2026 (catalogue 2026.11.27). EPSS 0.0017 (4th percentile) on 30 November 2026
Who is exposedany host where a user who is not trusted with root can write to an overlay mount, which is every container host: a process inside a container is a local unprivileged user to the kernel, and its root filesystem is an overlay whose lower layers get copied up on first write. Red Hat’s statement names “container and multi-tenant hosts with OverlayFS” as the most exposed; single-user machines and hosts whose overlays are only written by root are on the path too, but with nobody hostile to walk it
PublishedCVE record 19 November 2026 (kernel CNA); this page built 30 November 2026, last updated 30 November 2026

What it is

A merged overlay directory is one that has to be read from both layers at once: entries from the lower layer, minus the ones the upper layer has deleted with whiteouts, plus whatever the upper layer added. To make repeated getdents() calls cheap, the overlay code builds that merged listing once and caches it on the inode, and the cache is reference-counted because several open file descriptors can be reading the same directory. A “real” upper directory, one with nothing underneath it, is cheaper: the code iterates the upper directory directly, and because no one else should be using a merged cache on such a directory, it frees whatever cache it finds “without looking at its refcount”. The record states the invariant that breaks: “a merge directory must never be iterated as a real upper directory”.

Copy-up broke it. ovl_copy_up_workdir() creates the upper directory in the work directory, then publishes it with ovl_inode_update(), then sets the OVL_WHITEOUTS flag that marks it as still merged; and ovl_dir_open() “samples both without a lock, so an open between the two stores finds the upper directory and takes it for a real one”. With a small delay between the two stores, which the author introduced to demonstrate it but which scheduling supplies for free, an unprivileged process that lists a directory during its copy-up gets an empty listing and, on its next getdents(), frees the readdir cache that another descriptor, opened in merged mode, is still iterating. That is the use-after-free, and it is driven entirely by two ordinary operations, writing into a directory and listing it, that a container process is allowed to do.

The fix is two lines of ordering. The flag is set before the dentry is published, so a reader that sees the upper directory also sees that it is merged, and ovl_dir_open() now consults the path type’s OVL_TYPE_MERGE() rather than racing on the flag, so that “an open that observes the upper dentry never iterates a merge dir as a real dir, regardless of the order in which it observes the flag”. Red Hat and Ubuntu both rate it at the top of the local-attacker scale; SUSE scores the same vector with high attack complexity, because the window is narrow, which is a fair description of a race and no comfort on a host where an attacker can try it a million times.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one.

DistributionStatusFixed package
AlpineTracker unreachable on 30 November 2026—
DebianFixed in trixie, forky and sid, and in bookworm’s linux-6.12 (DLA-4927-1); bookworm’s 6.1 kernel vulnerable at 6.1.192-2, no DSAtrixie 6.12.117-1 (6.12.118-1 in security); bookworm linux-6.12 6.12.117-1~deb12u1; forky 7.3.5-1; sid 7.3.6-1
UbuntuHigh, 7.8; 18.04 through 26.10 vulnerable, fix “work in progress” for 26.04 and 26.10; 16.04 and older not affected (last updated 25 November)26.10 7.3.0-12.13 and 26.04 7.0.0-45.45 pending; nothing for 24.04, 22.04, 20.04 or 18.04 on 30 November 2026
RHEL, Rocky, Alma, CentOS StreamImportant, 7.8, CWE-825, scores marked preliminary; the per-product table and errata did not render for our reader on 30 November 2026not read
openSUSE/SLEimportant, 7.0 / CVSS 4.0 7.3, Pending (bugs 1291538, 1291543); Affected on SLE 15 SP7 and its modules, SLES 16.0/16.1, SL Micro 5.4–6.2, the 15 SP2–SP6 LTSS lines and Leap 15.3–16.1; not affected on 12 SP5 and 15 SP1; nothing releasednone released on 30 November 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, are there overlay mounts, and can anyone who is not root write to them. On a container host the answer to the last two is yes by construction, and the first question is the only one that matters.

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

# 2. overlay mounts, and who owns them
grep -c ' overlay ' /proc/mounts
findmnt -t overlay -o TARGET,OPTIONS | head
lsmod | grep -w overlay

# 3. containers and unprivileged writers: any running container has a writable overlay root
docker ps -q 2>/dev/null | wc -l; podman ps -q 2>/dev/null | wc -l; crictl ps -q 2>/dev/null | wc -l
# rootless/user overlays (fuse-overlayfs is a different code path; the kernel overlay is the one that matters)
findmnt -t overlay -o TARGET,OPTIONS | grep -E 'userxattr|/home/' | head

A kernel at or above the fixed stable version for its series is done. No overlay mounts and no container runtime means the vulnerable code is loaded but nothing exercises it, which is fine until someone starts a container. An affected kernel running containers whose workloads you do not control, or a shared host where ordinary users can write to an overlay, is the exposed case, and the only answer is the reboot; the race needs two file descriptors and a directory being copied up, all of which a container process has.

How to fix it

Install the fixed kernel and reboot; a kernel bug is not patched in place, and the overlay code stays the old code until the machine boots the new image. On Debian trixie and bookworm’s 6.12 backport kernel the package is already there; Ubuntu LTS releases and the RHEL and SUSE families had nothing released on 30 November 2026.

# Debian trixie / sid (and bookworm with the linux-6.12 backport kernel)
apt update && apt install linux-image-amd64 && systemctl reboot
# 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 configuration that closes this one. The vulnerable sequence is a directory write followed by a directory listing, and an overlay that forbids both is not a container root filesystem. What not to do: switching a container engine to vfs or devicemapper storage avoids the overlay code but changes image layout, disk use and performance for every container on the host, and is not something to do under time pressure; and a kernel live-patch, where your distribution offers one for this CVE, is a fix, but check that it names CVE-2026-99424, because the kernel CNA’s November batch has several overlay and VFS entries.

# interim: no mitigation in the kernel; reduce who can reach the race until the reboot
# (stop scheduling untrusted workloads on this node, e.g. cordon it in Kubernetes)
kubectl cordon "$(hostname)"
# and keep an eye on the signature of a failed attempt, a kernel BUG or oops in the overlay readdir path
journalctl -k -b | grep -iE 'ovl_dir|overlayfs|kasan|slab-use-after-free' | tail

Sources

  • CVE-2026-99424 at CVE.org — the kernel CNA record (19 November 2026): the commit message with the mechanism and the unprivileged reproduction, the git and version ranges, CVSS 3.1 7.8
  • Fix commits on git.kernel.org: cbec8610 (mainline, 7.4-rc1) and the stable backports 4b079c17, c585b90d, 6fff0fe1, 0c0c2086, 43ad4a30, 7805739c and ea5327a9; the pages refuse automated readers, so the diff was not read for this page
  • NVD entry — Received; no NVD score, CWE or CPE yet
  • Distribution trackers: Debian (DLA-4927-1) · Ubuntu (High) · Red Hat (Important, the container-host statement) · SUSE (important) · Alpine (unreachable on 30 November)
  • EPSS score for this CVE, 30 November 2026

Related reading

This advisory page was assembled from the primary sources listed above on 30 November 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.