Vulnerability in drm/amdgpu package: off by one in amdgpu_gfx_kiq_acquire()
Summary
GSD-2022-1002313: drm/amdgpu: fix off by one in amdgpu_gfx_kiq_acquire(). Affects Kernel versions >= 71c37505e7eaa01fa259debad1a71a7ae061039d, < a17d93c9088c1b7d7ec42ce25573b93544e19616. 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 enables graphics acceleration on Linux systems. The amdgpu_gfx_kiq_acquire() function is responsible for acquiring the Kernel Interface Queue (KIQ) for the AMD GPU graphics engine. This vulnerability arises from an off-by-one error in the implementation of this function.
Vulnerability Detail
The off-by-one error in amdgpu_gfx_kiq_acquire() can lead to a buffer overflow, potentially allowing an attacker to overwrite adjacent memory locations. Exploiting this vulnerability could result in arbitrary code execution or privilege escalation. The vulnerability was introduced in version v4.13 of the Linux Kernel and was fixed in version v4.19.238 by commit a17d93c9088c1b7d7ec42ce25573b93544e19616.
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 →
Workaround
No specific workaround has been provided for this vulnerability.
Conclusion
The off-by-one vulnerability in the amdgpu_gfx_kiq_acquire() function of the drm/amdgpu package in the Linux Kernel has the potential to allow arbitrary code execution or privilege escalation. It is crucial to update the Linux Kernel to version v4.19.238 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability can potentially allow an attacker to execute arbitrary code or escalate privileges on a Linux system with an affected version of the Linux Kernel.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will provide real-time alerts for open-source vulnerabilities, including this one.
At the time of this report, no known exploits for this vulnerability have been disclosed.
This vulnerability requires local access to the affected system, as it is a flaw in the Linux Kernel.
For more details about this vulnerability, you can refer to the source link provided in the vulnerability details section of this report.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.