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 Software | Affected Version | How to fix |
---|---|---|
Linux Kernel |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2025-38240 is considered a moderate severity vulnerability affecting the Linux kernel.
To fix CVE-2025-38240, update your Linux kernel to the latest version that includes the patch for this vulnerability.
CVE-2025-38240 affects the Linux kernel as it has a potential impact on devices utilizing this kernel.
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.
As of the last update, there is no public evidence suggesting that CVE-2025-38240 is actively being exploited in the wild.