NULL pointer dereference in amdgpu_dm_connector_add_common_modes() in Kernel
Summary
GSD-2022-1001239: drm/amd/display: Fix a NULL pointer dereference in amdgpu_dm_connector_add_common_modes(). Affects Kernel versions >= e7b07ceef2a650e5ed8ca37997689e086c680daf, < 639b3b9def0a6a3f316a195d705d14113236e89c. 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 Kernel is a crucial component of the Linux operating system that acts as a bridge between hardware and software. It provides essential services and functions to enable the proper functioning of various hardware devices. The amdgpu_dm_connector_add_common_modes() function is a part of the drm/amd/display module in the Kernel, specifically designed for AMD GPUs. This function is responsible for adding common display modes to the connector. However, a vulnerability in this function can lead to a NULL pointer dereference, potentially causing a system crash or other unexpected behavior.
Vulnerability Detail
The vulnerability in amdgpu_dm_connector_add_common_modes() arises due to a lack of proper validation of a pointer. When the function is called, it fails to check if a pointer is NULL before dereferencing it. As a result, if a NULL pointer is passed as an argument, the function will attempt to access memory at that location, leading to a crash or other undefined behavior. An attacker could potentially exploit this vulnerability by providing a specially crafted input to trigger the NULL pointer dereference, leading to a denial of service or potential code execution.
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 a workaround, users can avoid triggering the vulnerable code path by refraining from performing actions that invoke the amdgpu_dm_connector_add_common_modes() function with a NULL pointer. However, this workaround may not be feasible in all scenarios, and it is strongly recommended to apply the official fix by updating the Kernel.
Conclusion
The NULL pointer dereference vulnerability in amdgpu_dm_connector_add_common_modes() in the Kernel can lead to system crashes or other unexpected behavior. It is crucial to update the Linux Kernel to version v5.17.2 or later to mitigate this vulnerability. Users can also utilize tools like Vulert to check if their systems are affected and receive real-time alerts for open-source vulnerabilities. For further assistance or support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can result in a NULL pointer dereference, leading to a system crash or other unexpected behavior. In some cases, an attacker may be able to exploit this vulnerability to execute arbitrary code or launch a denial of service attack.
You can use tools like Vulert to check if your system is affected by this vulnerability. Vulert analyzes the manifest file, such as package-lock.json, to identify and alert in real-time for open-source vulnerabilities in the software.
This vulnerability requires an attacker to have local access to the system. However, if an attacker gains local access, they can potentially exploit this vulnerability to execute arbitrary code or disrupt the system's normal operation.
There are no known instances of this vulnerability being actively exploited in the wild. However, it is essential to apply the fix promptly to mitigate any potential risks.
For more detailed information about this vulnerability, including technical specifics and the fix implementation, you can refer to the vulnerability report in the GSD database at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1001xxx/GSD-2022-1001239.json.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.