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

Published Jul 9, 2025
·
Updated

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

Affected Software

5 affected components
Linux Kernel
Linux Linux kernel>=6.13<6.15.5
Linux Linux kernel=6.16-rc1
Linux Linux kernel=6.16-rc2
Linux Linux kernel=6.16-rc3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Patch 648d3f4d209725d51900d6a3ed46b7b600140cdf

Event History

Jul 9, 2025
CVE Published
via MITRE·10:42 AM
Data Sourced
via MITRE·10:42 AM
Description
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38254?

CVE-2025-38254 has been classified with a severity that warrants attention due to potential null pointer dereference causing kernel Oops.

2

How do I fix CVE-2025-38254?

To fix CVE-2025-38254, update the Linux kernel to a version that includes the latest patches addressing the vulnerability.

3

Which versions of the Linux Kernel are affected by CVE-2025-38254?

CVE-2025-38254 affects multiple versions of the Linux Kernel prior to the patch that resolved the vulnerability.

4

What impact does CVE-2025-38254 have on systems?

The impact of CVE-2025-38254 includes potential system crashes or instability due to improper EDID handling.

5

Is CVE-2025-38254 a remote exploit vulnerability?

CVE-2025-38254 is not classified as a remote exploit vulnerability, but it can lead to local privilege escalation if exploited.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203