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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-20 · Modified: 2026-11-23
- Aliases: DEBIAN-CVE-2026-99707, UBUNTU-CVE-2026-99707, CGA-28cc-pc69-xp7r, CGA-4ggv-p284-g46f, CGA-5cfw-xfh9-2r52, CGA-928f-4rgq-322g, CGA-c2x5-73j5-3vrw, CGA-jm63-m78w-hv6h, CGA-ppp9-rpx7-xm53, CGA-q3w7-44jg-qhrm, CGA-qxx5-32cj-xg78, CGA-wrmg-ff3r-8rcc, CGA-xr6q-mq4q-x3ww, CGA-3c6j-928w-3xf5, CGA-8f3f-3494-q376, CGA-frfx-gjc4-ghf9, CGA-fv9r-m2fp-mhwh, CGA-jvcc-4fc8-qfvg, CGA-pfw8-323w-5h3w, CGA-wpgw-jg5f-79c8, CGA-xhcc-9rjq-c4m7
- Record: https://cvemate.com/vulnerability/CVE-2026-99707 · JSON: https://cvemate.com/vulnerability/CVE-2026-99707/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.164%, percentile 5.793%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 155)

- chainguard linux-desktop-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-modules (Chainguard): All versions (No fix recorded)
- debian linux (Debian): All versions (No fix recorded) \| \< 6.12.118-1 \| \< 7.3.5-1
- debian linux-6.12 (Debian): \< 6.12.118-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)

## References

- <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>
- <https://security-tracker.debian.org/tracker/CVE-2026-99707>
- <https://git.kernel.org/stable/c/61e8b187e011489adcb35aca629431c9b6c7f79a>
- <https://git.kernel.org/stable/c/d21e723479d96deeb0f28bca75050e0ce13c5b7b>
- <https://ubuntu.com/security/CVE-2026-99707>
- <https://www.cve.org/CVERecord?id=CVE-2026-99707>
- <https://git.kernel.org/linus/854e5ff8b3ce2a776586cabebaeae645c992345b>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99707.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-99707>
- <https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git>

---

Data as of 2026-12-05T03:39:02.852Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
