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-03-20T12:42:45.888800Z
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
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38254.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
48edb2a4256eedf6c92eecf2bc7744e6ecb44b5e
Fixed
4b63507d7cd243574753c6b91f68516d9103f1de
Fixed
6847b3b6e84ef37451c074e6a8db3fbd250c8dbf

Database specific

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