Skip to main content
VulnerabilityPublished

CVE-2026-143241: Linux kernel · btrfs: zoned: don't wait for ordered extents in do_zone_finish()

Affects Linux kernelSource CVE Database V5

0
Compare

Not known to be exploited · fixed in d87f8bd1c92559fbd945ba7a202d0013c6436372 : update Linux kernel when convenient.

Data as of 3 Dec 2026, 09:45 UTC

Severity
Unrated

Rated by Threat Radar · CVSS not yet scored by NVD

Thin evidence

One scorer or none
Patch
Available – fixed in d87f8bd1c92559fbd945ba7a202d0013c6436372, bd1e6c8aacf49c9198ebe0664cc292052e597a43, bcad7df05237382237ad1517411721d839174009 +3

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
LinuxLinuxAffected
  • >=5.18.18 <5.19
  • >=5.19.2 <5.20
Fixed in
  • d87f8bd1c92559fbd945ba7a202d0013c6436372
  • bd1e6c8aacf49c9198ebe0664cc292052e597a43
  • bcad7df05237382237ad1517411721d839174009
  • b9d98dbc30312db7eeb77f4ed46af9573f17bc93
  • 5.20
  • 5.19
LinuxLinuxAffected
  • =6.0
Fixed in–

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.

References

Community reviews

Loading reviews…