CVE-2026-99580: Linux kernel userfaultfd copies a shared hugetlb page table that can vanish

ByLinuxtastic

November 30, 2026 #CVE, #Linux Kernel

Since Linux 6.9 the userfaultfd code has been allocating an anon_vma for mappings that are not copy-on-write, including read-only shared file mappings it goes on to reject. That stray allocation later confuses fork() into copying hugetlb page tables that are shared between processes, and a shared table can be unshared, unmapped and freed by another process while the copy is using it. Update to a kernel from the 20 November 2026 stable releases and reboot; 6.9 to 6.12.117, 6.18.63 and 7.3.4 are affected, and older long-term kernels are not. Red Hat notes that a stock RHEL restricts unprivileged userfaultfd, which narrows who can reach it.

CVE-2026-99580 at a glance.

ComponentLinux kernel, userfaultfd and hugetlb (mm/userfaultfd.c, mm/hugetlb.c)
Affected versions6.9 and later (introduced by commit 867a43a34ff8, per-VMA locks in userfaultfd), up to the stable releases of 20 November 2026; 6.6 and older long-term kernels are not affected
Fixed in7.4-rc1 (commit 514c9247db30) and stable 6.12.118, 6.18.64, 7.3.5
SeverityCVSS 3.1 7.8 High (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, kernel CNA, mirrored by NVD). Red Hat rates it Important, 7.8 verified, CWE-825; SUSE rates it important, still in analysis, no SUSE score yet
Exploited in the wildNot on CISA’s KEV catalogue. EPSS 0.0016 (3rd percentile) on 30 November 2026
Who is exposedHosts on an affected kernel where a local user can open a userfaultfd (vm.unprivileged_userfaultfd is 0 by default on recent kernels and on RHEL, which limits it to privileged or capability-holding processes) and use hugetlb mappings
PublishedCVE record 20 November 2026; this page built 30 November 2026, last updated 30 November 2026

What it is

userfaultfd lets a process handle page faults for part of its own address space from userspace, which is how live migration and some memory-checkpointing tools work. When it prepares to fill a page, find_vma_and_prepare_anon() makes sure the target mapping has an anon_vma, the structure that tracks private anonymous pages. The fix commit explains that since the move to per-VMA locks in 6.9 this function allocates the anon_vma before validating the mapping, so a MAP_SHARED read-only file mapping, which userfaultfd later rejects because it lacks VM_MAYWRITE, is left carrying an anon_vma it should never have.

The damage shows up at fork(). copy_page_range() asks vma_needs_copy() whether a mapping’s page tables need copying into the child, and an anon_vma makes it say yes. For a hugetlb mapping that sends the kernel into copy_hugetlb_page_range() with ranges that, in the commit’s words, contain no per-page-table information that would require copying, which is the whole basis of PMD-table sharing. If the destination PMD table is shared, it can be unshared concurrently, because the relevant locks are not held, and the copy then uses a page table that is no longer mapped and possibly freed. The fix stops allocating an anon_vma in non-CoW mappings, corrects a matching VM_SHARED check in uffd_lock_vma(), and adds a guard in copy_hugetlb_page_range() so that it never touches shared PMD tables.

Red Hat’s statement says it rates the flaw Important rather than Moderate because a local attacker with userfaultfd access can corrupt page-table structures, and points out that a default RHEL restricts unprivileged userfaultfd. That restriction is the vm.unprivileged_userfaultfd sysctl, which also defaults to 0 upstream; a host that has set it to 1, or that grants CAP_SYS_PTRACE to untrusted code, loses that narrowing.

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
Debian trixieFixed (DSA-6652-1)linux 6.12.118-1 in trixie-security
Debian bookwormNot affected— (6.1 predates the bug)
Debian forky, sidFixed7.3.5-1 / 7.3.6-1
UbuntuTracker unreachablethe page refused automated readers on 30 November 2026; check the link
RHEL, Rocky, Alma, CentOS StreamImportant; RHEL 10 fixedkernel-6.12.0-264.20.1.el10_3, RHSA-2026:102253 (23 November 2026); RHEL 7, 8 and 9 Not affected; OpenShift 5 CoreOS 10 Affected
SUSE / openSUSEimportant, Analysisevery product row still under analysis on 30 November 2026
Fedora, Arch, Alpine, othersNot consultedfixed once the kernel is at or past the stable versions in the box

How to check

Three questions, in order: is the running kernel inside the affected range, can unprivileged processes open a userfaultfd, and are hugetlb pages in use at all.

# 1. Kernel version: affected if 6.9 or later and older than 6.12.118 / 6.18.64 / 7.3.5 (6.6 and older: not affected)
uname -r

# 2. Who may open a userfaultfd? 0 = privileged only (the default), 1 = anyone
sysctl vm.unprivileged_userfaultfd
grep -E '^CONFIG_USERFAULTFD=' /boot/config-$(uname -r) 2>/dev/null

# 3. hugetlb in use?
grep -E '^HugePages_(Total|Rsvd)' /proc/meminfo
grep hugetlbfs /proc/mounts

If step 1 shows 6.6 or older, or a fixed version, you are done. On an affected kernel, a sysctl of 0 in step 2 confines the trigger to root, to processes with CAP_SYS_PTRACE, and to anything already running as them, which is the narrowing Red Hat describes; a value of 1, or a workload that hands out that capability (some container runtimes and debugging tools do), removes it. Step 3 tells you whether the hugetlb side of the race exists on this host; HugePages_Total 0 and no hugetlbfs mount mean the vulnerable copy path has nothing to copy today.

How to fix it

Install the distribution’s kernel update and reboot; a kernel fix is not live until the new kernel is running.

# Debian trixie (DSA-6652-1)
sudo apt update && sudo apt install linux-image-amd64 && sudo reboot

# Ubuntu (when the USN lands)
sudo apt update && sudo apt install linux-generic && sudo reboot

# RHEL 10 and rebuilds (RHSA-2026:102253)
sudo dnf update kernel && sudo reboot

# SUSE / openSUSE (when the update ships)
sudo zypper patch && sudo reboot

If the host cannot reboot today, make sure the default stands: unprivileged userfaultfd off. This is not a complete mitigation, because privileged code and capability holders can still open one, and no tracker lists it as a fix, but it is the setting the Red Hat rating relies on and it costs nothing on a host that does not run live-migration or checkpointing tools as ordinary users.

# Keep userfaultfd privileged-only until the kernel is updated (persist it in /etc/sysctl.d/ if it is not already the default)
sudo sysctl -w vm.unprivileged_userfaultfd=0

Sources

  • CVE-2026-99580 at CVE.org — the kernel CNA record with the fix commit message, the affected ranges and the CVSS vector (published 20 November 2026)
  • NVD entry — status Received on 30 November 2026; carries the CNA’s 7.8 and no CPE ranges yet
  • Fix commit 514c9247db30 (mainline 7.4-rc1) and its stable backports a90e7044b34f, 3bf446c8ce64, 20704188d669 — git.kernel.org refuses automated readers, so the description above is from the CNA’s copy of the commit message
  • RHSA-2026:102253 — the RHEL 10.3 kernel erratum of 23 November 2026 that fixes it
  • Distribution trackers: Debian · Ubuntu · Red Hat · SUSE
  • 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.