CVE-2025-38269 btrfs: exit after state insertion failure at btrfs_convert_extent_bit()
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- Linux KernelUbuntuDebian
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.
Upgrade path
8 packages: 5 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux kernel(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| cbl-mariner kernel(CBL-Mariner 2.0) | All versions | No fix listed | No fix yet |
| Microsoft cbl2 kernel 5.15.202.1-1 | All versions | No fix listed | No fix yet |
| debian/linux(Debian 13) | < 6.12.35-1 | 6.12.35-1 | Fixed |
| debian/linux(Debian 14) | < 6.12.35-1 | 6.12.35-1 | Fixed |
| Linux kernel | < 6.12.34; < 6.15.3; < 6.16; = 6.7 +4 more | 3bf179e36da917c5d9bec71c714573ed1649b7c1, 6.12.34, 6.15.3, 6.16, 8d9d32088e304e2bc444a3087cab0bbbd9951866, 58c50f45e1821a04d61b62514f9bd34afe67c622 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-100.100 | 6.8.0-100.100 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1047.51 | 6.8.0-1047.51 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux kernel(Azure Linux:3.0) | All versions | No fix listed |
| cbl-mariner kernel(CBL-Mariner:2.0) | All versions | No fix listed |
| Microsoft cbl2 kernel 5.15.202.1-1 | All versions | No fix listed |
| debian/linux(Debian:13) | < 6.12.35-1 | 6.12.35-1 |
| debian/linux(Debian:14) | < 6.12.35-1 | 6.12.35-1 |
| Linux kernel | >= c91ea4bfa6dda549295ea7c15dfc990094d1fcd3, < 58c50f45e1821a04d61b62514f9bd34afe67c622 | 58c50f45e1821a04d61b62514f9bd34afe67c622 |
| Linux kernel | >= c91ea4bfa6dda549295ea7c15dfc990094d1fcd3, < 8d9d32088e304e2bc444a3087cab0bbbd9951866 | 8d9d32088e304e2bc444a3087cab0bbbd9951866 |
| Linux kernel | >= c91ea4bfa6dda549295ea7c15dfc990094d1fcd3, < 3bf179e36da917c5d9bec71c714573ed1649b7c1 | 3bf179e36da917c5d9bec71c714573ed1649b7c1 |
| Linux kernel | = 6.7 | No fix listed |
| Linux kernel | < 6.12.34 | 6.12.34 |
| Linux kernel | < 6.15.3 | 6.15.3 |
| Linux kernel | < 6.16 | 6.16 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-100.100 | 6.8.0-100.100 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1047.51 | 6.8.0-1047.51 |
| Linux kernel | >= 6.13, < 6.15.3 | 6.15.3 |
References
- MSRC Security Update Guide vendor-advisory
- Release Notes patch vendor-advisory
- Debian Security Tracker CVE-2025-38269 vendor-advisory
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- Ubuntu CVE tracker vendor-advisory
- USN-7769-1 vendor-advisory
- USN-7770-1 vendor-advisory
- USN-7771-1 vendor-advisory
- USN-7769-2 vendor-advisory
- USN-7769-3 vendor-advisory
- USN-7789-1 vendor-advisory
- USN-7789-2 vendor-advisory
- USN-8028-1 vendor-advisory
- USN-8028-2 vendor-advisory
- USN-8031-1 vendor-advisory
- USN-8028-3 vendor-advisory
- USN-8028-4 vendor-advisory
- USN-8028-5 vendor-advisory
- USN-8031-2 vendor-advisory
- USN-8028-6 vendor-advisory
- USN-8031-3 vendor-advisory
- USN-8052-1 vendor-advisory
- USN-8028-7 vendor-advisory
- USN-8028-8 vendor-advisory
- USN-8052-2 vendor-advisory
- USN-8074-1 vendor-advisory
- USN-8074-2 vendor-advisory
- USN-8126-1 vendor-advisory
- www.cve.org