CVE-2026-139553

mm/memory_hotplug: fix missing rollback in __add_pages()

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

mm/memory_hotplug: fix missing rollback in __add_pages()

__add_pages() returns on a sparse_add_section() failure without removing
the sections already added in the same request.

For memremap_pages(), the failed range is not counted in pgmap->nr_range,
so memunmap_pages() skips it. The sections already added in that range
retain their vmemmap mappings and subsection bits. Retrying a
section-aligned range can then fail with -EEXIST.

Save the initial PFN and remove [start_pfn, pfn) on failure. For a vmemmap
population failure, section_activate() already cleans up the current
section, so the rollback excludes it. If the first section fails,
__remove_pages() receives an empty range and does nothing.

Analysis

AI-generated

Technical impact

A fault in the Linux kernel's memory hotplug subsystem leaves newly added page sections in an inconsistent state when an error occurs, because the add_pages routine does not roll back partial work. The result is that memory mapping tables retain orphaned references and page counts, which can corrupt the kernel's view of virtual memory and may be exploited by an attacker to destabilise or compromise the system.

Affected Systems

All Linux kernel versions that include the buggy add_pages implementation are affected. The specific releases are not enumerated here, but any kernel version prior to the fix commit is at risk.

Risk and Exploitability

No CVSS score or EPSS score is available, and the vulnerability is not listed in CISA's KEV catalog. The bug requires a local or privileged user to trigger a memory hotplug operation that exercises the faulty code path, which might yield denial of service or memory corruption. The missing rollback is a direct code‑path error that is likely hard to exploit remotely but poses significant risk to affected kernels.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest kernel update that contains the __add_pages rollback patch.
  • If an immediate kernel upgrade is not possible, temporarily disable memory hotplug features to prevent the buggy code from running.
  • Check the kernel configuration and remove hotplug support modules if they are not required for your environment.

Generated by OpenCVE AI on November 30, 2026 at 23:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-665
CWE-772
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: mm/memory_hotplug: fix missing rollback in __add_pages() __add_pages() returns on a sparse_add_section() failure without removing the sections already added in the same request. For memremap_pages(), the failed range is not counted in pgmap->nr_range, so memunmap_pages() skips it. The sections already added in that range retain their vmemmap mappings and subsection bits. Retrying a section-aligned range can then fail with -EEXIST. Save the initial PFN and remove [start_pfn, pfn) on failure. For a vmemmap population failure, section_activate() already cleans up the current section, so the rollback excludes it. If the first section fails, __remove_pages() receives an empty range and does nothing.
Title mm/memory_hotplug: fix missing rollback in __add_pages()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-665

    Improper Initialization

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM