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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-11-20T05:50:47.785Z
- Modified: 2026-11-23T08:18:11.477Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde before 61e8b187e011489adcb35aca629431c9b6c7f79a; from 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde before d21e723479d96deeb0f28bca75050e0ce13c5b7b; from 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde before d9d621ad49a969587d32c98aee1d83e679b9d361; from 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde before cf1902ab0203f8767a3582143049d1bea5422096; from 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde before 8c4adb787f77318df3b478f928f271e26d557208; from 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde before 854e5ff8b3ce2a776586cabebaeae645c992345b; 5.18 (not affected: before 5.18; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.64 up to 6.18.*; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/61e8b187e011489adcb35aca629431c9b6c7f79a>
- <https://git.kernel.org/stable/c/d21e723479d96deeb0f28bca75050e0ce13c5b7b>
- <https://git.kernel.org/stable/c/d9d621ad49a969587d32c98aee1d83e679b9d361>
- <https://git.kernel.org/stable/c/cf1902ab0203f8767a3582143049d1bea5422096>
- <https://git.kernel.org/stable/c/8c4adb787f77318df3b478f928f271e26d557208>
- <https://git.kernel.org/stable/c/854e5ff8b3ce2a776586cabebaeae645c992345b>

## Sources

- CVE List: [CVE-2026-99707](https://www.cve.org/CVERecord?id=CVE-2026-99707), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-99707](https://nvd.nist.gov/vuln/detail/CVE-2026-99707), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-99707 · Whole record: https://cve.day/CVE-2026-99707.json · Rebuilt by cve.day 2026-11-25T22:59:52.316Z
