When the Linux kernel’s khugepaged tries to collapse a file-backed range into a huge page and fails late in the attempt, it releases the page before flushing the TLB entries it had batched up. Another collapse can then replace and free that page while a CPU still holds a translation to it, so a process keeps a mapping to memory that now belongs to someone else. The commit says the bug was reproduced with an unprivileged MADV_COLLAPSE call on a memfd. Update to a kernel from the 20 November 2026 stable releases and reboot; kernels from 5.18 onwards are affected. There is no sysctl that closes the path for an unprivileged caller once transparent huge pages are available at all.
CVE-2026-99707 at a glance.
| Component | Linux kernel, khugepaged file collapse (mm/khugepaged.c, collapse_file()) |
| Affected versions | 5.18 and later, up to the stable releases of 20 November 2026; not present before 5.18 |
| Fixed in | 7.4-rc2 (commit 854e5ff8b3ce) and stable 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.5 |
| Severity | CVSS 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, CWE-825; SUSE rates it important and scores it 7.0 with high attack complexity |
| Exploited in the wild | Not on CISA’s KEV catalogue. EPSS 0.0016 (3rd percentile) on 30 November 2026 |
| Who is exposed | Any host on an affected kernel with transparent huge pages available for file mappings, where a local user can call madvise(MADV_COLLAPSE); the reproduction used a memfd, which needs no special privilege |
| Published | CVE record 20 November 2026; this page built 30 November 2026, last updated 30 November 2026 |
What it is
khugepaged is the kernel thread that quietly rewrites runs of small pages into one huge page, and since 5.18 a process can ask for the same thing directly with madvise(MADV_COLLAPSE). To collapse a file-backed range, collapse_file() unmaps the small pages from every process using them, batching the TLB flushes with TTU_BATCH_FLUSH so that one flush at the end covers them all. The fix commit describes two failure paths, a reference-count check and a dirty-folio check, that give up after the unmap but before that final flush: they put the isolated page back, unlock it and drop their reference, and only then reach the common try_to_unmap_flush().
Once the lock is released, the page-cache reference does not keep the page stable, so a second collapse can replace and free it. Its page-table entries are already gone, which means the second collapse cannot flush the first task’s per-CPU TLB batch, and retract_page_tables() skips short or unaligned VMAs. The result, in the commit’s words, is that a CPU can retain a user translation to the freed page. The fix flushes at the out_unlock label while the lookup reference and the page lock are still held; the common flush still covers the accumulated page list on success and on rollback, so batching is preserved for collapses that succeed.
Red Hat’s statement describes a local unprivileged user who could gain root, read memory or crash the host, and says the flaw is not remotely exploitable. SUSE scores the attack complexity as high and arrives at 7.0. Neither disputes that the trigger is available to an ordinary user.
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.
| Distribution | Status | Fixed package |
|---|---|---|
| Debian trixie | Fixed (DSA-6652-1) | linux 6.12.118-1 in trixie-security |
| Debian bookworm | Vulnerable | none yet (6.1.192-2 is still affected) |
| Debian forky, sid | Fixed | 7.3.5-1 |
| Ubuntu | Tracker unreachable | the page refused automated readers on 30 November 2026; check the link |
| RHEL, Rocky, Alma, CentOS Stream | Important; RHEL 9 and 10 Affected, no erratum yet | RHEL 7 and 8 listed as Not affected; OpenShift 4 CoreOS 9 and OpenShift 5 Affected |
| SUSE / openSUSE | important, Pending (bugs 1291722, 1291749) | SLE 15 SP7, 15 SP6-LTSS, SLE Micro 6.0/6.1 and Leap 15.6 already fixed; SLE 16.0, 16.1, SLE Micro 6.2 and Leap 16.x Affected; 15 SP4/SP5 and Micro 5.x not affected |
| Fedora, Arch, Alpine, others | Not consulted | fixed once the kernel is at or past the stable versions in the box |
How to check
Two questions: is the running kernel inside the affected range, and are transparent huge pages available to file mappings, which is what the collapse needs.
# 1. Kernel version: affected if 5.18 or later and older than 6.1.193 / 6.6.163 / 6.12.118 / 6.18.64 / 7.3.5
uname -r
# 2. Transparent huge pages: "never" in brackets means khugepaged and MADV_COLLAPSE have nothing to do
cat /sys/kernel/mm/transparent_hugepage/enabled
cat /sys/kernel/mm/transparent_hugepage/shmem_enabled
grep -E '^CONFIG_(TRANSPARENT_HUGEPAGE|READ_ONLY_THP_FOR_FS)=' /boot/config-$(uname -r) 2>/dev/null
# 3. Is anything collapsing right now?
grep -E 'thp_(collapse|file)' /proc/vmstatIf step 1 shows a kernel before 5.18 or at or past the fixed versions, you are done. On an affected kernel, [never] in both enabled and shmem_enabled removes the collapse path for anonymous and shmem memory, but MADV_COLLAPSE on a memfd is the reproduction the commit names and shmem is where memfds live, so a host that shows [madvise] or [always] in either file is the case to patch. The counters in step 3 only tell you that collapses happen, not that one has failed in the window.
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 9, 10 and rebuilds (when the errata land)
sudo dnf update kernel && sudo reboot
# SUSE / openSUSE
sudo zypper patch && sudo rebootSetting transparent huge pages to never is sometimes offered as a stop-gap. It takes away khugepaged’s background work and most madvise collapses, at a performance cost for databases and JVMs that rely on huge pages, and neither the kernel CNA nor any distribution tracker lists it as a mitigation for this bug. Treat it as a way to narrow exposure on a host that cannot reboot today, not as a fix.
# Narrowing only, until the kernel is updated (not persistent across reboots)
echo never | sudo tee /sys/kernel/mm/transparent_hugepage/enabled
echo never | sudo tee /sys/kernel/mm/transparent_hugepage/shmem_enabledSources
- CVE-2026-99707 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 854e5ff8b3ce (mainline 7.4-rc2) and its stable backports 61e8b187e011, d21e723479d9, d9d621ad49a9, cf1902ab0203, 8c4adb787f77 — git.kernel.org refuses automated readers, so the description above is from the CNA’s copy of the commit message
- Distribution trackers: Debian · Ubuntu · Red Hat · SUSE
- EPSS score for this CVE, 30 November 2026
Related reading
- CVE-2026-99463: Linux kernel lazyfree THP reclaim use-after-free — the other transparent-huge-page race from the same stable cycle
- CVE-2026-99662: Linux kernel GUP-fast zero-length write — a memory-management bug reachable from a user-supplied length
- CVE-2026-99477: Linux kernel PAGEMAP_SCAN hugetlb lock — a second mm bug reachable by an unprivileged local user
- The Half of Patching That Happens After the Patch is Installed — why an installed kernel package is not a fixed kernel until the reboot
- Security advisories — every CVE page on this site, newest first, with the component index
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.

