Vulnerability in drm/rockchip: vop_bind() Function
Summary
GSD-2022-1002778: drm/rockchip: vop: fix possible null-ptr-deref in vop_bind(). Affects Kernel versions >= 2048e3286f347db5667708e47448176b5329e8d8, < ecfa52654d0c9c333c1fe1611f47105f6bce9591. 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/rockchip package is a component of the Linux Kernel that provides support for Rockchip display controllers. These display controllers are commonly found in Rockchip SoCs (System-on-Chips) used in various devices such as tablets, smartphones, and embedded systems. The vop_bind() function within the package is responsible for binding the display controller to the display pipeline. This vulnerability affects versions of the Linux Kernel from v3.19 to v5.18.2.
Vulnerability Detail
The vulnerability in the vop_bind() function of drm/rockchip allows for a potential null pointer dereference. This means that under certain conditions, the function may attempt to access memory using a null pointer, leading to a system crash or potential code execution. An attacker could potentially exploit this vulnerability to crash the system or execute arbitrary code with kernel-level privileges. The vulnerability was introduced in version v3.19 and has been fixed in version v5.18.3 of the Linux Kernel.
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 temporary workaround, users can disable the affected functionality by blacklisting the 'rockchip-drm' module. This can be done by adding the following line to the '/etc/modprobe.d/blacklist.conf' file:
blacklist rockchip-drm
After adding the line, reboot the system for the changes to take effect. However, it is strongly recommended to apply the official fix by updating the Linux Kernel as soon as possible.
Conclusion
The vulnerability in the vop_bind() function of drm/rockchip can potentially lead to a system crash or allow an attacker to execute arbitrary code with kernel-level privileges. It is crucial to update the Linux Kernel to version v5.18.3 or later to mitigate this vulnerability. Users can also use the Vulert Playground (https://vulert.com/scanner) to check if their system is affected and receive real-time alerts for open-source vulnerabilities. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially lead to a system crash or allow an attacker to execute arbitrary code with kernel-level privileges.
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 and the Vulert Playground will analyze it for any known vulnerabilities.
At the time of this report, there is no known public exploit for this vulnerability. However, it is still important to apply the official fix as soon as possible to mitigate any potential risks.
In most cases, this vulnerability requires local access to the system. However, if an attacker already has remote access to the system, they may be able to exploit this vulnerability to gain kernel-level privileges.
As a temporary workaround, you can disable the affected functionality by blacklisting the 'rockchip-drm' module. However, it is strongly recommended to apply the official fix by updating the Linux Kernel as soon as possible.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.