# CVE-2025-38240: drm/mediatek: dp: drm\_err =\> dev\_err in HPD path to avoid NULL ptr

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-04-18 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2025-38240, DEBIAN-CVE-2025-38240
- Record: https://cvemate.com/vulnerability/CVE-2025-38240 · JSON: https://cvemate.com/vulnerability/CVE-2025-38240/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.27%, percentile 20.486%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 114)

- debian linux (Debian): \< 6.12.25-1
- ubuntu linux (Ubuntu): \< 6.8.0-86.87
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 6.8.0-1041.43
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1041.43~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 6.8.0-1041.43+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1041.47
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.8 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 26)

- <https://git.kernel.org/stable/c/13ec849fd2eab808ee8eba2625df7ebea3b85edf>
- <https://git.kernel.org/stable/c/57a9fb47551b33cde7b76d17c0072c3b394f4620>
- <https://git.kernel.org/stable/c/2fda391ef7a701748abd7fa32232981b522c1e07>
- <https://git.kernel.org/stable/c/149a5c38436c229950cf1020992ce65c9549bc19>
- <https://git.kernel.org/stable/c/106a6de46cf4887d535018185ec528ce822d6d84>
- <https://ubuntu.com/security/CVE-2025-38240>
- <https://www.cve.org/CVERecord?id=CVE-2025-38240>
- <https://git.kernel.org/linus/106a6de46cf4887d535018185ec528ce822d6d84>
- <https://ubuntu.com/security/notices/USN-7594-1>
- <https://ubuntu.com/security/notices/USN-7594-2>
- <https://ubuntu.com/security/notices/USN-7605-1>
- <https://ubuntu.com/security/notices/USN-7606-1>
- <https://ubuntu.com/security/notices/USN-7605-2>
- <https://ubuntu.com/security/notices/USN-7594-3>
- <https://ubuntu.com/security/notices/USN-7628-1>
- <https://ubuntu.com/security/notices/USN-7835-1>
- <https://ubuntu.com/security/notices/USN-7835-2>
- <https://ubuntu.com/security/notices/USN-7835-3>
- <https://ubuntu.com/security/notices/USN-7835-4>
- <https://ubuntu.com/security/notices/USN-7835-5>

---

Data as of 2026-12-05T03:59:56.164Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
