CVE-2026-99707
mm/khugepaged: flush deferred unmaps before dropping a failed folio
What happened?
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.
Affected software and versions
| Software | Version information | Fixed version |
|---|---|---|
| LinuxLinux | affected: 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde to < 61e8b187e011489adcb35aca629431c9b6c7f79a; affected: 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde to < d21e723479d96deeb0f28bca75050e0ce13c5b7b; affected: 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde to < d9d621ad49a969587d32c98aee1d83e679b9d361; affected: 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde to < cf1902ab0203f8767a3582143049d1bea5422096; affected: 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde to < 8c4adb787f77318df3b478f928f271e26d557208; affected: 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde to < 854e5ff8b3ce2a776586cabebaeae645c992345b | See vendor advisory |
| LinuxLinux | affected: 5.18; unaffected: 0 to < 5.18; unaffected: 6.1.193 to ≤ 6.1.*; unaffected: 6.6.163 to ≤ 6.6.*; unaffected: 6.12.118 to ≤ 6.12.*; unaffected: 6.18.64 to ≤ 6.18.*; unaffected: 7.3.5 to ≤ 7.3.*; unaffected: 7.4-rc2 to ≤ * | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2026-99707
- 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