{"id":"CVE-2026-139553","summary":"mm/memory_hotplug: fix missing rollback in __add_pages()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/memory_hotplug: fix missing rollback in __add_pages()\n\n__add_pages() returns on a sparse_add_section() failure without removing\nthe sections already added in the same request.\n\nFor memremap_pages(), the failed range is not counted in pgmap-\u003enr_range,\nso memunmap_pages() skips it. The sections already added in that range\nretain their vmemmap mappings and subsection bits. Retrying a\nsection-aligned range can then fail with -EEXIST.\n\nSave the initial PFN and remove [start_pfn, pfn) on failure. For a vmemmap\npopulation failure, section_activate() already cleans up the current\nsection, so the rollback excludes it. If the first section fails,\n__remove_pages() receives an empty range and does nothing.","modified":"2026-11-30T15:02:29.095462330Z","published":"2026-11-30T13:35:49.577Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139553.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2062695c28db539725e4882ad9ffac969ee29db3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/23c6b72ae412271a937d3b9706ee13ba9c84bc92"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5853ffdd61233bc7c0061d80ec6dc4c4cd969851"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c31bb839fb829958101250ee5acfa4f94fdb7ecd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139553.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139553"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ba72b4c8cf60e452cf6f0258ed9ee697957b7dfd"},{"fixed":"23c6b72ae412271a937d3b9706ee13ba9c84bc92"},{"fixed":"5853ffdd61233bc7c0061d80ec6dc4c4cd969851"},{"fixed":"2062695c28db539725e4882ad9ffac969ee29db3"},{"fixed":"c31bb839fb829958101250ee5acfa4f94fdb7ecd"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139553.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.3.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139553.json"}}],"schema_version":"1.9.2"}