CVE-2025-38364: maple_tree: fix MA_STATE_PREALLOC flag in mas_preallocate()

Published Jul 25, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

mapletree: fix MASTATEPREALLOC flag in maspreallocate()

Temporarily clear the preallocation flag when explicitly requesting allocations. Pre-existing allocations are already counted against the request through masnodecountgfp(), but the allocations will not happen if the MASTATEPREALLOC flag is set. This flag is meant to avoid re-allocating in bulk allocation mode, and to detect issues with preallocation calculations.

The MASTATEPREALLOC flag should also always be set on zero allocations so that detection of underflow allocations will print a WARNON() during consumption.

User visible effect of this flaw is a WARNON() followed by a null pointer dereference when subsequent requests for larger number of nodes is ignored, such as the vma merge retry in mmapregion() caused by drivers altering the vma flags (which happens in v6.6, at least)

Affected Software

9 affected components
Linux Linux kernel>=6.6
Linux Linux kernel>=6.1<6.1.146
Linux Linux kernel>=6.2<6.6.99
Linux Linux kernel>=6.7<6.12.36
Linux Linux kernel>=6.13<6.15.5
Linux Linux kernel=6.16-rc1
Linux Linux kernel=6.16-rc2
Linux Linux kernel=6.16-rc3
Debian Debian Linux=11.0

Event History

Jul 25, 2025
CVE Published
via MITRE·12:47 PM
Data Sourced
via MITRE·12:47 PM
Description
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38364?

CVE-2025-38364 has not been assigned a severity score yet by the National Vulnerability Database.

2

How do I fix CVE-2025-38364?

To fix CVE-2025-38364, update the Linux kernel to version 6.6 or later.

3

What types of systems are affected by CVE-2025-38364?

CVE-2025-38364 affects systems running the Linux kernel version 6.6 and earlier versions.

4

What component of the Linux kernel does CVE-2025-38364 involve?

CVE-2025-38364 involves the maple_tree implementation and its allocation process.

5

Is there a workaround for CVE-2025-38364?

The recommended action for CVE-2025-38364 is to apply the patch or upgrade the kernel, as no specific workaround has been provided.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203