CVE-2026-80542: drm/amd/display: Fix NULL pointer dereference in amdgpu_dm_crtc_set_vblank()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Fix NULL pointer dereference in amdgpu_dm_crtc_set_vblank()
amdgpu_dm_crtc_set_vblank() dereferences acrtc_state->stream when vblank is enabled/queried from DRM_IOCTL_MODE_CRTC_GET_SEQUENCE before a stream is attached to it.
BUG: kernel NULL pointer dereference, address: 0000000000000008 RIP: amdgpu_dm_crtc_set_vblank+0x6b/0x4d0 [amdgpu] Call Trace: drm_vblank_enable drm_vblank_get drm_crtc_get_sequence_ioctl drm_ioctl_kernel drm_ioctl
Reproduced by running VKCTS with WSI tests enabled on RADV.
Guard the enable path on acrtc_state->stream being non-NULL, matching the existing checks in this function.
(cherry picked from commit 7b1b31bf6942e6f43509b48da23f8e27269aac39)
The Linux kernel CVE team has assigned CVE-2026-80542 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit 34d66bc7ff10e146a4cec76cf286979740a10954 and fixed in 6.18.46 with commit 5045fb4c70bfde36a05e0f41cf35ddfb6d85d3af Issue introduced in 6.18 with commit 34d66bc7ff10e146a4cec76cf286979740a10954 and fixed in 7.1.10 with commit 4a6bc92fac30070511d66bcce4ed9b7dac983180 Issue introduced in 6.18 with commit 34d66bc7ff10e146a4cec76cf286979740a10954 and fixed in 7.2 with commit f2a1c4c6fe0a6fcde02e59dde546dba28d283635
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-80542
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_crtc.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/5045fb4c70bfde36a05e0f41cf35ddfb6d85d3af https://git.kernel.org/stable/c/4a6bc92fac30070511d66bcce4ed9b7dac983180 https://git.kernel.org/stable/c/f2a1c4c6fe0a6fcde02e59dde546dba28d283635