{"id":"CVE-2025-38269","summary":"btrfs: exit after state insertion failure at btrfs_convert_extent_bit()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: exit after state insertion failure at btrfs_convert_extent_bit()\n\nIf insert_state() state failed it returns an error pointer and we call\nextent_io_tree_panic() which will trigger a BUG() call. However if\nCONFIG_BUG is disabled, which is an uncommon and exotic scenario, then\nwe fallthrough and call cache_state() which will dereference the error\npointer, resulting in an invalid memory access.\n\nSo jump to the 'out' label after calling extent_io_tree_panic(), it also\nmakes the code more clear besides dealing with the exotic scenario where\nCONFIG_BUG is disabled.","modified":"2026-04-02T12:47:54.046415Z","published":"2025-07-10T07:41:51.846Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38269.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3bf179e36da917c5d9bec71c714573ed1649b7c1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/58c50f45e1821a04d61b62514f9bd34afe67c622"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8d9d32088e304e2bc444a3087cab0bbbd9951866"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38269.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38269"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c91ea4bfa6dda549295ea7c15dfc990094d1fcd3"},{"fixed":"58c50f45e1821a04d61b62514f9bd34afe67c622"},{"fixed":"8d9d32088e304e2bc444a3087cab0bbbd9951866"},{"fixed":"3bf179e36da917c5d9bec71c714573ed1649b7c1"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38269.json"}}],"schema_version":"1.7.5"}