VDB

CVE-2025-38071

CVE-2025-38071 PUBLISHED

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.

PackageEcosystemFixed in
python3-perfAmazon Linux6.1.141-155.222.amzn2023
kernel6.12-modules-extraAmazon Linux6.12.31-35.92.amzn2023
kernel-toolsAmazon Linux6.1.141-155.222.amzn2023
bpftoolAmazon Linux6.1.141-155.222.amzn2023
perf6.12Amazon Linux6.12.31-35.92.amzn2023
perfAmazon Linux6.1.141-155.222.amzn2023
kernel-modules-extra-commonAmazon Linux6.1.141-155.222.amzn2023
kernel-develAmazon Linux6.1.141-155.222.amzn2023
kernelAmazon Linux6.1.141-155.222.amzn2023
kernel-livepatch-6.12.31-35.92Amazon Linux1.0-0.amzn2023
python3-perf6.12Amazon Linux6.12.31-35.92.amzn2023
kernel-tools-develAmazon Linux6.1.141-155.222.amzn2023

1 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
LinuxLinuxa7259df7670240ee03b0cfce8a3e5d3773911e24, a7259df7670240ee03b0cfce8a3e5d3773911e24, a7259df7670240ee03b0cfce8a3e5d3773911e24
LinuxLinux5.15, 0, 6.1.141
amazon:2023python3-perf0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-tools0
amazon:2023bpftool0
amazon:2023perf6.120
amazon:2023perf0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-devel0
amazon:2023kernel0
amazon:2023kernel-livepatch-6.12.31-35.920
amazon:2023python3-perf6.120
amazon:2023kernel-tools-devel0
amazon:2023kernel-libbpf0
linuxlinux_kernel5.15, 5.15, 5.15
amazon:2023kernel-libbpf-static0
amazon:2023kernel-livepatch-6.1.141-155.2220
LinuxLinux*, *, *
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›