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.
Published: 2026-08-15
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability occurs in the Linux kernel memory hotplug subsystem when the altmap argument is incorrectly passed as NULL in an error path of create_altmaps_and_memory_blocks(). This causes the vmemmap pages to be freed into the system buddy allocator instead of the intended altmap. Upon the subsequent arch_remove_memory() call, the physical linear mapping for the memory is destroyed, leaving unowned pages in the allocator. These pages can later be re‑allocated and used, resulting in machine checks or memory corruption. The failure to provide the correct altmap therefore grants the kernel the ability to inject corrupted pages, potentially destabilizing the system.

Affected Systems

All Linux kernels that implement the memory hotplug functions referenced in the CVE (create_altmaps_and_memory_blocks(), arch_add_memory(), create_memory_block_devices(), arch_remove_memory()) and that have not yet incorporated the patch are potentially affected. The CPE entry indicates the vulnerability applies to the generic Linux kernel, so all distributions using a recent kernel build that includes this code path and does not contain the fix are susceptible. Precision on affected kernel versions is not provided, so consider your kernel version and whether the memory hotplug path exists.

Risk and Exploitability

The CVSS base score is 5.5, indicating moderate severity. The EPSS score of less than 1% shows a very low probability of exploitation. The CVE is not listed in the CISA KEV catalog. Attackers would need to trigger a memory hotplug operation, which typically requires privileged (root) access or kernel module activity. Because the corruption occurs in the kernel allocator, a successful exploit could result in kernel crashes or erratic system behavior rather than arbitrary code execution. The overall risk to an unpatched system remains moderate, but the impact can be severe if the machine crashes or becomes unreliable.

Generated by OpenCVE AI on August 22, 2026 at 10:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the available kernel patch that corrects the altmap handling in the memory hotplug subsystem; the relevant commit is referenced in the advisory links
  • If a distribution kernel package does not contain the fix, download the source kernel, apply the patch from the advisory, and rebuild the kernel
  • Disable memory hotplug functionality if dynamic memory addition is not required in the environment to reduce the attack surface

Generated by OpenCVE AI on August 22, 2026 at 10:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 09:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-788

Wed, 19 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sat, 15 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-788

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
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.
Title mm/memory_hotplug: fix incorrect altmap passing in error path
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:10:26.630Z

Reserved: 2026-08-09T03:40:39.912Z

Link: CVE-2026-72212

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:21:39.913

Modified: 2026-08-17T06:18:22.150

Link: CVE-2026-72212

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72212 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T11:00:04Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference