All vulnerabilities

Servers and applications

CVE-2026-99669

mm/huge_memory: fix truncate racing with PMD zapping

Severity
Unrated
Published
20 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
20 Nov 2026
Fixed in
6.2, 6.7, 6.13, 6.19, 7.3, 7.3.5
Sources
CVE Program

Description

In the Linux kernel, the following vulnerability has been resolved:

zap_huge_pmd_folio() removes the rmap before calling folio_mark_dirty(). If this was the last mapping, truncation can skip unmapping the folio and proceed without waiting for the PMD lock, racing with dirtying.

ifs_set_range_dirty() can oops if MADV_DONTNEED races with ftruncate() on XFS, when we get the folio set dirty after it was found to not be mapped anymore.

Move folio_mark_dirty() and folio_mark_accessed() before rmap removal, matching the PTE zap path. This keeps the folio mapped while updating its state, so truncation must wait for the page table lock.

Fix generated by an LLM and sent by Chris Mason in private.

[ david: simplify comment and description ]

From the CVE Program.

Affected software

SoftwareAffected versions
Linux kernelServers and applications · cna:linux|linux
  • From 7.3 before 7.3.5
  • From 7.2.5 before 7.3
  • From 6.18.52 before 6.19
  • From 6.12.114 before 6.13
All 8 release lines
  • From 5.10.273 before 5.11
  • From 5.15.224 before 5.16
  • From 6.1.191 before 6.2
  • From 6.6.160 before 6.7
  • From 6.12.114 before 6.13
  • From 6.18.52 before 6.19
  • From 7.2.5 before 7.3
  • From 7.3 before 7.3.5

About Linux kernel

Unix-like operating system kernel, basis for all Linux operating systems

From Wikidata, CC0 1.0.
GitHub stars
255,726GitHub, 15 Nov 2026
Forks
67,394GitHub, 15 Nov 2026
Developer
Linus TorvaldsWikidata
License
GNU General Public License, version 2.0Wikidata
Written in
CWikidata
First released
25 Aug 1991Wikidata
First published on GitHub
4 Sept 2011GitHub

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-99669