PT-2026-167099

CVE-2026-143241

·

Published

2026-12-03

·

Updated

2026-12-03

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

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():
  • Relocation already waits for reservations and ordered extents itself before calling btrfs zone finish().
  • btrfs delete unused bgs() checks that ->reserved is zero and sets the block group read-only while holding groups sem, so there can be no in-flight data write.
  • btrfs zone finish one bg() is called from the allocation path and cannot wait.
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.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾