VDB

CVE-2025-38240

CVE-2025-38240 PUBLISHED

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

Reported by linux · Published April 18, 2025

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.

EPSS 0.27% · 19.2th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinux6.6, 106a6de46cf4887d535018185ec528ce822d6d84

Risk scores

EPSS Score
0.27%
19.2th percentile

Affected products

VendorProductVersions
LinuxLinux7eacba9a083be65c0f251c19380ec01147c01ebc, 7eacba9a083be65c0f251c19380ec01147c01ebc, 7eacba9a083be65c0f251c19380ec01147c01ebc
LinuxLinux6.6, 0, 6.6.87
LinuxLinux6.15, 0, 6.6.87
linuxlinux_kernel6.6, 6.6, 6.6

Timeline

  • Apr 18, 2025 EPSS Score (30 in total, the first dated here)
  • Apr 18, 2025 CVE Published
  • Oct 12, 2025 PoC Published (6 in total, the first dated here)
  • Apr 20, 2026 Distribution Patch (199 in total, the first dated here)
  • Apr 20, 2026 Security Advisory (203 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score
  • Oct 13, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38240
vulnetix vdb fixes CVE-2025-38240

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38240/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›