CVE-2026-72095

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

Published Aug 15, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

An off‑by‑one error in dma_fence_dedup_array causes the function to return 1 when the fence count is zero, contrary to its documented expectation of returning 0 for empty input. The invalid return value can lead to dereferencing an uninitialized fence slot in the AMDGPU user queue wait path, potentially corrupting kernel memory and triggering a kernel crash or denial of service.

Affected Systems

All Linux kernel builds that include the pre‑patch implementation of dma_fence_dedup_array, which is present in every kernel version before the commit that inserts the early 0‑return guard. Any distribution that uses an AMDGPU driver capable of invoking the user queue wait path is vulnerable; the advisory does not list specific vendor or version ranges.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity, while the EPSS value of <1% suggests a very low likelihood of exploitation. Based on the description, the likely attack vector is local kernel manipulation: an attacker would need to execute privileged code or leverage another privilege‑escalation flaw to trigger the AMDGPU code path that calls the faulty routine. The vulnerability is not listed in CISA KEV, so no public exploit is confirmed. Mitigation focuses on applying the patch rather than on detection.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that adds a guard to return 0 when the fence count is zero; the patch is incorporated in mainline releases after the referenced commit.
  • If the system uses a backported or distribution kernel, apply the same change to the patch set or upgrade to a kernel version that already includes it.
  • Update the AMDGPU driver to a version that incorporates the kernel fix or backport the patch into the driver module if necessary.
  • After applying the patch or driver update, reboot the system or reload the amdgpu module to ensure the new code is active.

Generated by OpenCVE AI on October 20, 2026 at 10:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-170
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-665
CWE-758
Type Values Removed Values Added
Weaknesses CWE-665
CWE-758
Type Values Removed Values Added
Weaknesses CWE-398
CWE-457
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-398
CWE-457
Type Values Removed Values Added
Description 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.
Title dma-fence: Make dma_fence_dedup_array() robust against 0-count input
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-170

    Improper Null Termination

  • CWE-824

    Access of Uninitialized Pointer

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:19 PM
Reserved
Aug 9, 2026, 3:40 AM
Status
Received
Published
Aug 15, 2026, 6:21 AM
Modified
Oct 19, 2026, 10:17 PM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM