Null Pointer Dereference in drm/mediatek: hdmi
Summary
GSD-2021-1002817: drm/mediatek: hdmi: Perform NULL pointer check for mtk_hdmi_conf. Affects Kernel versions >= 41ca9caaae0bfc959b22dbcd59d88a7107707e17, < 71d07ebc5000b9c1d140e99e7493b0bafa954776. 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/mediatek package is a component of the Linux Kernel that provides support for display controllers found in MediaTek SoCs. It includes drivers for various display interfaces, including HDMI. The HDMI driver in drm/mediatek is responsible for configuring and controlling HDMI output on devices using MediaTek SoCs.
Vulnerability Detail
The vulnerability identified as GSD-2021-1002817 is a null pointer dereference issue in the HDMI driver of drm/mediatek. The driver fails to perform a NULL pointer check for mtk_hdmi_conf, which can lead to a kernel crash or potential privilege escalation if exploited. An attacker with local access to the system may be able to trigger this vulnerability and cause a denial of service or execute arbitrary code with kernel-level privileges.
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 HDMI functionality or unload the mtk_hdmi module if it is not required for their system. This can be done by executing the following commands:
# Disable HDMI functionality
echo 0 > /sys/class/drm/cardX-HDMI-A-Y/enabled
# Unload mtk_hdmi module
modprobe -r mtk_hdmi
Note: Replace 'cardX' with the appropriate card number and 'Y' with the HDMI port number.
Conclusion
The null pointer dereference vulnerability in the drm/mediatek HDMI driver can potentially lead to a kernel crash or privilege escalation. It is crucial to update the Linux Kernel to version v5.15.12 or later to mitigate this vulnerability. In the meantime, users can follow the provided workaround instructions to temporarily disable HDMI functionality or unload the mtk_hdmi module. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability can lead to a kernel crash or potential privilege escalation if exploited. An attacker with local access to the system may be able to trigger this vulnerability and cause a denial of service or 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 Vulert will analyze it for open-source vulnerabilities, including this one.
Yes, a patch for this vulnerability is available in the Linux Kernel version v5.15.12. It is recommended to update your kernel to the latest stable version that includes this fix.
As a temporary workaround, you can disable the HDMI functionality or unload the mtk_hdmi module if it is not required for your system. Please refer to the 'workaround' section for detailed instructions.
You can find more information about this vulnerability in the GSD-2021-1002817 JSON report available on the Cloud Security Alliance's GSD Database (https://github.com/cloudsecurityalliance/gsd-database).
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.