x86/mm: Check return value from memblock_phys_alloc_range()
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.
CVE-2025-38071
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2025-38071
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "a7259df7670240ee03b0cfce8a3e5d3773911e24",
"lessThan": "8c18c904d301ffeb33b071eadc55cd6131e1e9be",
"versionType": "git"
},
{
"status": "affected",
"version": "a7259df7670240ee03b0cfce8a3e5d3773911e24",
"lessThan": "bffd5f2815c5234d609725cd0dc2f4bc5de2fc67",
"versionType": "git"
},
{
"status": "affected",
"version": "a7259df7670240ee03b0cfce8a3e5d3773911e24",
"lessThan": "c6f2694c580c27dca0cf7546ee9b4bfa6b940e38",
"versionType": "git"
},
{
"status": "affected",
"version": "a7259df7670240ee03b0cfce8a3e5d3773911e24",
"lessThan": "dde4800d2b0f68b945fd81d4fc2d4a10ae25f743",
"versionType": "git"
},
{
"status": "affected",
"version": "a7259df7670240ee03b0cfce8a3e5d3773911e24",
"lessThan": "631ca8909fd5c62b9fda9edda93924311a78a9c4",
"versionType": "git"
}
],
"programFiles": [
"arch/x86/mm/init.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.15"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.15",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.1.141",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.93",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.31",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.14.9",
"versionType": "semver",
"lessThanOrEqual": "6.14.*"
},
{
"status": "unaffected",
"version": "6.15",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"arch/x86/mm/init.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2025-38071
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #27013 · Revision 1
- Added to Heist Feed
- Publisher date