Skip to content
Heist/ feed
Unrated

btrfs: fix deadlock in wait_current_trans() due to ignored transaction type

Type: advisorySource: Official CVE List1 source record

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: Tra

Announced Source revision 1
Original source ↗

CVE-2025-71194

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-71194

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4a9d8bdee368de78ace8b36da4eb2186afea162d",
        "lessThan": "e563f59395981fcd69d130761290929806e728d6",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "4a9d8bdee368de78ace8b36da4eb2186afea162d",
        "lessThan": "dc84036c173cff6a432d9ab926298850b1d2a659",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "4a9d8bdee368de78ace8b36da4eb2186afea162d",
        "lessThan": "d7b04b40ac8e6d814e35202a0e1568809b818295",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "4a9d8bdee368de78ace8b36da4eb2186afea162d",
        "lessThan": "99da896614d17e8a84aeb2b2d464ac046cc8633d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "4a9d8bdee368de78ace8b36da4eb2186afea162d",
        "lessThan": "8b0bb145d3bc264360f525c9717653be3522e528",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "4a9d8bdee368de78ace8b36da4eb2186afea162d",
        "lessThan": "9ac63333d600732a56b35ee1fa46836da671eb50",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "4a9d8bdee368de78ace8b36da4eb2186afea162d",
        "lessThan": "5037b342825df7094a4906d1e2a9674baab50cb2",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/btrfs/transaction.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "3.11"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "3.11",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.249",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.199",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.162",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.122",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.67",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.7",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "6.19",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/btrfs/transaction.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-71194

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#39176 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement