PT-2026-166570

CVE-2026-142847

·

Published

2026-12-03

·

Updated

2026-12-03

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
mm/page isolation: fix UBSAN shift-out-of-bounds warning
Patch series "mm/page isolation: fix UBSAN shift-out-of-bounds in isolate single pageblock", v3.
Patch 1 fixes a UBSAN shift-out-of-bounds warning in the PageBuddy branch of isolate single pageblock() triggered by concurrent buddy allocation.
Patch 2 addresses the same class of issue in the PageCompound branch, where racy compound order() and compound head() reads could lead to out-of-range shifts or incorrect page skipping.
This patch (of 2):
A contig-range allocation racing with buddy allocation on the adjacent pageblock can trigger:
UBSAN: shift-out-of-bounds in mm/page isolation.c:393:15 shift exponent -749042176 is negative Call trace: isolate single pageblock start isolate page range alloc contig frozen range noprof alloc contig range noprof
isolate single pageblock() first calls set migratetype isolate() with zone->lock held, which marks the pageblock MIGRATE ISOLATE and moves any free page straddling the boundary out of the way. Once the lock is dropped, it scans the MAX ORDER NR PAGES-aligned window [start pfn, boundary pfn) locklessly, only to skip the free pages already handled above and to detect in-use pages straddling the boundary. Since this scan only reads page state to decide how far to skip and returns -EBUSY on a straddling in-use page, it does not take the lock.
The window also covers the adjacent pageblock, whose free pages stay on the normal movable/CMA freelist and can be allocated concurrently. So after the scan observes PageBuddy(page), another CPU can allocate the page, leaving a stale value in page->private that makes "1 << order" shift out of range.
Use buddy order unsafe() with READ ONCE to read the order, and validate it is within MAX PAGE ORDER before shifting to prevent UBSAN warnings.
Since pageblock isolate and move free pages() already handles free pages straddling boundary pfn under zone->lock, bail out with -EBUSY instead of VM WARN ON ONCE() when a PageBuddy page appears to cross the boundary during the lockless scan.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾