Vulnerability in drm/amdgpu Package: Off-by-One Error in amdgpu_gfx_kiq_acquire()
Summary
GSD-2022-1001027: drm/amdgpu: fix off by one in amdgpu_gfx_kiq_acquire(). Affects Kernel versions >= 71c37505e7eaa01fa259debad1a71a7ae061039d, < fe7929ff9ee0bf3514c69c3c298b3819f91e7d99. 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 that provides support for AMD GPUs. It includes the necessary drivers and modules to enable graphics acceleration and other GPU-related functionalities on Linux systems. The amdgpu_gfx_kiq_acquire() function is responsible for acquiring the Kernel Interface Queue (KIQ) lock for the AMD GPU graphics engine. This lock is crucial for coordinating access to the graphics engine and ensuring proper synchronization. However, a vulnerability has been discovered in this function that results in an off-by-one error.
Vulnerability Detail
The off-by-one error in amdgpu_gfx_kiq_acquire() allows an attacker to potentially overwrite adjacent memory locations, leading to various security issues. By exploiting this vulnerability, an attacker could execute arbitrary code, escalate privileges, or cause a denial-of-service (DoS) condition. The vulnerability was introduced in version v4.13 of the Linux Kernel and has been fixed in version v5.17.3. The fix involves correcting the off-by-one error in the code.
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
As this vulnerability has been fixed in the latest version of the Linux Kernel, there is no specific workaround available. It is strongly advised to update to the patched version to ensure the security of the system.
Conclusion
The vulnerability in the drm/amdgpu package's amdgpu_gfx_kiq_acquire() function poses a significant security risk, potentially allowing attackers to execute arbitrary code, escalate privileges, or cause a denial-of-service (DoS) condition. It is crucial to update the Linux Kernel to version v5.17.3 or later to mitigate this vulnerability. For further assistance or support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability allows an attacker to potentially execute arbitrary code, escalate privileges, or cause a denial-of-service (DoS) condition.
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, there is no known public exploit for this vulnerability. However, it is important to apply the fix as soon as possible to mitigate any potential risks.
Yes, this vulnerability can be exploited remotely if the affected system is accessible over a network. Attackers can potentially exploit the vulnerability to gain unauthorized access or disrupt the system's functionality.
If updating the Linux Kernel is not immediately feasible, it is recommended to implement additional security measures such as network segmentation, access controls, and intrusion detection systems to minimize the risk of exploitation.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.