# CVE-2026-72212: mm/memory_hotplug: fix incorrect altmap passing in error path

- Severity: not scored yet
- 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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-08-15T05:54:07.077Z
- Modified: 2026-08-17T06:18:22.150Z
- Assigned by: Linux

## Description

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

mm/memory_hotplug: fix incorrect altmap passing in error path

In create_altmaps_and_memory_blocks(), when arch_add_memory() succeeds
with memmap_on_memory enabled, the vmemmap pages are allocated from
params.altmap.  If create_memory_block_devices() subsequently fails, the
error path calls arch_remove_memory() with a NULL altmap instead of
params.altmap.

This is a bug that could lead to memory corruption.  Since altmap is NULL,
vmemmap_free() falls back to freeing the vmemmap pages into the system
buddy allocator via free_pages() instead of the altmap. 
arch_remove_memory() then immediately destroys the physical linear mapping
for this memory.  This injects unowned pages into the buddy allocator,
causing machine checks or memory corruption if the system later attempts
to allocate and use those freed pages.

Fix this by passing params.altmap to arch_remove_memory() in the error
path.

(As written by CVE List.)

## Affected

- Linux Linux: from 6b8f0798b85aa529011570369db985a788f3003f before 3833e6abdbbfb59ec8203a84a84206cb7ffb41ac; from 6b8f0798b85aa529011570369db985a788f3003f before 722e6c54bde6391fb95f0357f555aca887c7b18c; from 6b8f0798b85aa529011570369db985a788f3003f before 2f9e3ec17c3d2093c664c00a027588a446c39894; from 6b8f0798b85aa529011570369db985a788f3003f before 2fac4afa0e2e68841334c78c1821e49f74fbc66a; 6.8 (not affected: before 6.8; from 6.12.97 up to 6.12.*; from 6.18.40 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/3833e6abdbbfb59ec8203a84a84206cb7ffb41ac>
- <https://git.kernel.org/stable/c/722e6c54bde6391fb95f0357f555aca887c7b18c>
- <https://git.kernel.org/stable/c/2f9e3ec17c3d2093c664c00a027588a446c39894>
- <https://git.kernel.org/stable/c/2fac4afa0e2e68841334c78c1821e49f74fbc66a>

## Sources

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

---

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