{"id":"CVE-2026-139430","summary":"btrfs: fix lost error return value in btrfs_alloc_logged_file_extent()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix lost error return value in btrfs_alloc_logged_file_extent()\n\nIf we fail to allocate a reserved file extent we then call\nbtrfs_record_squota_delta() and assign its return value to 'ret',\ndiscarding the error from the failed allocation attempt and allowing\nlog replay to proceed as if no errors happened, resulting in some\nreplayed file extent item to point to an unallocated extent. At the\nmoment btrfs_record_squota_delta() always returns 0 (success).","modified":"2026-11-30T15:02:28.379135016Z","published":"2026-11-30T13:34:40.843Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139430.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/07fdd2be199d565d9551b675f06849e3f063a900"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2efc6bf370d9eea053528af1c51d898964d3bc84"},{"type":"WEB","url":"https://git.kernel.org/stable/c/784cd5a83476c6c720521f21350fb823928555ff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8a38209f9ebe9ec229b25c5db58a89c188554426"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139430.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139430"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"cecbb533b5fcec4ff77e786b7f94457f6cacd9e7"},{"fixed":"07fdd2be199d565d9551b675f06849e3f063a900"},{"fixed":"8a38209f9ebe9ec229b25c5db58a89c188554426"},{"fixed":"2efc6bf370d9eea053528af1c51d898964d3bc84"},{"fixed":"784cd5a83476c6c720521f21350fb823928555ff"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139430.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139430.json"}}],"schema_version":"1.9.2"}