Skip to content
DayZeroHub
High Not yet writtenCVSS 7.8CVE-2026-99707

CVE-2026-99707: mm/khugepaged: flush deferred unmaps before dropping a failed folio

Linux Linux

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-99707: high-severity vulnerability (CVSS 7.8) in Linux Linux.

What happened

Original description from the source: In the Linux kernel, the following vulnerability has been resolved: mm/khugepaged: flush deferred unmaps before dropping a failed folio collapse_file() can fail its reference-count or dirty-folio check after unmapping with TTU_BATCH_FLUSH. Both paths put back the isolated folio, then unlock it and drop the lookup reference before reaching the common try_to_unmap_flush(). The page-cache reference does not keep the folio stable once the lock is released. Another collapse can replace and free it. With its PTEs already gone, that collapse cannot flush the first task's per-task TLB batch, and retract_page_tables() skips short or unaligned VMAs. A CPU can therefore retain a user translation to the freed folio. This has been reproduced with unprivileged MADV_COLLAPSE on a memfd. Flush at out_unlock while the lookup reference and folio lock are still held. The common flush continues to cover the accumulated pagelist on both success and rollback, preserving batching on successful collapses.

Why it matters

High severity, CVSS 7.8.

Affected products and versions

Linux Linux >= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < 61e8b187e011489adcb35aca629431c9b6c7f79a; Linux Linux >= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < d21e723479d96deeb0f28bca75050e0ce13c5b7b; Linux Linux >= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < d9d621ad49a969587d32c98aee1d83e679b9d361; Linux Linux >= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < cf1902ab0203f8767a3582143049d1bea5422096; Linux Linux >= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < 8c4adb787f77318df3b478f928f271e26d557208; Linux Linux >= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < 854e5ff8b3ce2a776586cabebaeae645c992345b; Linux Linux 5.18; Linux Linux < 5.18; Linux Linux 6.1.193 (fixed in 6.1.193); Linux Linux 6.6.163 (fixed in 6.6.163); Linux Linux 6.12.118 (fixed in 6.12.118); Linux Linux 6.18.64 (fixed in 6.18.64)

ProductVersionsFixed in
Linux Linux>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < 61e8b187e011489adcb35aca629431c9b6c7f79a—
Linux Linux>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < d21e723479d96deeb0f28bca75050e0ce13c5b7b—
Linux Linux>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < d9d621ad49a969587d32c98aee1d83e679b9d361—
Linux Linux>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < cf1902ab0203f8767a3582143049d1bea5422096—
Linux Linux>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < 8c4adb787f77318df3b478f928f271e26d557208—
Linux Linux>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < 854e5ff8b3ce2a776586cabebaeae645c992345b—
Linux Linux5.18—
Linux Linux< 5.18—
Linux Linux6.1.1936.1.193
Linux Linux6.6.1636.6.163
Linux Linux6.12.1186.12.118
Linux Linux6.18.646.18.64
Linux Linux7.3.57.3.5
Linux Linux7.4-rc27.4-rc2

Action recommended by the source

Upgrade to a fixed version: 6.1.193, 6.12.118, 6.18.64, 6.6.163, 7.3.5, 7.4-rc2.

Fixed in: 6.1.193, 6.12.118, 6.18.64, 6.6.163, 7.3.5, 7.4-rc2

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Relevant change history

  1. Published

    Preliminary advisory published.