mm/mm_init: fix uninitialized struct pages for ZONE_DEVICE
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6fd3620b342861de9547ea01d28f664892ef51a1 · < cd681403a87085562499d60325b7b45d3be11217| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mm/mm_init: fix uninitialized struct pages for ZONE_DEVICE
If DAX memory is hotplugged into an unoccupied subsection of an early section, section_activate() reuses the unoptimized boot memmap. However, compound_nr_pages() still assumes that vmemmap optimization is in effect and initializes only the reduced number of struct pages. As a result, the remaining tail struct pages are left uninitialized, which can later lead to unexpected behavior or crashes.
Fix this by treating early sections as unoptimized when calculating how many struct pages to initialize.
From the CVE record · Linux
The Linux kernel can leave some ZONE_DEVICE struct pages uninitialized when DAX memory is hotplugged into an unoccupied subsection of an early section. This can later cause unexpected behavior or crashes. The input does not describe an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels that hotplug DAX memory should check their systems; affected versions are not specified.