CVE-2026-72095: dma-fence: Make dma_fence_dedup_array() robust against 0-count input
In the Linux kernel, the following vulnerability has been resolved:
dma-fence: Make dmafencededuparray() robust against 0-count input
dmafencededuparray() returns 1 when called with numfences == 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 dmafenceunwrapmerge() bails out via the if (count == 0 || count == 1) fast path and so is save.
But amdgpuuserqwait() 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-72095?
CVE-2026-72095 has a risk rating of 37, indicating a significant security concern.
How do I fix CVE-2026-72095?
To fix CVE-2026-72095, ensure that you update to the latest version of the Linux kernel that addresses this vulnerability.
What systems are affected by CVE-2026-72095?
CVE-2026-72095 affects the Linux kernel, specifically relating to the dma_fence_dedup_array() function.
What does CVE-2026-72095 impact?
CVE-2026-72095 could potentially lead to unintended behaviors in systems that utilize the dma_fence_dedup_array() function.
When was CVE-2026-72095 published?
CVE-2026-72095 was published on August 15, 2026.