CVE-2025-38240
drm/mediatek: dp: drm_err => dev_err in HPD path to avoid NULL ptr
Check your servers for CVE-2025-38240
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38240 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 20.5% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 7eacba9a083be65c0f251c19380ec01147c01ebc, before 13ec849fd2eab808ee8eba2625df7ebea3b85edf affected from 7eacba9a083be65c0f251c19380ec01147c01ebc, before 57a9fb47551b33cde7b76d17c0072c3b394f4620 affected from 7eacba9a083be65c0f251c19380ec01147c01ebc, before 2fda391ef7a701748abd7fa32232981b522c1e07 affected from 7eacba9a083be65c0f251c19380ec01147c01ebc, before 149a5c38436c229950cf1020992ce65c9549bc19 affected from 7eacba9a083be65c0f251c19380ec01147c01ebc, before 106a6de46cf4887d535018185ec528ce822d6d84
Other versions: unaffected
|
| Linux |
affected 6.6 unaffected before 6.6 unaffected from 6.6.87 up to and including 6.6.* unaffected from 6.12.23 up to and including 6.12.* unaffected from 6.13.11 up to and including 6.13.* unaffected from 6.14.2 up to and including 6.14.* unaffected 6.15 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38240 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38240
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38240
trivy image --scanners vuln IMAGE | grep CVE-2025-38240
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/13ec849fd2eab808ee8eba2625df7ebea3b85edf git.kernel.org
- https://git.kernel.org/stable/c/57a9fb47551b33cde7b76d17c0072c3b394f4620 git.kernel.org
- https://git.kernel.org/stable/c/2fda391ef7a701748abd7fa32232981b522c1e07 git.kernel.org
- https://git.kernel.org/stable/c/149a5c38436c229950cf1020992ce65c9549bc19 git.kernel.org
- https://git.kernel.org/stable/c/106a6de46cf4887d535018185ec528ce822d6d84 git.kernel.org
Source: the record CVE-2025-38240 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse