# CVE-2025-38254: drm/amd/display: Add sanity checks for drm_edid_raw()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2025-07-09T10:42:32.641Z
- Modified: 2026-06-17T09:16:29.393Z
- Assigned by: Linux

## 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)

(As written by CVE List.)

## Affected

- Linux Linux: from 48edb2a4256eedf6c92eecf2bc7744e6ecb44b5e before 4b63507d7cd243574753c6b91f68516d9103f1de; from 48edb2a4256eedf6c92eecf2bc7744e6ecb44b5e before 6847b3b6e84ef37451c074e6a8db3fbd250c8dbf; 6.13 (not affected: before 6.13; from 6.15.5 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.13 before 6.15.5; 6.16

## References

- <https://git.kernel.org/stable/c/4b63507d7cd243574753c6b91f68516d9103f1de> (patch)
- <https://git.kernel.org/stable/c/6847b3b6e84ef37451c074e6a8db3fbd250c8dbf> (patch)

## Sources

- CVE List: [CVE-2025-38254](https://www.cve.org/CVERecord?id=CVE-2025-38254), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38254](https://nvd.nist.gov/vuln/detail/CVE-2025-38254), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38254 · Whole record: https://cve.day/CVE-2025-38254.json · Rebuilt by cve.day 2026-11-25T22:59:01.013Z
