btrfs: fix lost error return value in btrfs_alloc_logged_file_extent()

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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

ProductVersions
Linux Linuxcecbb533b5fcec4ff77e786b7f94457f6cacd9e7 to before 07fdd2be199d565d9551b675f06849e3f063a900 Affectedcecbb533b5fcec4ff77e786b7f94457f6cacd9e7 to before 8a38209f9ebe9ec229b25c5db58a89c188554426 Affectedcecbb533b5fcec4ff77e786b7f94457f6cacd9e7 to before 2efc6bf370d9eea053528af1c51d898964d3bc84 Affectedcecbb533b5fcec4ff77e786b7f94457f6cacd9e7 to before 784cd5a83476c6c720521f21350fb823928555ff Affected
Linux Linux6.7 Affectedbefore 6.7 Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.