CVE-2026-99707

mm/khugepaged: flush deferred unmaps before dropping a failed folio

State
Published
Severity
Not scored
Published
Nov 20, 2026
Updated
Nov 20, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde to before d9d621ad49a969587d32c98aee1d83e679b9d361Affected
  • 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde to before cf1902ab0203f8767a3582143049d1bea5422096Affected
  • 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde to before 8c4adb787f77318df3b478f928f271e26d557208Affected
  • 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde to before 854e5ff8b3ce2a776586cabebaeae645c992345bAffected
LinuxLinux
  • 5.18Affected
  • before 5.18Not affected
  • 6.12.118 through 6.12.*Not affected
  • 6.18.64 through 6.18.*Not affected
  • 7.3.5 through 7.3.*Not affected
  • 7.4-rc2 and laterNot affected

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.