CVE-2025-38364
maple_tree: fix MA_STATE_PREALLOC flag in mas_preallocate()
Reported by linux · Published July 25, 2025
In the Linux kernel, the following vulnerability has been resolved: maple_tree: fix MA_STATE_PREALLOC flag in mas_preallocate() Temporarily clear the preallocation flag when explicitly requesting allocations. Pre-existing allocations are already counted against the request through mas_node_count_gfp(), but the allocations will not happen if the MA_STATE_PREALLOC flag is set. This flag is meant to avoid re-allocating in bulk allocation mode, and to detect issues with preallocation calculations. The MA_STATE_PREALLOC flag should also always be set on zero allocations so that detection of underflow allocations will print a WARN_ON() during consumption. User visible effect of this flaw is a WARN_ON() followed by a null pointer dereference when subsequent requests for larger number of nodes is ignored, such as the vma merge retry in mmap_region() caused by drivers altering the vma flags (which happens in v6.6, at least)
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| Linux | Linux | fba46a5d83ca8decb338722fb4899026d8d9ead2, e63032e66bca1d06e600033f3369ba3db3af0870, d69cd64bd5af41c6fd409313504089970edaf02f, cf95f8426f889949b738f51ffcd72884411f3a6a, 9e32f4700867abbd5d19abfcf698dbd0d2ce36a4, 6.1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa |
| Linux | Linux | 6.1, 0, 6.1.146 |
| amazon:2023 | perf | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.5 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| Linux | Linux | 6.12.36, 6.6.99, 6.1.146 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel-tools | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.5 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel-devel | 0 |
…and 15 more
Timeline
- Jul 25, 2025 CVE Published
- Jul 26, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (10 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (207 in total, the first dated here)
- Mar 29, 2026 Security Advisory (223 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38364
vulnetix vdb fixes CVE-2025-38364
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-38364/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart