CVE-2025-40101 Details
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix memory leaks when rejecting a non SINGLE data profile without an RST At the end of btrfs_load_block_group_zone_info() the first thing we do is to ensure that if the mapping type is not a SINGLE one and there is no RAID stripe tree, then we return early with an error. Doing that, though, prevents the code from running the last calls from this function which are about freeing memory allocated during its run. Hence, in this case, instead of returning early, we set the ret value and fall through the rest of the cleanup code.
A memory leak vulnerability has been addressed in the Linux kernel's Btrfs file system. The issue arises in the function 'btrfs_load_block_group_zone_info()' when a non-SINGLE data profile is encountered without an associated RAID stripe tree. The function initially returns an error, but this early exit prevents the execution of necessary memory cleanup operations. The vulnerability has been fixed by modifying the error handling to allow the cleanup process to complete, thereby preventing the memory leak.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched version are available on the official Linux kernel website.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/187333e6d484c6630286bfdd07c79d6815a63887 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/602701d00439e113331ee9c1283e95afdcb8849d | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/fec9b9d3ced39f16be8d7afdf81f4dd2653da319 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 30, 2025 | New CVE Received | kernel.org |
Volerion