In the Linux kernel, the following vulnerability has been resolved:
btrfs: zoned: don't wait for ordered extents in do_zone_finish()
do_zone_finish() calls btrfs_wait_ordered_roots(), which holds fs_info->ordered_operations_mutex while waiting for writeback. It can be reached from writeback itself:
cow_file_range()
-> btrfs_reserve_extent() -> find_free_extent()
-> btrfs_zone_finish_one_bg() -> do_zone_finish()
If another task holds the mutex and waits for that writeback, this deadlocks.
In general, we want to ensure all writes in the block group to complete before finishing the zone, as relocation does. However, the current callers do not need the wait (or cannot wait) in do_zone_finish():
Dropping the wait is still safe. Once the block group is read-only, ->reserved can only drop, and for data it only drops after the ordered extent's I/O has completed. So if ->reserved is zero, no data write is left in flight. If it is non-zero, do_zone_finish() returns -EAGAIN, which all callers handle.
This makes btrfs_zone_finish_one_bg() fail with -EAGAIN when it races with an allocation in the selected block group.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143241.json"
}