# CVE-2025-38269: btrfs: exit after state insertion failure at btrfs_convert_extent_bit()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-07-10T07:41:51.846Z
- Modified: 2026-06-17T09:16:31.210Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from c91ea4bfa6dda549295ea7c15dfc990094d1fcd3 before 58c50f45e1821a04d61b62514f9bd34afe67c622; from c91ea4bfa6dda549295ea7c15dfc990094d1fcd3 before 8d9d32088e304e2bc444a3087cab0bbbd9951866; from c91ea4bfa6dda549295ea7c15dfc990094d1fcd3 before 3bf179e36da917c5d9bec71c714573ed1649b7c1; 6.7 (not affected: before 6.7; from 6.12.34 up to 6.12.*; from 6.15.3 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: before 6.12.34; from 6.13 before 6.15.3

## References

- <https://git.kernel.org/stable/c/58c50f45e1821a04d61b62514f9bd34afe67c622> (patch)
- <https://git.kernel.org/stable/c/8d9d32088e304e2bc444a3087cab0bbbd9951866> (patch)
- <https://git.kernel.org/stable/c/3bf179e36da917c5d9bec71c714573ed1649b7c1> (patch)

## Sources

- CVE List: [CVE-2025-38269](https://www.cve.org/CVERecord?id=CVE-2025-38269), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38269](https://nvd.nist.gov/vuln/detail/CVE-2025-38269), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38269 · Whole record: https://cve.day/CVE-2025-38269.json · Rebuilt by cve.day 2026-11-25T22:59:01.047Z
