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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-28)
- **Published:** 2026-11-20T05:50:47.785Z
- **Modified:** 2026-11-23T08:18:11.477Z

## Who should check

- Anyone running Linux \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< 61e8b187e011489adcb35aca629431c9b6c7f79a; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< d21e723479d96deeb0f28bca75050e0ce13c5b7b; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< d9d621ad49a969587d32c98aee1d83e679b9d361; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< cf1902ab0203f8767a3582143049d1bea5422096; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< 8c4adb787f77318df3b478f928f271e26d557208; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< 854e5ff8b3ce2a776586cabebaeae645c992345b
- Anyone running Linux 5.18

## 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.

## Affected and fixed versions

- Linux: \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< 61e8b187e011489adcb35aca629431c9b6c7f79a; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< d21e723479d96deeb0f28bca75050e0ce13c5b7b; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< d9d621ad49a969587d32c98aee1d83e679b9d361; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< cf1902ab0203f8767a3582143049d1bea5422096; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< 8c4adb787f77318df3b478f928f271e26d557208; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< 854e5ff8b3ce2a776586cabebaeae645c992345b (cvelist)
- Linux: 5.18 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 854e5ff8b3ce2a776586cabebaeae645c992345b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99707. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99707.md
Affected: Linux >= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < 61e8b187e011489adcb35aca629431c9b6c7f79a; >= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < d21e723479d96deeb0f28bca75050e0ce13c5b7b; >= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, < d9d621ad49a969587d32c98aee1d83e679b9d361; >= 6d9df8a5889c569ab9e3bcb…
Fixed in: Linux 61e8b187e011489adcb35aca629431c9b6c7f79a, Linux 8c4adb787f77318df3b478f928f271e26d557208, Linux 854e5ff8b3ce2a776586cabebaeae645c992345b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99707 being exploited?

There is no confirmed exploitation: CVE-2026-99707 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99707?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-99707?

Linux \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< 61e8b187e011489adcb35aca629431c9b6c7f79a; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< d21e723479d96deeb0f28bca75050e0ce13c5b7b; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< d9d621ad49a969587d32c98aee1d83e679b9d361; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< cf1902ab0203f8767a3582143049d1bea5422096; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< 8c4adb787f77318df3b478f928f271e26d557208; \>= 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde, \< 854e5ff8b3ce2a776586cabebaeae645c992345b; Linux 5.18.

### Is there a fix for CVE-2026-99707?

Yes. Fixed in Linux 61e8b187e011489adcb35aca629431c9b6c7f79a, Linux 8c4adb787f77318df3b478f928f271e26d557208, Linux 854e5ff8b3ce2a776586cabebaeae645c992345b. Upgrade Linux to 854e5ff8b3ce2a776586cabebaeae645c992345b or later.

### How do I check if I'm affected by CVE-2026-99707?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99707>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99707> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99707>
