{"id":"CVE-2026-99667","summary":"mm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp()\n\ntry_collapse_pte_mapped_thp() drops the PTE lock after it has cleared the\npage table, and takes the PMD lock and the PTE lock to remove it.\n\nIn between, MADV_DONTNEED with CONFIG_PT_RECLAIM can reclaim the\npage table. The pmd_same() check is supposed to handle this, but it is\nonly done with CONFIG_SPLIT_PTE_PTLOCKS.\n\nFix it by performing the check unconditionally.\n\nFix generated by an LLM and sent by Josef Bacik in private.\n\n[ david: adjust description ]","modified":"2026-11-20T07:01:06.691285186Z","published":"2026-11-20T05:50:17.274Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99667.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3f6b29ecde19cab035f59b65012bc9de9a45eccc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9c766a46421509d5a2f46753be3964ae128bf938"},{"type":"WEB","url":"https://git.kernel.org/stable/c/aa72cf34d90da7019591ab67533a8ece8b41da2d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99667.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99667"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6375e95f381e3dc85065b6f74263a61522736203"},{"fixed":"3f6b29ecde19cab035f59b65012bc9de9a45eccc"},{"fixed":"9c766a46421509d5a2f46753be3964ae128bf938"},{"fixed":"aa72cf34d90da7019591ab67533a8ece8b41da2d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99667.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.14.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99667.json"}}],"schema_version":"1.9.2"}