# CVE-2026-64302: x86/mm: Fix freeing of PMD-sized vmemmap pages

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-07-25T08:49:37.621Z
- Modified: 2026-09-03T16:11:53.503Z
- Assigned by: Linux

## Description

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

x86/mm: Fix freeing of PMD-sized vmemmap pages

Commit bf9e4e30f353 ("x86/mm: use pagetable_free()"), switched from
freeing non-boot page tables through __free_pages() to
pagetable_free().

However, the function is also called to free vmemmap pages.

Given that vmemmap pages are not page tables, already the page_ptdesc(page)
is wrong. But worse, pagetable_free() calls:

	__free_pages(page, compound_order(page));

Since vmemmap pages are not compound pages (see vmemmap_alloc_block())
-- except for HVO, which doesn't apply here -- only first page of a
PMD-sized vmemmap page is freed, leaking the other ones.

Fix it by properly decoupling pagetable and vmemmap freeing.
free_pagetable() no longer has to mess with SECTION_INFO, as only the
vmemmap is marked like that in register_page_bootmem_memmap().

The indentation in remove_pmd_table() is messed up. Fix that while
touching it.

Bootmem info handling will soon be fixed up. For now, handle it
similar to free_pagetable(), just avoiding the ifdef.

[ dhansen: changelog munging. More imperative voice ]

(As written by CVE List.)

## Affected

- Linux Linux: from a1593c90896babf33e947910c7aecb9f50bab993 before add1e4112e00b619614784bf630aeebfdefa23e1; from bf9e4e30f3538391745a99bc2268ec4f5e4a401e before 03f6ecbc446c33b38fd452cd3c494092a8116967; from bf9e4e30f3538391745a99bc2268ec4f5e4a401e before 39406c05f8f150f1685839acd38ffdd69ff92031; from 6.18.7 before 6.18.39; 6.19 (not affected: before 6.19; from 6.18.39 up to 6.18.*; from 7.1.4 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 6.18.7 before 6.18.39; from 6.19 before 7.1.4

## References

- <https://git.kernel.org/stable/c/add1e4112e00b619614784bf630aeebfdefa23e1> (patch)
- <https://git.kernel.org/stable/c/03f6ecbc446c33b38fd452cd3c494092a8116967> (patch)
- <https://git.kernel.org/stable/c/39406c05f8f150f1685839acd38ffdd69ff92031> (patch)

## Sources

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

---

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