EPSS
0.024%
Advisory Published
Updated

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

First published: Fri Apr 18 2025(Updated: )

In the Linux kernel, the following vulnerability has been resolved: drm/mediatek: dp: drm_err => dev_err in HPD path to avoid NULL ptr The function mtk_dp_wait_hpd_asserted() may be called before the `mtk_dp->drm_dev` pointer is assigned in mtk_dp_bridge_attach(). Specifically it can be called via this callpath: - mtk_edp_wait_hpd_asserted - [panel probe] - dp_aux_ep_probe Using "drm" level prints anywhere in this callpath causes a NULL pointer dereference. Change the error message directly in mtk_dp_wait_hpd_asserted() to dev_err() to avoid this. Also change the error messages in mtk_dp_parse_capabilities(), which is called by mtk_dp_wait_hpd_asserted(). While touching these prints, also add the error code to them to make future debugging easier.

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-38240?

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

  • 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.

  • 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.

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203