* CVE-2026-139553: mm/memory_hotplug: fix missing rollback in __add_pages()
@ 2026-11-30 13:39 Greg Kroah-Hartman
0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-11-30 13:39 UTC (permalink / raw)
To: linux-cve-announce; +Cc: Greg Kroah-Hartman
From: Greg Kroah-Hartman <gregkh@kernel.org>
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.
The Linux kernel CVE team has assigned CVE-2026-139553 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.3 with commit ba72b4c8cf60e452cf6f0258ed9ee697957b7dfd and fixed in 6.12.119 with commit 23c6b72ae412271a937d3b9706ee13ba9c84bc92
Issue introduced in 5.3 with commit ba72b4c8cf60e452cf6f0258ed9ee697957b7dfd and fixed in 6.18.66 with commit 5853ffdd61233bc7c0061d80ec6dc4c4cd969851
Issue introduced in 5.3 with commit ba72b4c8cf60e452cf6f0258ed9ee697957b7dfd and fixed in 7.3.6 with commit 2062695c28db539725e4882ad9ffac969ee29db3
Issue introduced in 5.3 with commit ba72b4c8cf60e452cf6f0258ed9ee697957b7dfd and fixed in 7.4-rc1 with commit c31bb839fb829958101250ee5acfa4f94fdb7ecd
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-139553
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
mm/memory_hotplug.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/23c6b72ae412271a937d3b9706ee13ba9c84bc92
https://git.kernel.org/stable/c/5853ffdd61233bc7c0061d80ec6dc4c4cd969851
https://git.kernel.org/stable/c/2062695c28db539725e4882ad9ffac969ee29db3
https://git.kernel.org/stable/c/c31bb839fb829958101250ee5acfa4f94fdb7ecd
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-30 14:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 13:39 CVE-2026-139553: mm/memory_hotplug: fix missing rollback in __add_pages() Greg Kroah-Hartman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.