{"id":"CVE-2026-143170","state":"PUBLISHED","title":"mm/page_alloc: don't undo another isolation in alloc_contig_range","description":"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.","publishedAt":"2026-12-03T09:20:06.308Z","updatedAt":"2026-12-03T09:20:06.308Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","status":"affected","lessThan":"74ac6e544d5e967ca8ab7d92e707310e57745f36","versionType":"git"},{"version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","status":"affected","lessThan":"535d63d7595bf2d85f7730026392881bd9b2014c","versionType":"git"},{"version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","status":"affected","lessThan":"7d9c29ed8feec8bfbe5e5f673ba2b5926da11375","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/page_alloc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/page_alloc.c"]}],"references":["https://git.kernel.org/stable/c/74ac6e544d5e967ca8ab7d92e707310e57745f36","https://git.kernel.org/stable/c/535d63d7595bf2d85f7730026392881bd9b2014c","https://git.kernel.org/stable/c/7d9c29ed8feec8bfbe5e5f673ba2b5926da11375"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143170.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143170","state":"PUBLISHED","datePublished":"2026-12-03T09:20:06.308Z","dateUpdated":"2026-12-03T09:20:06.308Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.357Z"},"containers":{"cna":{"title":"mm/page_alloc: don't undo another isolation in alloc_contig_range","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","status":"affected","lessThan":"74ac6e544d5e967ca8ab7d92e707310e57745f36","versionType":"git"},{"version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","status":"affected","lessThan":"535d63d7595bf2d85f7730026392881bd9b2014c","versionType":"git"},{"version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","status":"affected","lessThan":"7d9c29ed8feec8bfbe5e5f673ba2b5926da11375","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/page_alloc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/page_alloc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/74ac6e544d5e967ca8ab7d92e707310e57745f36"},{"url":"https://git.kernel.org/stable/c/535d63d7595bf2d85f7730026392881bd9b2014c"},{"url":"https://git.kernel.org/stable/c/7d9c29ed8feec8bfbe5e5f673ba2b5926da11375"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:20:06.308Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}