Skip to content
Heist/ feed
High

iio: buffer: Tie IIO dma fence lock lifetime to the fence

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: iio: buffer: Tie IIO dma fence lock lifetime to the fence The `iio_dma_fence` implementation currently uses a lock embedded in the `iio_dmabuf_priv`. But the `iio_dma_fence` can outlive the `iio_dmabuf_priv`, which can cause a use-after-free. Tie the lifetime of the lock to the lifetime of the fence by embedding them in the same struct. We can't just hold a reference to the `iio_dmabuf_priv` from the `iio_dma_fence` since `iio_buffer_dmabuf_release()` might sleep and the fence release callback is not allowed to sleep. Note that the `dma_fence` framework now has an internal lock that gets used when the passing `NULL` for `lock` in `dma_fence_init()`, but in order to allow this patch to be backportable use an external lock.

Announced Group revision 1
Original source ↗

CVE-2026-89940

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

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": "3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f",
        "lessThan": "6865d79fca17a80fbd60c12550ca9a5e0e20e0eb",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f",
        "lessThan": "510497e31be4f241103507315a859e2085ccb081",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f",
        "lessThan": "8b3e221590181a8beb3735bbabf166df02c839b5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f",
        "lessThan": "f25ec4627d935dedfb5fe83bd2c2678cdcc19611",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/iio/industrialio-buffer.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.11"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.11",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.12.110",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.51",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.5",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/iio/industrialio-buffer.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-89940

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

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