Skip to content
Heist/ feed
High

dma-fence: Make dma_fence_dedup_array() robust against 0-count input

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: dma-fence: Make dma_fence_dedup_array() robust against 0-count input dma_fence_dedup_array() returns 1 when called with num_fences == 0: the for-loop body never executes, j stays at 0, and the final `return ++j` yields 1. This contradicts both the kernel-doc ("Return: Number of unique fences remaining in the array") and the natural expectation that 0 input gives 0 output. The caller __dma_fence_unwrap_merge() bails out via the `if (count == 0 || count == 1)` fast path and so is save. But amdgpu_userq_wait_*() could reach the dedup call with a zero local count and dereference an uninitialized fence slot in the array. Make the contract match the documentation by returning 0 early. This also skips an unnecessary sort() call on an empty array.

Announced Source revision 1
Original source ↗

CVE-2026-72095

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

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": "575ec9b0c2f11f40535ea737ed5a64792780d1ef",
        "lessThan": "7aa8f3dba53422465dbe1be8dbb7240304462bb2",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "575ec9b0c2f11f40535ea737ed5a64792780d1ef",
        "lessThan": "e2d9a2ea178a5da0b4a6693e8ebca5c7fc4d7051",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "575ec9b0c2f11f40535ea737ed5a64792780d1ef",
        "lessThan": "77a9298741f8f9e8b963c977f5582ab21c6d3427",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/dma-buf/dma-fence-unwrap.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.16"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.16",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.18.40",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.1.5",
        "versionType": "semver",
        "lessThanOrEqual": "7.1.*"
      },
      {
        "status": "unaffected",
        "version": "7.2",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/dma-buf/dma-fence-unwrap.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-72095

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

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