CVE-2025-38240: Linux kernel · drm/mediatek: dp: drm_err => dev_err in HPD path to avoid NULL ptr
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium · fixed in 6.8.0-1041.43~22.04.1 : update Linux kernel when convenient.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 17% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 6.8.0-1041.43~22.04.1, 6.8.0-1041.47~22.04.1, 6.8.0-1042.45~22.04.1 +33
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 18 Apr 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-7594-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7605-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7606-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7605-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7628-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7835-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7835-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7835-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7835-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7835-5 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-6.11pkg:deb/ubuntu/linux-azure-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-nvidiapkg:deb/ubuntu/linux-azure-nvidia?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2025-38240 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-38240 (opens in a new tab)
- git.kernel.org/linus/106a6de46cf4887d535018185ec528ce822d6d84 (opens in a new tab)
- git.kernel.org/stable/c/106a6de46cf4887d535018185ec528ce822d6d84 (opens in a new tab)
- git.kernel.org/stable/c/13ec849fd2eab808ee8eba2625df7ebea3b85edf (opens in a new tab)
- git.kernel.org/stable/c/149a5c38436c229950cf1020992ce65c9549bc19 (opens in a new tab)
- git.kernel.org/stable/c/2fda391ef7a701748abd7fa32232981b522c1e07 (opens in a new tab)
- git.kernel.org/stable/c/57a9fb47551b33cde7b76d17c0072c3b394f4620 (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7605-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7606-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7605-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7628-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7835-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7835-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7835-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7835-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7835-5 (opens in a new tab)