# CVE-2026-99667: mm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp()

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-11-20T05:50:17.274Z
- Modified: 2026-11-22T11:17:05.210Z
- Assigned by: Linux

## 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 ]

(As written by CVE List.)

## Affected

- Linux Linux: from 6375e95f381e3dc85065b6f74263a61522736203 before 3f6b29ecde19cab035f59b65012bc9de9a45eccc; from 6375e95f381e3dc85065b6f74263a61522736203 before 9c766a46421509d5a2f46753be3964ae128bf938; from 6375e95f381e3dc85065b6f74263a61522736203 before aa72cf34d90da7019591ab67533a8ece8b41da2d; 6.14 (not affected: before 6.14; from 6.18.64 up to 6.18.*; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/3f6b29ecde19cab035f59b65012bc9de9a45eccc>
- <https://git.kernel.org/stable/c/9c766a46421509d5a2f46753be3964ae128bf938>
- <https://git.kernel.org/stable/c/aa72cf34d90da7019591ab67533a8ece8b41da2d>

## Sources

- CVE List: [CVE-2026-99667](https://www.cve.org/CVERecord?id=CVE-2026-99667), CVE Terms of Use, modified 2026-11-22
- NVD: [CVE-2026-99667](https://nvd.nist.gov/vuln/detail/CVE-2026-99667), Public domain, modified 2026-11-22

---

Page: https://cve.day/CVE-2026-99667 · Whole record: https://cve.day/CVE-2026-99667.json · Rebuilt by cve.day 2026-11-25T22:59:52.300Z
