# CVE-2026-139430: btrfs: fix lost error return value in btrfs_alloc_logged_file_extent()

- Severity: not scored yet
- 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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:34:40.843Z
- Modified: 2026-11-30T14:19:12.953Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

btrfs: fix lost error return value in btrfs_alloc_logged_file_extent()

If we fail to allocate a reserved file extent we then call
btrfs_record_squota_delta() and assign its return value to 'ret',
discarding the error from the failed allocation attempt and allowing
log replay to proceed as if no errors happened, resulting in some
replayed file extent item to point to an unallocated extent. At the
moment btrfs_record_squota_delta() always returns 0 (success).

(As written by CVE List.)

## Affected

- Linux Linux: from cecbb533b5fcec4ff77e786b7f94457f6cacd9e7 before 07fdd2be199d565d9551b675f06849e3f063a900; from cecbb533b5fcec4ff77e786b7f94457f6cacd9e7 before 8a38209f9ebe9ec229b25c5db58a89c188554426; from cecbb533b5fcec4ff77e786b7f94457f6cacd9e7 before 2efc6bf370d9eea053528af1c51d898964d3bc84; from cecbb533b5fcec4ff77e786b7f94457f6cacd9e7 before 784cd5a83476c6c720521f21350fb823928555ff; 6.7 (not affected: before 6.7; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/07fdd2be199d565d9551b675f06849e3f063a900>
- <https://git.kernel.org/stable/c/8a38209f9ebe9ec229b25c5db58a89c188554426>
- <https://git.kernel.org/stable/c/2efc6bf370d9eea053528af1c51d898964d3bc84>
- <https://git.kernel.org/stable/c/784cd5a83476c6c720521f21350fb823928555ff>

## Sources

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

---

Page: https://cve.day/CVE-2026-139430 · Whole record: https://cve.day/CVE-2026-139430.json · Rebuilt by cve.day 2026-11-30T14:33:24.125Z
