EnvMap GitHub

CVE-2026-143241

btrfs: zoned: don't wait for ordered extents in do_zone_finish()

Not scored yetEPSS 0.17%Received

Description

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.

In the words of the organisation that published it (Linux).

Affected

  • Linux: from 393f646e34c18b85d0f41272bfcbd475ae3a0d34 before d87f8bd1c92559fbd945ba7a202; from 393f646e34c18b85d0f41272bfcbd475ae3a0d34 before b9d98dbc30312db7eeb77f4ed46; from 393f646e34c18b85d0f41272bfcbd475ae3a0d34 before bd1e6c8aacf49c9198ebe0664cc; from 393f646e34c18b85d0f41272bfcbd475ae3a0d34 before bcad7df05237382237ad1517411; 6.0

as the publisher (Linux) lists them.

Likelihood of exploitation

FIRST's EPSS gives a 0.17% chance of exploitation in the next 30 days, higher than 6% of all CVEs (as of 4 December 2026).

References

Record

Published10:18 UTC, 3 December 2026
Last changed10:18 UTC, 3 December 2026
NVD statusReceived
Published byLinux

CVE-2026-143241 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.