CVE-2026-74572
Received Received - Intake

Deadlock in Linux Kernel Btrfs Zoned Filesystem

Vulnerability report for CVE-2026-74572, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-15

Last updated on: 2026-08-17

Assigner: kernel.org

Description

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, btree_writepages() holds fs_info->zoned_meta_io_lock across the whole writeback loop, including the call to btrfs_check_meta_write_pointer() -> check_bg_is_active(). For the tree-log block group, check_bg_is_active() may fail to activate the zone and fall back to btrfs_zone_finish_one_bg() to free an active zone. That path waits for the running transaction to commit while still holding zoned_meta_io_lock, 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) ------------------------------------ ------------------------------------- wb_workfn() btrfs_commit_transaction(T) btree_writepages() btrfs_write_and_wait_transaction() btrfs_zoned_meta_io_lock() btrfs_write_marked_extents() btrfs_check_meta_write_pointer() btree_writepages() check_bg_is_active() [treelog_bg] btrfs_zoned_meta_io_lock() btrfs_zone_finish_one_bg() <blocks on zoned_meta_io_lock, btrfs_zone_finish() held by Task A> do_zone_finish() btrfs_inc_block_group_ro() btrfs_wait_for_commit() <blocks waiting for commit of transaction T, done by Task B> The sibling branch in check_bg_is_active() already drops zoned_meta_io_lock around do_zone_finish() for this exact reason. Do the same in the tree-log branch: release the lock around btrfs_zone_finish_one_bg() and re-acquire it afterwards. The lock only protects fs_info->active_{meta,system}_bg, which this branch does not touch, and ctx->zoned_bg 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-15
Last Modified
2026-08-17
Generated
2026-09-04
AI Q&A
2026-08-15
EPSS Evaluated
2026-09-03
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a deadlock vulnerability in the Linux kernel's Btrfs filesystem when used on zoned storage devices. It occurs during metadata writeback when the system tries to free an active zone in the tree-log block group. The deadlock happens because two tasks compete for the same lock while also waiting for each other to complete a transaction, causing the system to hang.

Detection Guidance

This vulnerability is specific to the Linux kernel's Btrfs filesystem with zoned storage. Detection requires checking for deadlocks during metadata writeback on zoned Btrfs filesystems. Monitor system logs for hung tasks or stalled processes during heavy filesystem activity. Use 'dmesg' or 'journalctl -k' to look for warnings about zoned_meta_io_lock or transaction commits.

Impact Analysis

This vulnerability can cause your system to freeze or become unresponsive when performing metadata writeback operations on a Btrfs filesystem with zoned storage. It may lead to data corruption or require a system reboot to recover.

Compliance Impact

This vulnerability is a deadlock in the Linux kernel's btrfs filesystem for zoned storage, causing system hangs during metadata writeback. It does not directly impact data confidentiality, integrity, or availability in a way that would violate GDPR or HIPAA compliance requirements. However, prolonged system unavailability due to hangs could indirectly affect compliance by disrupting access to protected data.

Mitigation Strategies

Apply the kernel patch that fixes this issue. If patching is not immediately possible, avoid using zoned Btrfs filesystems or reduce filesystem activity that triggers metadata writeback. Monitor for deadlocks and restart affected services if hangs occur.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-74572. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart