# CVE-2025-71194: btrfs: fix deadlock in wait\_current\_trans() due to ignored transaction type

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2026-02-04T16:04:15.389Z
- **Modified:** 2026-10-19T19:17:16.640Z

## 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

## 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

- Linux: \>= 4a9d8bdee368de78ace8b36da4eb2186afea162d, \< e563f59395981fcd69d130761290929806e728d6; \>= 4a9d8bdee368de78ace8b36da4eb2186afea162d, \< dc84036c173cff6a432d9ab926298850b1d2a659; \>= 4a9d8bdee368de78ace8b36da4eb2186afea162d, \< d7b04b40ac8e6d814e35202a0e1568809b818295; \>= 4a9d8bdee368de78ace8b36da4eb2186afea162d, \< 99da896614d17e8a84aeb2b2d464ac046cc8633d; \>= 4a9d8bdee368de78ace8b36da4eb2186afea162d, \< 8b0bb145d3bc264360f525c9717653be3522e528; \>= 4a9d8bdee368de78ace8b36da4eb2186afea162d, \< 9ac63333d600732a56b35ee1fa46836da671eb50; \>= 4a9d8bdee368de78ace8b36da4eb2186afea162d, \< 5037b342825df7094a4906d1e2a9674baab50cb2 (cvelist)
- Linux: 3.11 (cvelist)

## Mitigation

- Upgrade Linux to 5037b342825df7094a4906d1e2a9674baab50cb2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/e563f59395981fcd69d130761290929806e728d6>
- other: <https://git.kernel.org/stable/c/dc84036c173cff6a432d9ab926298850b1d2a659>
- other: <https://git.kernel.org/stable/c/d7b04b40ac8e6d814e35202a0e1568809b818295>
- other: <https://git.kernel.org/stable/c/99da896614d17e8a84aeb2b2d464ac046cc8633d>
- other: <https://git.kernel.org/stable/c/8b0bb145d3bc264360f525c9717653be3522e528>
- other: <https://git.kernel.org/stable/c/9ac63333d600732a56b35ee1fa46836da671eb50>
- other: <https://git.kernel.org/stable/c/5037b342825df7094a4906d1e2a9674baab50cb2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-71194>

HTML: <https://flawdb.com/CVE-2025-71194> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-71194>
