# CVE-2026-99668: mm/huge_memory: fix zapping migration entries for device-private THPs

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/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:18.124Z
- Modified: 2026-11-22T11:17:05.320Z
- Assigned by: Linux

## Description

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

mm/huge_memory: fix zapping migration entries for device-private THPs

A PMD migration entry can refer to a device-private folio.
zap_huge_pmd_folio() checks the folio type instead of the entry type,
so it treats such a migration entry as a device-private entry.

Installing the migration entry already removed the reverse mapping and
dropped the mapping reference. Zapping it must not repeat those
operations. Concurrent MADV_DONTNEED during migration back to system
memory can trigger this.

Check the PMD entry type using pmd_is_device_private_entry().

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

[ david: simplify description ]

(As written by CVE List.)

## Affected

- Linux Linux: from 368076f52ebeecd33e10a9f80905d7508b6b6149 before 2d7e94a16d0d33ce2cce5ea06cf61079c392d351; from 368076f52ebeecd33e10a9f80905d7508b6b6149 before 63a940541358d09cc9f02d40b71eb8d3917a21c0; 6.19 (not affected: before 6.19; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/2d7e94a16d0d33ce2cce5ea06cf61079c392d351>
- <https://git.kernel.org/stable/c/63a940541358d09cc9f02d40b71eb8d3917a21c0>

## Sources

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

---

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