Description
In the Linux kernel, the following vulnerability has been resolved: mm/page_alloc: snapshot the preferred zone against shrink rebuilds get_page_from_freelist() and alloc_pages_bulk_noprof() reread ac->preferred_zoneref->zone at every use. Offlining a zone's last block rebuilds the zonelists in place, and the shrunk list's NULL terminator can land on the preferred slot mid-walk: CPU 0 CPU 1 get_page_from_freelist(GFP_KERNEL | __GFP_THISNODE) zone = NORMAL (slot 1) offline_pages() build_all_zonelists() [MOVABLE, NORMAL, NULL] -> [NORMAL, NULL] rmqueue(zonelist_zone(slot 1), zone) zone_statistics(NULL, zone) BUG: kernel NULL pointer dereference, address: 0000000000000060 RIP: 0010:get_page_from_freelist+0x6a5/0x15f0 Call Trace: __alloc_frozen_pages_noprof+0x125/0x330 Read the slot once. Zones are never freed, so a stale zone is safe, and a NULL slot fails the same way as walking off the end.
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
11cd8638c37f6c400cc472cc52b6eccb505aba6e to < 9712d8a83ed5d0b5f82a54a507e6c3edbb7f31deaffected11cd8638c37f6c400cc472cc52b6eccb505aba6e to < bb9ead495018bd31ae8d42b6a284e5f4dedcccbaaffected11cd8638c37f6c400cc472cc52b6eccb505aba6e to < b3e3a760eb68449e2794ef68ab212173d9c3e8c7affected
Linux Linux
Default version status: affected
4.14affected0 to < 4.14unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected