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

Status: published. Published: 2026-11-20. Updated: 2026-11-22.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde; < d9d621ad49a969587d32c98aee1d83e679b9d361 (affected, git); ≥ 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde; < cf1902ab0203f8767a3582143049d1bea5422096 (affected, git); ≥ 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde; < 8c4adb787f77318df3b478f928f271e26d557208 (affected, git); ≥ 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde; < 854e5ff8b3ce2a776586cabebaeae645c992345b (affected, git). Source: CNA: Linux
- Linux / Linux: 5.18 (affected); ≥ 0; < 5.18 (unaffected, semver); ≥ 6.12.118; ≤ 6.12.* (unaffected, semver); ≥ 6.18.64; ≤ 6.18.* (unaffected, semver); ≥ 7.3.5; ≤ 7.3.* (unaffected, semver); ≥ 7.4-rc2; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CVSS 3.1: 7.8 (high); CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; source: CNA: Linux

- CVSS 3.1: 7.8 (high); CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; source: NVD: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

- CISA KEV: No listing in collected sources

- EPSS: 0.17% as of 2026-11-21; percentile 6.18%

- SSVC: Not available

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/d9d621ad49a969587d32c98aee1d83e679b9d361 (CNA: Linux)

- https://git.kernel.org/stable/c/cf1902ab0203f8767a3582143049d1bea5422096 (CNA: Linux)

- https://git.kernel.org/stable/c/8c4adb787f77318df3b478f928f271e26d557208 (CNA: Linux)

- https://git.kernel.org/stable/c/854e5ff8b3ce2a776586cabebaeae645c992345b (CNA: Linux)

- https://git.kernel.org/stable/c/854e5ff8b3ce2a776586cabebaeae645c992345b (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/8c4adb787f77318df3b478f928f271e26d557208 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/cf1902ab0203f8767a3582143049d1bea5422096 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/d9d621ad49a969587d32c98aee1d83e679b9d361 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2026-99707; retrieved 2026-11-22; source updated 2026-11-22

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99707; retrieved 2026-11-22; source updated 2026-11-22

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-99707; retrieved 2026-11-22; source updated Not reported

Revision: 6a6ccbddd1d8a06d0947f8b4edb3c7ab8aa6e784e11b0481ad254166c8ffdcf8

Canonical: https://y2.dev/cve/CVE-2026-99707

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.