CVE-2025-38254

Source
https://nvd.nist.gov/vuln/detail/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
2025-11-16T19:06:47.221317Z
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)

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
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
48edb2a4256eedf6c92eecf2bc7744e6ecb44b5e
Fixed
6847b3b6e84ef37451c074e6a8db3fbd250c8dbf

Affected versions

v6.*

v6.11
v6.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.13
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5
v6.13-rc6
v6.13-rc7
v6.14
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.15
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5
v6.15-rc6
v6.15-rc7
v6.15.1
v6.15.2
v6.15.3
v6.15.4
v6.16-rc1
v6.16-rc2
v6.16-rc3

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.5