Vulnerability in drm/amdgpu Package: Off-by-One Error in amdgpu_gfx_kiq_acquire()
Summary
GSD-2022-1002190: drm/amdgpu: fix off by one in amdgpu_gfx_kiq_acquire(). Affects Kernel versions >= 71c37505e7eaa01fa259debad1a71a7ae061039d, < c5e12c3a47db6f307483645baaab3776dff71a70. 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/amdgpu package is a component of the Linux Kernel ecosystem. It provides support for AMD GPUs and handles graphics-related functionality. The amdgpu_gfx_kiq_acquire() function is responsible for acquiring the Kernel Interface Queue (KIQ) for the GPU. This queue is used for communication between the GPU and the driver. The vulnerability in question is an off-by-one error in the amdgpu_gfx_kiq_acquire() function.
Vulnerability Detail
The off-by-one error in amdgpu_gfx_kiq_acquire() can lead to a buffer overflow or memory corruption. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service (DoS) condition. The error occurs when calculating the size of the KIQ buffer, resulting in writing beyond the allocated memory. This vulnerability was introduced in version v4.13 of the Linux Kernel and has been fixed in version v5.4.189.
How To Fix
No fixed version is published for this vulnerability.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.4.189 or later. This update includes the commit c5e12c3a47db6f307483645baaab3776dff71a70, which addresses the off-by-one error in amdgpu_gfx_kiq_acquire().
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
In conclusion, the drm/amdgpu package in the Linux Kernel is vulnerable to an off-by-one error in the amdgpu_gfx_kiq_acquire() function. This vulnerability can potentially lead to arbitrary code execution or a denial-of-service condition. It is crucial to update the Linux Kernel to version v5.4.189 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially allow an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground and it will alert you in real-time if the vulnerability is present.
At the time of this report, there is no known exploit for this vulnerability. However, it is important to apply the recommended fix to mitigate any potential risks.
Yes, this vulnerability can be exploited remotely if the affected system is accessible over a network.
The recommended mitigation is to update the Linux Kernel to version v5.4.189 or later, which includes the fix for this vulnerability.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.