CVE-2026-99090: drm/amdgpu: serialize vblank counter reads against GPU reset
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: serialize vblank counter reads against GPU reset
The vblank counter callback reads display registers and scanout position without holding reset_domain->sem. During GPU recovery, display commit work can call the callback while reset owns the semaphore for writing. The hardware access then triggers the lockdep_assert_held() in amdgpu_device_skip_hw_access() and sets TAINT_WARN when lockdep is enabled.
Try to acquire the reset semaphore for reading before accessing the hardware, and hold it across the counter and scanout-position reads. If reset is already in progress, return DRM's cached software vblank count instead. This avoids blocking behind reset and avoids accessing display hardware while it is being reset.
The cached count is less accurate than the hardware count, but is used only when reset prevents a safe hardware read. This addresses the reset-time warning from this vblank path; it does not suppress or fix unrelated lockdep warnings.
(cherry picked from commit 51a4359f7431a4be5e42803c8bdaf7e0e5be2934)
The Linux kernel CVE team has assigned CVE-2026-99090 to this issue.
Affected and fixed versions
===========================
Fixed in 6.6.160 with commit 037796d9ca1da97978deaefd88ca5649f6cb69f5 Fixed in 6.12.113 with commit 11b6193c8841a052b7907006ffb1e02468b1448e Fixed in 6.18.57 with commit 8d6f773d7479034a574ecc3b585bcd07d46b4824 Fixed in 7.2.11 with commit f4a0a1ce147d1a6e428d7cb5e3b99fd695139fc7 Fixed in 7.3 with commit 1a6023edfbb5673f55fab6348f135fb3b1428ea5
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-99090
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/amdgpu/amdgpu_kms.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/037796d9ca1da97978deaefd88ca5649f6cb69f5 https://git.kernel.org/stable/c/11b6193c8841a052b7907006ffb1e02468b1448e https://git.kernel.org/stable/c/8d6f773d7479034a574ecc3b585bcd07d46b4824 https://git.kernel.org/stable/c/f4a0a1ce147d1a6e428d7cb5e3b99fd695139fc7 https://git.kernel.org/stable/c/1a6023edfbb5673f55fab6348f135fb3b1428ea5