Null Pointer Dereference in drm/mediatek: hdmi

Kernel Updated 02 Oct 2025

Summary

30/12/2021
N/A
No i
Unrated
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Share this vulnerability

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.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback