Skip to content
Not rated

CVE-2025-38071 x86/mm: Check return value from memblock_phys_alloc_range()

Description

In the Linux kernel, the following vulnerability has been resolved: x86/mm: Check return value from memblock_phys_alloc_range() At least with CONFIG_PHYSICAL_START=0x100000, if there is < 4 MiB of contiguous free memory available at this point, the kernel will crash and burn because memblock_phys_alloc_range() returns 0 on failure, which leads memblock_phys_free() to throw the first 4 MiB of physical memory to the wolves. At a minimum it should fail gracefully with a meaningful diagnostic, but in fact everything seems to work fine without the weird reserve allocation.

Affected products and versions

Product Affected versions Fixed in
Linux 6.15 earliest → < 6.15 6.15
Linux 6.14 earliest → < 6.14.9 6.14.9
Linux 6.12 earliest → < 6.12.31 6.12.31
Linux 6.6 earliest → < 6.6.93 6.6.93
Linux 6.1 earliest → < 6.1.141 6.1.141
Linux 5.15 No fix stated
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP 3.1 3.1.5 → latest No fix stated
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP 3.1 3.1.5 → latest No fix stated
SIPLUS S7-1500 CPU 1518-4 PN/DP MFP 3.1 3.1.5 → latest No fix stated
The 18286 CVEs of Linux →
Track this CVE