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 ac->preferred_zoneref, need that single load.
https://git.kernel.org/stable/c/e3f7bb9c121eb5601639dc15790f152d5a628f74
https://git.kernel.org/stable/c/9d0efb88f6b425dc6f2c1bd437f552781858b40c
https://git.kernel.org/stable/c/9c52ebe9c89d41c56fcb5d94efe9e539414175a9
https://git.kernel.org/stable/c/502e1497694cfc1f446b991b105bf06fcd664158
https://git.kernel.org/stable/c/36677752d17ca2f8f37f51fedf7a0b7793441b30
https://git.kernel.org/stable/c/03568df8fcac0c2a9dda78fcf00766c968a4f062