VDB

CVE-2025-38364

CVE-2025-38364 PUBLISHED

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.

PackageEcosystemFixed in
perfAmazon Linux1:6.1.147-172.266.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.147-172.266.amzn2023
kernel-libbpf-staticAmazon Linux1:6.1.147-172.266.amzn2023
LinuxLinuxfba46a5d83ca8decb338722fb4899026d8d9ead2, e63032e66bca1d06e600033f3369ba3db3af0870, d69cd64bd5af41c6fd409313504089970edaf02f, cf95f8426f889949b738f51ffcd72884411f3a6a, 9e32f4700867abbd5d19abfcf698dbd0d2ce36a4, 6.1

Affected products

VendorProductVersions
LinuxLinux54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa
LinuxLinux6.1, 0, 6.1.146
amazon:2023perf0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.5
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-libbpf-static0
LinuxLinux6.12.36, 6.6.99, 6.1.146
amazon:2023kernel-modules-extra0
amazon:2023kernel6.12-libbpf0
amazon:2023kernel-headers0
amazon:2023kernel6.12-tools0
amazon:2023kernel-tools0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.5
amazon:2023python3-perf6.120
amazon:2023bpftool0
amazon:2023python3-perf0
amazon:2023kernel6.120
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-headers0
amazon:2023kernel-devel0

…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

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