CVE-2026-31461: drm/amd/display: Fix drm_edid leak in amdgpu_dm
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Fix drm_edid leak in amdgpu_dm
[WHAT]
When a sink is connected, aconnector->drm_edid was overwritten without freeing the previous allocation, causing a memory leak on resume.
[HOW]
Free the previous drm_edid before updating it.
(cherry picked from commit 52024a94e7111366141cfc5d888b2ef011f879e5)
The Linux kernel CVE team has assigned CVE-2026-31461 to this issue.
Affected and fixed versions
===========================
Fixed in 6.18.21 with commit eb95595194e4755b62360aa821f40a79b0953105 Fixed in 6.19.11 with commit 52db857e94b9be4e6315586602b0257d1d2b165a Fixed in 7.0 with commit 37c2caa167b0b8aca4f74c32404c5288b876a2a3
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-31461
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/eb95595194e4755b62360aa821f40a79b0953105 https://git.kernel.org/stable/c/52db857e94b9be4e6315586602b0257d1d2b165a https://git.kernel.org/stable/c/37c2caa167b0b8aca4f74c32404c5288b876a2a3