CVE-2026-99667

mm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp()

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: always recheck the pmd in try_collapse_pte_mapped_thp()

try_collapse_pte_mapped_thp() drops the PTE lock after it has cleared the page table, and takes the PMD lock and the PTE lock to remove it.

In between, MADV_DONTNEED with CONFIG_PT_RECLAIM can reclaim the page table. The pmd_same() check is supposed to handle this, but it is only done with CONFIG_SPLIT_PTE_PTLOCKS.

Fix it by performing the check unconditionally.

Fix generated by an LLM and sent by Josef Bacik in private.

[ david: adjust description ]

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6375e95f381e3dc85065b6f74263a61522736203 to before 3f6b29ecde19cab035f59b65012bc9de9a45ecccAffected
  • 6375e95f381e3dc85065b6f74263a61522736203 to before 9c766a46421509d5a2f46753be3964ae128bf938Affected
  • 6375e95f381e3dc85065b6f74263a61522736203 to before aa72cf34d90da7019591ab67533a8ece8b41da2dAffected
LinuxLinux
  • 6.14Affected
  • before 6.14Not 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.