CVE-2026-93172: mm/mm_init: handle alloc_percpu failure in free_area_init_core_hotplug
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
mm/mm_init: handle alloc_percpu failure in free_area_init_core_hotplug
We miss a failed allocation check for pgdat->per_cpu_nodestats, which results in a NULL deref when we offset into the per-cpu area.
Propagate -ENOMEM up the stack and leave per_cpu_nodestats pointing at boot_nodestats so a later online can retry the allocation.
hotadd_init_pgdat() returns NULL on failure, which __try_online_node() already maps to -ENOMEM.
On failure nothing needs to be unwound:
- the node is never marked online
- per_cpu_nodestats is left pointing at boot_nodestats
- __add_memory_resource() cleans up pending memblock resources
- later online attempts retry the per_cpu_nodestats allocation
The Linux kernel CVE team has assigned CVE-2026-93172 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.8 with commit 75ef7184053989118d3814c558a9af62e7376a58 and fixed in 6.12.110 with commit 4cc5caef9a8d1894dfa31d84a0daa0ac1437dadc Issue introduced in 4.8 with commit 75ef7184053989118d3814c558a9af62e7376a58 and fixed in 6.18.52 with commit bc3b5e6519b8df22d622a03eab6772784da97db4 Issue introduced in 4.8 with commit 75ef7184053989118d3814c558a9af62e7376a58 and fixed in 7.2.6 with commit 1017fe1c7f48e511c5a680e3057005daaff2f3a2 Issue introduced in 4.8 with commit 75ef7184053989118d3814c558a9af62e7376a58 and fixed in 7.3-rc1 with commit 2ebce860bdd7ae5e13002811bc9bbbf33fcfc221
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-93172
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
include/linux/memory_hotplug.h
mm/memory_hotplug.c
mm/mm_init.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/4cc5caef9a8d1894dfa31d84a0daa0ac1437dadc https://git.kernel.org/stable/c/bc3b5e6519b8df22d622a03eab6772784da97db4 https://git.kernel.org/stable/c/1017fe1c7f48e511c5a680e3057005daaff2f3a2 https://git.kernel.org/stable/c/2ebce860bdd7ae5e13002811bc9bbbf33fcfc221