CVE-2025-38240 json
drm/mediatek: dp: drm_err => dev_err in HPD path to avoid NULL ptr
published 2025-04-18 18 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-11824
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 18%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 6.6.87, 6.12.23, 6.13.11, 6.14.2, 6.15
- linux Debian 14, Debian 13 6.12.25-1
debian advisories DEBIAN-CVE-2025-38240
- linux Ubuntu 24.04 LTS 6.8.0-86.87
- linux-aws Ubuntu 24.04 LTS 6.8.0-1041.43
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1042.45
- linux-gke Ubuntu 24.04 LTS 6.8.0-1038.43
- linux-ibm Ubuntu 24.04 LTS 6.8.0-1039.39
- linux-azure Ubuntu 24.04 LTS 6.8.0-1041.47
- linux-gkeop Ubuntu 24.04 LTS 6.8.0-1025.28
- linux-raspi Ubuntu 24.04 LTS 6.8.0-1041.45
ubuntu advisories UBUNTU-CVE-2025-38240
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-syms-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-coco_debug SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-source-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-syms-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-source-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-64kb SLE Module for Basesystem 15 SP7 6.4.0-150700.53.6.1
suse advisories SUSE-SU-2025:02923-1SUSE-SU-2025:02333-1SUSE-SU-2025:02307-1SUSE-SU-2025:02254-1SUSE-SU-2025:02000-1SUSE-SU-2025:20413-1
- git.kernel.org/stable/c/13ec849fd2eab808ee8eba2625df7ebea3b85edf commit
- git.kernel.org/stable/c/57a9fb47551b33cde7b76d17c0072c3b394f4620 commit
- git.kernel.org/stable/c/2fda391ef7a701748abd7fa32232981b522c1e07 commit
- git.kernel.org/stable/c/149a5c38436c229950cf1020992ce65c9549bc19 commit
- git.kernel.org/stable/c/106a6de46cf4887d535018185ec528ce822d6d84 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-38240 updated
kernel: drm/mediatek: dp: drm_err => dev_err in HPD path to avoid NULL ptr
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.26% chance of exploitation in the next 30 days, higher than 18% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
- Technology feeds
References
-
git.kernel.org
/stable/c/13ec849fd2eab808ee8eba2625df7ebea3b85edf
patch
-
git.kernel.org
/stable/c/57a9fb47551b33cde7b76d17c0072c3b394f4620
patch
-
git.kernel.org
/stable/c/2fda391ef7a701748abd7fa32232981b522c1e07
patch
-
git.kernel.org
/stable/c/149a5c38436c229950cf1020992ce65c9549bc19
patch
-
git.kernel.org
/stable/c/106a6de46cf4887d535018185ec528ce822d6d84
patch
Sources
- CVE List CVE-2025-38240
- NVD CVE-2025-38240
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.