Vulnerability in drm/virtio package: NULL pointer dereference in virtio_gpu_conn_get_modes
Summary
GSD-2022-1003636: drm/virtio: fix NULL pointer dereference in virtio_gpu_conn_get_modes. Affects Kernel versions < fadc626cae99aaa1325094edc6a9e2b883f3e562. 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/virtio package is a component of the Linux Kernel ecosystem. It provides support for the VirtIO GPU device, which allows virtual machines to access graphics capabilities. The virtio_gpu_conn_get_modes function is responsible for retrieving the available display modes for a VirtIO GPU connection. However, a vulnerability exists in this function that can lead to a NULL pointer dereference.
Vulnerability Detail
The vulnerability in the virtio_gpu_conn_get_modes function can be triggered when a malicious user or process attempts to retrieve display modes for a VirtIO GPU connection. Due to a programming error, the function does not properly handle cases where the connection pointer is NULL. As a result, a NULL pointer dereference occurs, leading to a system crash or potential privilege escalation. This vulnerability has been assigned the ID GSD-2022-1003636.
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
There is no specific workaround mentioned for this vulnerability.
Conclusion
In conclusion, the vulnerability in the drm/virtio package's virtio_gpu_conn_get_modes function can lead to a NULL pointer dereference, potentially resulting in a system crash or privilege escalation. It is crucial to update the Linux Kernel to version v5.10.121 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 lead to a system crash or potential privilege escalation if exploited by a malicious user or process.
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 and the Vulert Playground will provide real-time alerts for open-source vulnerabilities, including this one.
At the time of this report, there is no known exploit for this vulnerability. However, it is important to update the Linux Kernel to the fixed version to prevent potential exploitation.
The recommended mitigation is to update the Linux Kernel to version v5.10.121 or later, which includes the fix for this vulnerability.
You can find more information about this vulnerability in the GSD-2022-1003636 JSON file available at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1003xxx/GSD-2022-1003636.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.