CVE-2025-38269 Details
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: exit after state insertion failure at btrfs_convert_extent_bit() If insert_state() state failed it returns an error pointer and we call extent_io_tree_panic() which will trigger a BUG() call. However if CONFIG_BUG is disabled, which is an uncommon and exotic scenario, then we fallthrough and call cache_state() which will dereference the error pointer, resulting in an invalid memory access. So jump to the 'out' label after calling extent_io_tree_panic(), it also makes the code more clear besides dealing with the exotic scenario where CONFIG_BUG is disabled.
A vulnerability in the Linux kernel's Btrfs file system has been addressed. The issue arose when the 'insert_state()' function failed, returning an error pointer. This error was then passed to 'extent_io_tree_panic()', triggering a BUG() call. In scenarios where 'CONFIG_BUG' is disabled, this could lead to an invalid memory access by dereferencing the error pointer. The vulnerability has been resolved by modifying the code to skip the problematic state insertion and directly handle the error, preventing the invalid memory access.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References 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/3bf179e36da917c5d9bec71c714573ed1649b7c1 | kernel.org | Patch |
| https://git.kernel.org/stable/c/58c50f45e1821a04d61b62514f9bd34afe67c622 | kernel.org | Patch |
| https://git.kernel.org/stable/c/8d9d32088e304e2bc444a3087cab0bbbd9951866 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | < 6.12.34 >= 6.13, < 6.15.3 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 20, 2025 | Initial Analysis | [email protected] |
| Jul 10, 2025 | New CVE Received | kernel.org |