{"id":"CVE-2025-38240","aliases":["CVE-2025-38240"],"related":[],"kind":"vulnerability","state":"published","title":"drm/mediatek: dp: drm_err => dev_err in HPD path to avoid NULL ptr","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/mediatek: dp: drm_err =&gt; dev_err en la ruta HPD para evitar un puntero nulo. La función mtk_dp_wait_hpd_asserted() puede llamarse antes de asignar el puntero `mtk_dp-&gt;drm_dev` en mtk_dp_bridge_attach(). Específicamente, se puede llamar a través de esta ruta de llamada: - mtk_edp_wait_hpd_asserted - [panel probe] - dp_aux_ep_probe El uso de impresiones de nivel \"drm\" en cualquier parte de esta ruta de llamada provoca una desreferencia del puntero nulo. Cambie el mensaje de error directamente en mtk_dp_wait_hpd_asserted() a dev_err() para evitar esto. Cambie también los mensajes de error en mtk_dp_parse_capabilities(), que es llamado por mtk_dp_wait_hpd_asserted(). Al tocar estas impresiones, agregue también el código de error para facilitar la depuración futura.","source":"nvd"}],"published":"2025-04-18T07:01:32.338Z","modified":"2026-06-17T09:16:27.637Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"7eacba9a083be65c0f251c19380ec01147c01ebc","fixed":"13ec849fd2eab808ee8eba2625df7ebea3b85edf","status":"affected"},{"type":"git","introduced":"7eacba9a083be65c0f251c19380ec01147c01ebc","fixed":"57a9fb47551b33cde7b76d17c0072c3b394f4620","status":"affected"},{"type":"git","introduced":"7eacba9a083be65c0f251c19380ec01147c01ebc","fixed":"2fda391ef7a701748abd7fa32232981b522c1e07","status":"affected"},{"type":"git","introduced":"7eacba9a083be65c0f251c19380ec01147c01ebc","fixed":"149a5c38436c229950cf1020992ce65c9549bc19","status":"affected"},{"type":"git","introduced":"7eacba9a083be65c0f251c19380ec01147c01ebc","fixed":"106a6de46cf4887d535018185ec528ce822d6d84","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.6.87","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.23","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.11","lastAffected":"6.13.*","status":"unaffected"},{"type":"semver","introduced":"6.14.2","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6","fixed":"6.6.87"},{"status":"affected","introduced":"6.7","fixed":"6.12.23"},{"status":"affected","introduced":"6.13","fixed":"6.13.11"},{"status":"affected","introduced":"6.14","fixed":"6.14.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/13ec849fd2eab808ee8eba2625df7ebea3b85edf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/57a9fb47551b33cde7b76d17c0072c3b394f4620","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2fda391ef7a701748abd7fa32232981b522c1e07","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/149a5c38436c229950cf1020992ce65c9549bc19","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/106a6de46cf4887d535018185ec528ce822d6d84","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38240","url":"https://www.cve.org/CVERecord?id=CVE-2025-38240","licence":"CVE Terms of Use","modified":"2026-05-11T21:23:56.828Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38240","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38240","licence":"Public domain","modified":"2026-06-17T09:16:27.637Z"}],"updatedAt":"2026-11-25T22:58:56.758Z","epss":{"score":0.0027,"percentile":0.20573,"date":"2026-12-01T12:00:22.000Z"}}