Skip to content
Heist/ feed
Unrated

maple_tree: fix MA_STATE_PREALLOC flag in mas_preallocate()

Type: advisorySource: Official CVE List1 source record

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)

Announced Group revision 1
Original source ↗

CVE-2025-38364

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-38364

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "54a611b605901c7d5d05b6b8f5d04a6ceb0962aa",
        "lessThan": "d69cd64bd5af41c6fd409313504089970edaf02f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "54a611b605901c7d5d05b6b8f5d04a6ceb0962aa",
        "lessThan": "e63032e66bca1d06e600033f3369ba3db3af0870",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "54a611b605901c7d5d05b6b8f5d04a6ceb0962aa",
        "lessThan": "cf95f8426f889949b738f51ffcd72884411f3a6a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "54a611b605901c7d5d05b6b8f5d04a6ceb0962aa",
        "lessThan": "9e32f4700867abbd5d19abfcf698dbd0d2ce36a4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "54a611b605901c7d5d05b6b8f5d04a6ceb0962aa",
        "lessThan": "fba46a5d83ca8decb338722fb4899026d8d9ead2",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "lib/maple_tree.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.1"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.1",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.1.146",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.99",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.36",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.15.5",
        "versionType": "semver",
        "lessThanOrEqual": "6.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.16",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "lib/maple_tree.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-38364

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#27035 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement