CVE-2025-38254 drm/amd/display: Add sanity checks for drm_edid_raw()
A missing sanity check in the Linux kernel's AMD display driver allows a null pointer dereference or memory corruption via a bad adapter, causing a crash or potential code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-38254?
CVE-2025-38254 is a medium-severity vulnerability in Linux kernel, published on 9 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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)
Which versions are affected by CVE-2025-38254?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-38254?
Apply the vendor's patch.
Is CVE-2025-38254 being exploited?
There is no known exploitation of CVE-2025-38254 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-38254, GHSA-wfcx-25g8-9rvx, UBUNTU-CVE-2025-38254.