{"id":"CVE-2026-143170","summary":"mm/page_alloc: don't undo another isolation in alloc_contig_range","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/page_alloc: don't undo another isolation in alloc_contig_range\n\nAn alloc_contig_range() that overlaps a block going offline can leave\nthe offline spinning until it gets a signal, holding the device hotplug\nlock.  When isolation fails, alloc_contig_frozen_range() undoes it over\nthe whole range, clearing the offline's MIGRATE_ISOLATE too:\n\n  CPU 1 (offline_pages)               CPU 2 (alloc_contig_range)\n  start_isolate_page_range()\n    blocks are MIGRATE_ISOLATE\n                                      start_isolate_page_range()\n                                        -EBUSY on CPU 1's blocks\n                                      undo_isolate_page_range()\n                                        blocks are MIGRATE_MOVABLE\n  test_pages_isolated()\n    never succeeds again\n\nstart_isolate_page_range() fails only on a block someone else isolated,\nafter undoing its own, so this undo only ever clears another caller's.\nReturn directly, as before alloc_contig_range() went pageblock granular.\n\nWith offline_pages() parked after isolating a DIMM block and a 1G\nhugetlb allocation made over it, the offline on base still loops 30s\nlater in 4 of 4 runs:\n\n  offline_pages+0x5b2/0x1570\n  memory_subsys_offline+0x17e/0x470\n  device_offline+0x250/0x340\n  state_store+0x88/0x110\n\nWith this patch the allocation still fails, and the offline completes in\n3 of 3 runs.","modified":"2026-12-03T11:01:28.885628404Z","published":"2026-12-03T09:20:06.308Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143170.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/535d63d7595bf2d85f7730026392881bd9b2014c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/74ac6e544d5e967ca8ab7d92e707310e57745f36"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7d9c29ed8feec8bfbe5e5f673ba2b5926da11375"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143170.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143170"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b2c9e2fbba32539626522b6aed30d1dde7b7e971"},{"fixed":"74ac6e544d5e967ca8ab7d92e707310e57745f36"},{"fixed":"535d63d7595bf2d85f7730026392881bd9b2014c"},{"fixed":"7d9c29ed8feec8bfbe5e5f673ba2b5926da11375"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143170.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.19.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143170.json"}}],"schema_version":"1.9.2"}