{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38364","id":"CVE-2025-38364","title":"maple_tree: fix MA_STATE_PREALLOC flag in mas_preallocate()","description":"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","descriptionLong":"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)","published":"2025-07-25T12:47:34.548Z","updated":"2026-11-07T02:30:27.159460196Z","reserved":"2025-04-16T04:51:24.008Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"54a611b605901c7d5d05b6b8f5d04a6ceb0962aa","lessThan":"d69cd64bd5af41c6fd409313504089970edaf02f","status":"affected","versionType":"git"},{"version":"54a611b605901c7d5d05b6b8f5d04a6ceb0962aa","lessThan":"e63032e66bca1d06e600033f3369ba3db3af0870","status":"affected","versionType":"git"},{"version":"54a611b605901c7d5d05b6b8f5d04a6ceb0962aa","lessThan":"cf95f8426f889949b738f51ffcd72884411f3a6a","status":"affected","versionType":"git"},{"version":"54a611b605901c7d5d05b6b8f5d04a6ceb0962aa","lessThan":"9e32f4700867abbd5d19abfcf698dbd0d2ce36a4","status":"affected","versionType":"git"},{"version":"54a611b605901c7d5d05b6b8f5d04a6ceb0962aa","lessThan":"fba46a5d83ca8decb338722fb4899026d8d9ead2","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1","status":"affected"},{"version":"0","lessThan":"6.1","status":"unaffected","versionType":"semver"},{"version":"6.1.146","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.99","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.36","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.5","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/d69cd64bd5af41c6fd409313504089970edaf02f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e63032e66bca1d06e600033f3369ba3db3af0870","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/cf95f8426f889949b738f51ffcd72884411f3a6a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9e32f4700867abbd5d19abfcf698dbd0d2ce36a4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fba46a5d83ca8decb338722fb4899026d8d9ead2","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Third Party Advisory","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38364.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38364","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00189,"epssPercentile":0.08743,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38364","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38364","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38364","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38364","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}