CVE-2025-71194
btrfs: fix deadlock in wait_current_trans() due to ignored transaction type
Mitigation
- Upgrade Linux to 5037b342825df7094a4906d1e2a9674baab50cb2 or later.
Who should check
- Anyone running Linux >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < e563f59395981fcd69d130761290929806e728d6; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < dc84036c173cff6a432d9ab926298850b1d2a659; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < d7b04b40ac8e6d814e35202a0e1568809b818295; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 99da896614d17e8a84aeb2b2d464ac046cc8633d; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 8b0bb145d3bc264360f525c9717653be3522e528; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 9ac63333d600732a56b35ee1fa46836da671eb50; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 5037b342825df7094a4906d1e2a9674baab50cb2
- Anyone running Linux 3.11
Vulnerability facts
- Affected
- Linux >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < e563f59395981fcd69d130761290929806e728d6; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < dc84036c173cff6a432d9ab926298850b1d2a659; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < d7b04b40ac8e6d814e35202a0e1568809b818295; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 99da896614d17e8a84aeb2b2d464ac046cc8633d; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 8b0bb145d3bc264360f525c9717653be3522e528; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 9ac63333d600732a56b35ee1fa46836da671eb50; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 5037b342825df7094a4906d1e2a9674baab50cb2; Linux 3.11
- Fixed in
- Linux 99da896614d17e8a84aeb2b2d464ac046cc8633d, Linux 8b0bb145d3bc264360f525c9717653be3522e528, Linux 9ac63333d600732a56b35ee1fa46836da671eb50, Linux 5037b342825df7094a4906d1e2a9674baab50cb2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.20% chance of exploitation in 30 days (percentile 6, 2026-11-26)
- CWE
- CWE-362
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix deadlock in wait_current_trans() due to ignored transaction type When wait_current_trans() is called during start_transaction(), it currently waits for a blocked transaction without considering whether the given transaction type actually needs to wait for that particular transaction state. The btrfs_blocked_trans_types[] array already defines which transaction types should wait for which transaction states, but this check was missing in wait_current_trans(). This can lead to a deadlock scenario involving two transactions and pending ordered extents: 1. Transaction A is in TRANS_STATE_COMMIT_DOING state 2. A worker processing an ordered extent calls start_transaction() with TRANS_JOIN 3. join_transaction() returns -EBUSY because Transaction A is in TRANS_STATE_COMMIT_DOING 4. Transaction A moves to TRANS_STATE_UNBLOCKED and completes 5. A new Transaction B is created (TRANS_STATE_RUNNING) 6. The ordered extent from step 2 is added to Transaction B's pending ordered extents 7. Transaction B immediately starts commit by another task and enters TRANS_STATE_COMMIT_START 8. The worker finally reaches wait_current_trans(), sees Transaction B in TRANS_STATE_COMMIT_START (a blocked state), and waits unconditionally 9. However, TRANS_JOIN should NOT wait for TRANS_STATE_COMMIT_START according to btrfs_blocked_trans_types[] 10. Transaction B is waiting for pending ordered extents to complete 11. Deadlock: Transaction B waits for ordered extent, ordered extent waits for Transaction B This can be illustrated by the following call stacks: CPU0 CPU1 btrfs_finish_ordered_io() start_transaction(TRANS_JOIN) join_transaction() # -EBUSY (Transaction A is # TRANS_STATE_COMMIT_DOING) # Transaction A completes # Transaction B created # ordered extent added to # Transaction B's pending list btrfs_commit_transaction() # Transaction B enters # TRANS_STATE_COMMIT_START # waiting for pending ordered # extents wait_current_trans() # waits for Transaction B # (should not wait!) Task bstore_kv_sync in btrfs_commit_transaction waiting for ordered extents: __schedule+0x2e7/0x8a0 schedule+0x64/0xe0 btrfs_commit_transaction+0xbf7/0xda0 [btrfs] btrfs_sync_file+0x342/0x4d0 [btrfs] __x64_sys_fdatasync+0x4b/0x80 do_syscall_64+0x33/0x40 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Task kworker in wait_current_trans waiting for transaction commit: Workqueue: btrfs-syno_nocow btrfs_work_helper [btrfs] __schedule+0x2e7/0x8a0 schedule+0x64/0xe0 wait_current_trans+0xb0/0x110 [btrfs] start_transaction+0x346/0x5b0 [btrfs] btrfs_finish_ordered_io.isra.0+0x49b/0x9c0 [btrfs] btrfs_work_helper+0xe8/0x350 [btrfs] process_one_work+0x1d3/0x3c0 worker_thread+0x4d/0x3e0 kthread+0x12d/0x150 ret_from_fork+0x1f/0x30 Fix this by passing the transaction type to wait_current_trans() and checking btrfs_blocked_trans_types[cur_trans->state] against the given type before deciding to wait. This ensures that transaction types which are allowed to join during certain blocked states will not unnecessarily wait and cause deadlocks.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < e563f59395981fcd69d130761290929806e728d6; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < dc84036c173cff6a432d9ab926298850b1d2a659; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < d7b04b40ac8e6d814e35202a0e1568809b818295; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 99da896614d17e8a84aeb2b2d464ac046cc8633d; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 8b0bb145d3bc264360f525c9717653be3522e528; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 9ac63333d600732a56b35ee1fa46836da671eb50; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 5037b342825df7094a4906d1e2a9674baab50cb2 | — | cvelist |
| Linux | 3.11 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-71194. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-71194.md Affected: Linux >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < e563f59395981fcd69d130761290929806e728d6; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < dc84036c173cff6a432d9ab926298850b1d2a659; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < d7b04b40ac8e6d814e35202a0e1568809b818295; >= 4a9d8bdee368de78ace8b36… Fixed in: Linux 99da896614d17e8a84aeb2b2d464ac046cc8633d, Linux 8b0bb145d3bc264360f525c9717653be3522e528, Linux 9ac63333d600732a56b35ee1fa46836da671eb50, Linux 5037b342825df7094a4906d1e2a9674baab50cb2 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- https://git.kernel.org/stable/c/e563f59395981fcd69d130761290929806e728d6
- https://git.kernel.org/stable/c/dc84036c173cff6a432d9ab926298850b1d2a659
- https://git.kernel.org/stable/c/d7b04b40ac8e6d814e35202a0e1568809b818295
- https://git.kernel.org/stable/c/99da896614d17e8a84aeb2b2d464ac046cc8633d
- https://git.kernel.org/stable/c/8b0bb145d3bc264360f525c9717653be3522e528
- https://git.kernel.org/stable/c/9ac63333d600732a56b35ee1fa46836da671eb50
- https://git.kernel.org/stable/c/5037b342825df7094a4906d1e2a9674baab50cb2
FAQ
Is CVE-2025-71194 being exploited?
There is no confirmed exploitation: CVE-2025-71194 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-71194?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2025-71194?
Linux >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < e563f59395981fcd69d130761290929806e728d6; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < dc84036c173cff6a432d9ab926298850b1d2a659; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < d7b04b40ac8e6d814e35202a0e1568809b818295; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 99da896614d17e8a84aeb2b2d464ac046cc8633d; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 8b0bb145d3bc264360f525c9717653be3522e528; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 9ac63333d600732a56b35ee1fa46836da671eb50; >= 4a9d8bdee368de78ace8b36da4eb2186afea162d, < 5037b342825df7094a4906d1e2a9674baab50cb2; Linux 3.11.
Is there a fix for CVE-2025-71194?
Yes. Fixed in Linux 99da896614d17e8a84aeb2b2d464ac046cc8633d, Linux 8b0bb145d3bc264360f525c9717653be3522e528, Linux 9ac63333d600732a56b35ee1fa46836da671eb50, Linux 5037b342825df7094a4906d1e2a9674baab50cb2. Upgrade Linux to 5037b342825df7094a4906d1e2a9674baab50cb2 or later.
How do I check if I'm affected by CVE-2025-71194?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.