Vulnerability record
mm/mmzone: read the zoneref slot once in zonelist_zone()
In the Linux kernel, the following vulnerability has been resolved:
mm/mmzone: read the zoneref slot once in zonelist_zone()
Memory hotplug rebuilds zonelists in place while allocations walk them, so a zoneref slot can change between two loads of it.
zonelist_zone() loads the slot with a plain access. The compiler may load it again later instead of keeping the zone it already read, so a caller can check one zone and then use another, or the NULL terminator.
Use READ_ONCE(). Callers that take a zone from a slot and keep using it, such as get_page_from_freelist() with…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources