CVE-2025-38254

drm/amd/display: Add sanity checks for drm_edid_raw()

State
Published
Severity
Not scored
Published
Jul 9, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: Add sanity checks for drm_edid_raw()

When EDID is retrieved via drm_edid_raw(), it doesn't guarantee to return proper EDID bytes the caller wants: it may be either NULL (that leads to an Oops) or with too long bytes over the fixed size raw_edid array (that may lead to memory corruption). The latter was reported actually when connected with a bad adapter.

Add sanity checks for drm_edid_raw() to address the above corner cases, and return EDID_BAD_INPUT accordingly.

(cherry picked from commit 648d3f4d209725d51900d6a3ed46b7b600140cdf)

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 48edb2a4256eedf6c92eecf2bc7744e6ecb44b5e to before 4b63507d7cd243574753c6b91f68516d9103f1deAffected
  • 48edb2a4256eedf6c92eecf2bc7744e6ecb44b5e to before 6847b3b6e84ef37451c074e6a8db3fbd250c8dbfAffected
LinuxLinux
  • 6.13Affected
  • before 6.13Not affected
  • 6.15.5 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.