CVE-2025-38254

Source
https://cve.org/CVERecord?id=CVE-2025-38254
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38254.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38254
Downstream
Published
2025-07-09T10:42:32.641Z
Modified
2026-05-15T11:54:22.103921135Z
Summary
drm/amd/display: Add sanity checks for drm_edid_raw()
Details

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

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

When EDID is retrieved via drmedidraw(), 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 drmedidraw() to address the above corner cases, and return EDIDBADINPUT accordingly.

(cherry picked from commit 648d3f4d209725d51900d6a3ed46b7b600140cdf)

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38254.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.5

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38254.json"