CVE-2026-143241

Not scored yetLast modified Dec 3, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143242In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: fix possible UAF in wait_eb_writebacks() wait_eb_writebaCVE-2026-143243In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: only change active zone counter on successful (de)activatCVE-2026-143244In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: amd: guard adata->sdw dereferences with NULL check in IRQ haCVE-2026-143245In the Linux kernel, the following vulnerability has been resolved: ASoC: qcom: x1e80100: recreate the headset jack on card rebind The heaCVE-2026-143246In the Linux kernel, the following vulnerability has been resolved: gpiolib: fix GPIO descriptor leak in gpiod_get_array() In gpiod_get_arCVE-2026-143247In the Linux kernel, the following vulnerability has been resolved: drm/xe/svm: Preserve default PAT index when resetting VMA attributes xCVE-2026-143248In the Linux kernel, the following vulnerability has been resolved: drm/xe: Rebind BOs evicted before the first LR queue A VM bind can eviCVE-2026-143249In the Linux kernel, the following vulnerability has been resolved: drm/xe/gt: Disable GT reset worker before engine teardown During tear-CVE-2026-143253.5The Drag and Drop Multiple File Upload for Contact Form 7 WordPress plugin before 1.3.9.9 does not escape one of its settings before using iCVE-2026-143250In the Linux kernel, the following vulnerability has been resolved: drm/xe/guc: Protect timeout handling from device unplug The GuC scheduCVE-2026-143251In the Linux kernel, the following vulnerability has been resolved: drm/xe: Prevent VF memory IRQ from accessing a torn-down engine The VFCVE-2026-143252In the Linux kernel, the following vulnerability has been resolved: tracing/probes: bound symstr stores to reserved length Traceprobe calc
CVE-2026-143241: Unscored | Vulnix