CVE-2025-38071
x86/mm: Check return value from memblock_phys_alloc_range()
Reported by linux · Published June 18, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3-perf | Amazon Linux | 6.1.141-155.222.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 6.12.31-35.92.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.141-155.222.amzn2023 |
| bpftool | Amazon Linux | 6.1.141-155.222.amzn2023 |
| perf6.12 | Amazon Linux | 6.12.31-35.92.amzn2023 |
| perf | Amazon Linux | 6.1.141-155.222.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.141-155.222.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.141-155.222.amzn2023 |
| kernel | Amazon Linux | 6.1.141-155.222.amzn2023 |
| kernel-livepatch-6.12.31-35.92 | Amazon Linux | 1.0-0.amzn2023 |
| python3-perf6.12 | Amazon Linux | 6.12.31-35.92.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.141-155.222.amzn2023 |
1 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | a7259df7670240ee03b0cfce8a3e5d3773911e24, a7259df7670240ee03b0cfce8a3e5d3773911e24, a7259df7670240ee03b0cfce8a3e5d3773911e24 |
| Linux | Linux | 5.15, 0, 6.1.141 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-livepatch-6.12.31-35.92 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| linux | linux_kernel | 5.15, 5.15, 5.15 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-livepatch-6.1.141-155.222 | 0 |
| Linux | Linux | *, *, * |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.5 |
…and 6 more
Timeline
- Jun 17, 2025 CVE Published
- Jun 18, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (20 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (299 in total, the first dated here)
- Mar 29, 2026 Security Advisory (311 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
- Oct 13, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38071
vulnetix vdb fixes CVE-2025-38071
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38071/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart