Refcount Leak of a dma_fence obj in drm/amd/amdgpu/amdgpu_cs
Summary
GSD-2022-1002200: drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj. Affects Kernel versions < 4009f104b02b223d1a11d74b36b1cc083bc37028. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The drm/amd/amdgpu/amdgpu_cs package is a component of the Linux Kernel that provides support for AMD GPUs. It includes functionality for managing command submission and synchronization for the AMD GPU driver. The package is responsible for handling command submission to the GPU and ensuring synchronization between different command streams. This vulnerability affects the package by causing a refcount leak of a dma_fence object.
Vulnerability Detail
The vulnerability in drm/amd/amdgpu/amdgpu_cs is caused by a refcount leak of a dma_fence object. A dma_fence object is used to synchronize different command streams and ensure that commands are executed in the correct order. However, due to a programming error, the refcount of a dma_fence object is not properly decremented in certain error paths. This can lead to a refcount leak, where the object is not properly released and can result in resource exhaustion and potential denial of service attacks. The vulnerability has been fixed in Linux Kernel version v5.4.189 by commit 4009f104b02b223d1a11d74b36b1cc083bc37028.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Conclusion
The vulnerability in drm/amd/amdgpu/amdgpu_cs that caused a refcount leak of a dma_fence object has been fixed in Linux Kernel version v5.4.189. It is recommended to update the Linux Kernel to the fixed version to mitigate the vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to resource exhaustion and potential denial of service attacks.
There is no known exploit for this vulnerability at the moment.
No, the vulnerability is fixed in Linux Kernel version v5.4.189 and later.
There is no known workaround for this vulnerability. It is recommended to update to the fixed version of the Linux Kernel.
More information about the fix can be found in the commit 4009f104b02b223d1a11d74b36b1cc083bc37028 in the Linux Kernel repository.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.