Skip to content
Heist/ feed
High

btrfs: fix transaction use-after-free in raid stripe insertion

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix transaction use-after-free in raid stripe insertion If allocation of a RAID stripe extent fails, btrfs_insert_one_raid_extent() aborts and ends the transaction before returning -ENOMEM. btrfs_finish_one_ordered(), the production caller through btrfs_insert_raid_extent(), still owns the transaction handle. It handles the error by aborting the transaction and then reaches the common exit path, which ends the transaction again. The premature end can free the handle and drop its transaction reference. Transaction cleanup can then free the transaction before the caller's second abort accesses the handle and transaction, resulting in use-after-free. Keep the abort at the failure site, but let the caller's common exit path end the transaction once, after it has finished using both objects.

Announced Source revision 1
Original source ↗

CVE-2026-98083

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-2026-98083

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": "ab69bf6f8970c09d3735c25094e9471d54365282",
        "lessThan": "089d9c45ea49ffffe55a8fe08d0ce2536626e90a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "02c372e1f016e5113217597ab37b399c4e407477",
        "lessThan": "b185bdf30313e213fa1c887fe22fc3d513c061d9",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "02c372e1f016e5113217597ab37b399c4e407477",
        "lessThan": "2fbfd02bdfe12b20bd3cc7a3190fb32e3f7072f5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "02c372e1f016e5113217597ab37b399c4e407477",
        "lessThan": "b7b94923b3b5774d85a2a7c8d6eb9e3e0ef66685",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "02c372e1f016e5113217597ab37b399c4e407477",
        "lessThan": "a8813a923f9e43f788b357fb55c35f7f6ed6f98c",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6.6.130",
        "lessThan": "6.6.158",
        "versionType": "semver"
      }
    ],
    "programFiles": [
      "fs/btrfs/raid-stripe-tree.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.7"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.7",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.158",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.111",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.53",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.7",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/btrfs/raid-stripe-tree.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-98083

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

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