PT-2026-166570
CVE-2026-142847
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
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.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾