UBUNTU-CVE-2026-74572: High severity ubuntu/linux-hwe-edge vulnerability
In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: fix deadlock between metadata writeback and transaction commit When writing out metadata extent buffers in a zoned filesystem, btreewritepages() holds fsinfo->zonedmetaiolock across the whole writeback loop, including the call to btrfscheckmetawritepointer() -> checkbgisactive(). For the tree-log block group, checkbgisactive() may fail to activate the zone and fall back to btrfszonefinishonebg() to free an active zone. That path waits for the running transaction to commit while still holding zonedmetaiolock, but the committer needs that same lock to write out the tree extents, so the two tasks deadlock: Task A (kworker, metadata writeback) Task B (fsstress, transaction commit) ------------------------------------ ------------------------------------- wbworkfn() btrfscommittransaction(T) btreewritepages() btrfswriteandwaittransaction() btrfszonedmetaiolock() btrfswritemarkedextents() btrfscheckmetawritepointer() btreewritepages() checkbgisactive() [treelogbg] btrfszonedmetaiolock() btrfszonefinishonebg() <blocks on zonedmetaiolock, btrfszonefinish() held by Task A> dozonefinish() btrfsincblockgroupro() btrfswaitforcommit() <blocks waiting for commit of transaction T, done by Task B> The sibling branch in checkbgisactive() already drops zonedmetaiolock around dozonefinish() for this exact reason. Do the same in the tree-log branch: release the lock around btrfszonefinishonebg() and re-acquire it afterwards. The lock only protects fsinfo->active{meta,system}bg, which this branch does not touch, and ctx->zonedbg keeps a reference to the block group across the unlock, so nothing is lost while the lock is dropped. This hang occasionally reproduces with fstests generic/475 on a zoned btrfs filesystem.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-nvidia-tegrato a version that resolves this vulnerability.Fixed in 6.8.0-1036.39 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Compensating control
In the tree-log branch, release fs_info->zoned_meta_io_lock around btrfs_zone_finish_one_bg() and re-acquire it afterwards.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The issue affects the listed Ubuntu kernel packages when they are used with a zoned Btrfs filesystem. The deadlock scenario specifically involves metadata writeback, transaction commit activity, and the tree-log block group.
What is the impact if the deadlock occurs?
Metadata writeback can hold zoned_meta_io_lock while waiting for a transaction commit, while the transaction committer waits for that same lock. This produces a deadlock and an availability impact.
Does the supplied severity data indicate that authentication or user interaction is required?
No. The supplied CVSS vector identifies network attack vector, low attack complexity, no privileges required, and no user interaction required.