{"id":"CVE-2025-38240","published":"2025-04-18T07:01:32Z","modified":"2026-05-11T21:23:56Z","title":"drm/mediatek: dp: drm_err => dev_err in HPD path to avoid NULL ptr","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/mediatek: dp: drm_err => dev_err in HPD path to avoid NULL ptr\n\nThe function mtk_dp_wait_hpd_asserted() may be called before the\n`mtk_dp->drm_dev` pointer is assigned in mtk_dp_bridge_attach().\nSpecifically it can be called via this callpath:\n - mtk_edp_wait_hpd_asserted\n - [panel probe]\n - dp_aux_ep_probe\n\nUsing \"drm\" level prints anywhere in this callpath causes a NULL\npointer dereference. Change the error message directly in\nmtk_dp_wait_hpd_asserted() to dev_err() to avoid this. Also change the\nerror messages in mtk_dp_parse_capabilities(), which is called by\nmtk_dp_wait_hpd_asserted().\n\nWhile touching these prints, also add the error code to them to make\nfuture debugging easier.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00268,"percentile":0.19166,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/13ec849fd2eab808ee8eba2625df7ebea3b85edf","tags":[]},{"url":"https://git.kernel.org/stable/c/57a9fb47551b33cde7b76d17c0072c3b394f4620","tags":[]},{"url":"https://git.kernel.org/stable/c/2fda391ef7a701748abd7fa32232981b522c1e07","tags":[]},{"url":"https://git.kernel.org/stable/c/149a5c38436c229950cf1020992ce65c9549bc19","tags":[]},{"url":"https://git.kernel.org/stable/c/106a6de46cf4887d535018185ec528ce822d6d84","tags":[]}],"priority":{"score":3.8,"factors":[{"name":"EPSS percentile","points":3.83}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 7eacba9a083be65c0f251c19380ec01147c01ebc, < 13ec849fd2eab808ee8eba2625df7ebea3b85edf",">= 7eacba9a083be65c0f251c19380ec01147c01ebc, < 57a9fb47551b33cde7b76d17c0072c3b394f4620",">= 7eacba9a083be65c0f251c19380ec01147c01ebc, < 2fda391ef7a701748abd7fa32232981b522c1e07",">= 7eacba9a083be65c0f251c19380ec01147c01ebc, < 149a5c38436c229950cf1020992ce65c9549bc19",">= 7eacba9a083be65c0f251c19380ec01147c01ebc, < 106a6de46cf4887d535018185ec528ce822d6d84"]},{"vendor":"Linux","product":"Linux","versions":["6.6"]}],"euvd":{"id":"EUVD-2025-11824","exploited":false,"provenance":"source"}}