CVE-2025-71194
Deadlock in Linux btrfs Due to Transaction Wait Logic Flaw
Publication date: 2026-02-04
Last updated on: 2026-02-06
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the Linux kernel's btrfs filesystem code, specifically in the wait_current_trans() function used during transaction handling.
The issue arises because wait_current_trans() waits for a blocked transaction without checking if the transaction type actually needs to wait for that transaction state. This missing check can cause a deadlock involving two transactions and pending ordered extents.
- Transaction A is in a commit state.
- A worker tries to start a new transaction with a join type but is blocked because Transaction A is committing.
- Transaction A completes and a new Transaction B is created.
- An ordered extent from the worker is added to Transaction B's pending list.
- Transaction B starts committing and enters a blocked state.
- The worker waits unconditionally for Transaction B to finish, even though the join transaction type should not wait for that blocked state.
This causes a deadlock because Transaction B waits for the ordered extent to complete, while the ordered extent is waiting for Transaction B.
The fix involves passing the transaction type to wait_current_trans() and checking if the transaction type should wait for the current transaction state, preventing unnecessary waiting and deadlocks.
How can this vulnerability impact me? :
This vulnerability can cause a deadlock in the btrfs filesystem transactions, leading to system hangs or freezes when certain transaction states wait indefinitely for each other.
Such deadlocks can impact system stability and availability, potentially causing delays or failures in file system operations that rely on btrfs.
If your system uses the btrfs filesystem and is affected by this issue, you might experience performance degradation or unresponsiveness during file system commits or sync operations.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
I don't know