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)
[
{
"target": {
"function": "dm_helpers_read_local_edid",
"file": "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c"
},
"signature_version": "v1",
"digest": {
"length": 1612.0,
"function_hash": "166508251999537315060685632346440227552"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6847b3b6e84ef37451c074e6a8db3fbd250c8dbf",
"deprecated": false,
"id": "CVE-2025-38254-165d4921",
"signature_type": "Function"
},
{
"target": {
"function": "dm_helpers_read_local_edid",
"file": "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c"
},
"signature_version": "v1",
"digest": {
"length": 1612.0,
"function_hash": "166508251999537315060685632346440227552"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4b63507d7cd243574753c6b91f68516d9103f1de",
"deprecated": false,
"id": "CVE-2025-38254-4d534f65",
"signature_type": "Function"
},
{
"target": {
"file": "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"250453310739542821446132540022804137175",
"150941353037870098023647870246970270794",
"131606080006187835347200144533085937504",
"43082722677925722184813540104387898844"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4b63507d7cd243574753c6b91f68516d9103f1de",
"deprecated": false,
"id": "CVE-2025-38254-58a4b4ad",
"signature_type": "Line"
},
{
"target": {
"file": "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"250453310739542821446132540022804137175",
"150941353037870098023647870246970270794",
"131606080006187835347200144533085937504",
"43082722677925722184813540104387898844"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6847b3b6e84ef37451c074e6a8db3fbd250c8dbf",
"deprecated": false,
"id": "CVE-2025-38254-dee603e0",
"signature_type": "Line"
}
]