CVE-2025-38240: drm/mediatek: dp: drm_err => dev_err in HPD path to avoid NULL ptr

Published Apr 18, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

drm/mediatek: dp: drmerr => deverr in HPD path to avoid NULL ptr

The function mtkdpwaithpdasserted() may be called before the mtkdp->drmdev pointer is assigned in mtkdpbridgeattach(). Specifically it can be called via this callpath: - mtkedpwaithpdasserted - [panel probe] - dpauxepprobe

Using "drm" level prints anywhere in this callpath causes a NULL pointer dereference. Change the error message directly in mtkdpwaithpdasserted() to deverr() to avoid this. Also change the error messages in mtkdpparsecapabilities(), which is called by mtkdpwaithpdasserted().

While touching these prints, also add the error code to them to make future debugging easier.

Affected Software

5 affected components
Linux Linux kernel
Linux Linux kernel>=6.6<6.6.87
Linux Linux kernel>=6.7<6.12.23
Linux Linux kernel>=6.13<6.13.11
Linux Linux kernel>=6.14<6.14.2

Event History

Apr 18, 2025
CVE Published
via MITRE·07:01 AM
Data Sourced
via MITRE·07:01 AM
Description
Data Sourced
via NVD·07:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38240?

CVE-2025-38240 is considered a moderate severity vulnerability affecting the Linux kernel.

2

How do I fix CVE-2025-38240?

To fix CVE-2025-38240, update your Linux kernel to the latest version that includes the patch for this vulnerability.

3

What systems are affected by CVE-2025-38240?

CVE-2025-38240 affects the Linux kernel as it has a potential impact on devices utilizing this kernel.

4

What is the nature of CVE-2025-38240?

CVE-2025-38240 involves a null pointer dereference in the function mtk_dp_wait_hpd_asserted() in the Linux kernel's Direct Rendering Manager for MediaTek devices.

5

Is CVE-2025-38240 being actively exploited?

As of the last update, there is no public evidence suggesting that CVE-2025-38240 is actively being exploited in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203