{"id":"CVE-2026-142847","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T04:18:21.273","lastModified":"2026-12-03T04:18:21.273","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/page_isolation: fix UBSAN shift-out-of-bounds warning\n\nPatch series \"mm/page_isolation: fix UBSAN shift-out-of-bounds in\nisolate_single_pageblock\", v3.\n\nPatch 1 fixes a UBSAN shift-out-of-bounds warning in the PageBuddy branch\nof isolate_single_pageblock() triggered by concurrent buddy allocation.\n\nPatch 2 addresses the same class of issue in the PageCompound branch,\nwhere racy compound_order() and compound_head() reads could lead to\nout-of-range shifts or incorrect page skipping.\n\n\nThis patch (of 2):\n\nA contig-range allocation racing with buddy allocation on the adjacent\npageblock can trigger:\n\n UBSAN: shift-out-of-bounds in mm/page_isolation.c:393:15\n shift exponent -749042176 is negative\n Call trace:\n  isolate_single_pageblock\n  start_isolate_page_range\n  alloc_contig_frozen_range_noprof\n  alloc_contig_range_noprof\n\nisolate_single_pageblock() first calls set_migratetype_isolate() with\nzone->lock held, which marks the pageblock MIGRATE_ISOLATE and moves any\nfree page straddling the boundary out of the way.  Once the lock is\ndropped, it scans the MAX_ORDER_NR_PAGES-aligned window [start_pfn,\nboundary_pfn) locklessly, only to skip the free pages already handled\nabove and to detect in-use pages straddling the boundary.  Since this\nscan only reads page state to decide how far to skip and returns -EBUSY\non a straddling in-use page, it does not take the lock.\n\nThe window also covers the adjacent pageblock, whose free pages stay on\nthe normal movable/CMA freelist and can be allocated concurrently.  So\nafter the scan observes PageBuddy(page), another CPU can allocate the\npage, leaving a stale value in page->private that makes \"1 << order\" shift\nout of range.\n\nUse buddy_order_unsafe() with READ_ONCE to read the order, and validate\nit is within MAX_PAGE_ORDER before shifting to prevent UBSAN warnings.\n\nSince pageblock_isolate_and_move_free_pages() already handles free pages\nstraddling boundary_pfn under zone->lock, bail out with -EBUSY instead\nof VM_WARN_ON_ONCE() when a PageBuddy page appears to cross the boundary\nduring the lockless scan."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["mm/page_isolation.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","lessThan":"13d15873655030010b615b0e96675effcf621d4a","versionType":"git","status":"affected"},{"version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","lessThan":"85b18d50afca50166976362e822cde31d5f187e4","versionType":"git","status":"affected"},{"version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","lessThan":"252b493a49b0848c763aae0184155a95d52a6bec","versionType":"git","status":"affected"},{"version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","lessThan":"a793ea58f4a0f4797dabc8d57d92a143e02a9267","versionType":"git","status":"affected"},{"version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","lessThan":"ff51185900dd9accc8842a3f1bf85530ce501496","versionType":"git","status":"affected"},{"version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","lessThan":"eba0e6297edd60a85bc96ff5cfb734d066af62dd","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["mm/page_isolation.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"5.19","status":"affected"},{"version":"0","lessThan":"5.19","versionType":"semver","status":"unaffected"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/13d15873655030010b615b0e96675effcf621d4a","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/252b493a49b0848c763aae0184155a95d52a6bec","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/85b18d50afca50166976362e822cde31d5f187e4","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/a793ea58f4a0f4797dabc8d57d92a143e02a9267","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/eba0e6297edd60a85bc96ff5cfb734d066af62dd","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/ff51185900dd9accc8842a3f1bf85530ce501496","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}