Description
In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: initialize gigantic bootmem hugepage struct pages earlier Gigantic bootmem HugeTLB pages are currently initialized from hugetlb_init(), but page_alloc_init_late() runs earlier and walks pageblocks to determine zone contiguity. If a bootmem HugeTLB region is marked noinit, set_zone_contiguous() can observe still-uninitialized struct pages through __pageblock_pfn_to_page(). This may not trigger an immediate failure, but it can make set_zone_contiguous() compute the wrong zone contiguity state. If extra poisoned-page checks are added in this path, such as PF_POISONED_CHECK() in page_zone_id(), it can also trigger an early boot panic. Initialize gigantic bootmem HugeTLB struct pages from page_alloc_init_late(), before zone contiguity is evaluated, so later page allocator setup only sees valid struct page state. This also makes the initialization order more natural, as struct pages should be initialized before later code inspects them.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
fde1c4ecf91640e5a95ec36b71ec2e8ec379ce40 to < 326de479ab5942fb4a4aa4f20c716045434fcd6baffectedfde1c4ecf91640e5a95ec36b71ec2e8ec379ce40 to < 09505232eced5f1c42902d8f28740f070c3fc6dcaffectedfde1c4ecf91640e5a95ec36b71ec2e8ec379ce40 to < 29968bc7aefb3cf1e72aa7c5f52697a6b0527094affectedfde1c4ecf91640e5a95ec36b71ec2e8ec379ce40 to < b1b7c045e808c761b1cc8c19b3040fadedda3fefaffected
Linux Linux
Default version status: affected
6.7affected0 to < 6.7unaffected6.12.114 to ≤ 6.12.*unaffected6.18.51 to ≤ 6.18.*unaffected7.2.4 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected