{"id":"CVE-2025-38364","published":"2025-07-25T12:47:34Z","modified":"2026-11-05T21:02:35Z","title":"maple_tree: fix MA_STATE_PREALLOC flag in mas_preallocate()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmaple_tree: fix MA_STATE_PREALLOC flag in mas_preallocate()\n\nTemporarily clear the preallocation flag when explicitly requesting\nallocations.  Pre-existing allocations are already counted against the\nrequest through mas_node_count_gfp(), but the allocations will not happen\nif the MA_STATE_PREALLOC flag is set.  This flag is meant to avoid\nre-allocating in bulk allocation mode, and to detect issues with\npreallocation calculations.\n\nThe MA_STATE_PREALLOC flag should also always be set on zero allocations\nso that detection of underflow allocations will print a WARN_ON() during\nconsumption.\n\nUser visible effect of this flaw is a WARN_ON() followed by a null pointer\ndereference when subsequent requests for larger number of nodes is\nignored, such as the vma merge retry in mmap_region() caused by drivers\naltering the vma flags (which happens in v6.6, at least)","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00265,"percentile":0.11385,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/d69cd64bd5af41c6fd409313504089970edaf02f","tags":[]},{"url":"https://git.kernel.org/stable/c/e63032e66bca1d06e600033f3369ba3db3af0870","tags":[]},{"url":"https://git.kernel.org/stable/c/cf95f8426f889949b738f51ffcd72884411f3a6a","tags":[]},{"url":"https://git.kernel.org/stable/c/9e32f4700867abbd5d19abfcf698dbd0d2ce36a4","tags":[]},{"url":"https://git.kernel.org/stable/c/fba46a5d83ca8decb338722fb4899026d8d9ead2","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[]}],"priority":{"score":2.3,"factors":[{"name":"EPSS percentile","points":2.28}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, < d69cd64bd5af41c6fd409313504089970edaf02f",">= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, < e63032e66bca1d06e600033f3369ba3db3af0870",">= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, < cf95f8426f889949b738f51ffcd72884411f3a6a",">= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, < 9e32f4700867abbd5d19abfcf698dbd0d2ce36a4",">= 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa, < fba46a5d83ca8decb338722fb4899026d8d9ead2"]},{"vendor":"Linux","product":"Linux","versions":["6.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-05T20:55:34.394930Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-22639","exploited":false,"provenance":"source"}}