5.5medium
x86/mm: Check return value from memblock_phys_alloc_range()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.21% (higher than 11% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from a7259df7670240ee03b0cfce8a3e5d3773911e24 before 8c18c904d301ffeb33b071eadc55cd6131e1e9be, from a7259df7670240ee03b0cfce8a3e5d3773911e24 before bffd5f2815c5234d609725cd0dc2f4bc5de2fc67, from a7259df7670240ee03b0cfce8a3e5d3773911e24 before c6f2694c580c27dca0cf7546ee9b4bfa6b940e38, from a7259df7670240ee03b0cfce8a3e5d3773911e24 before dde4800d2b0f68b945fd81d4fc2d4a10ae25f743, from a7259df7670240ee03b0cfce8a3e5d3773911e24 before 631ca8909fd5c62b9fda9edda93924311a78a9c4, 5.15 Not affected: before 5.15, from 6.1.141 up to 6.1.*, from 6.6.93 up to 6.6.*, from 6.12.31 up to 6.12.*, from 6.14.9 up to 6.14.*, from 6.15 up to * | CVE List |
| linux linux_kernel | before 6.1.141, from 6.2 before 6.6.93, from 6.7 before 6.12.31, from 6.13 before 6.14.9 | NVD |
| debian debian_linux | 11.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: x86/mm: Verificar el valor de retorno de memblock_phys_alloc_range(). Al menos con CONFIG_PHYSICAL_START=0x100000, si hay < 4 MiB de memoria libre contigua disponible en este punto, el kernel se bloqueará porque memblock_phys_alloc_range() devuelve 0 en caso de fallo, lo que provoca que memblock_phys_free() descarte los primeros 4 MiB de memoria física. Como mínimo, debería fallar correctamente con un diagnóstico significativo, pero de hecho todo parece funcionar correctamente sin la extraña asignación de reserva.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-38071 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2025-38071 changed 2026-11-05 | Public domain |