CVE-2026-90035: drm/amd/display: fix division by zero in get_estimated_bw()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: fix division by zero in get_estimated_bw()
get_estimated_bw() divides by link->dpia_bw_alloc_config.bw_granularity, which is zeroed by reset_bw_alloc_struct() and only populated once DP_TUNNELING_BW_ALLOC_CAP_CHANGED has been handled.
link_dp_dpia_handle_bw_alloc_status(), the DPCD interrupt handler, calls get_estimated_bw() whenever DP_TUNNELING_ESTIMATED_BW_CHANGED is set, independently of whether DP_TUNNELING_BW_ALLOC_CAP_CHANGED has ever fired for that link. A connected USB4/DPIA tunneling device that reports an estimated-bandwidth change before ever reporting a capability change drives a division by zero in this IRQ path.
link_dpia_send_bw_alloc_request() already guards the same bw_granularity division; add the identical guard here rather than introducing a new pattern.
(cherry picked from commit f2a961457c33dc34223aad5c9e8971de34a4eed3)
The Linux kernel CVE team has assigned CVE-2026-90035 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.3 with commit 8e5cfe547bf3beeb29d9608be68d22dff2b5012b and fixed in 6.6.157 with commit 4c5b61b9df6ab33b55f228e1b6579cefad11a9f7 Issue introduced in 6.3 with commit 8e5cfe547bf3beeb29d9608be68d22dff2b5012b and fixed in 6.12.110 with commit ac2ab58a79bf2401ae8c5d1c030bf0a5a376f43a Issue introduced in 6.3 with commit 8e5cfe547bf3beeb29d9608be68d22dff2b5012b and fixed in 6.18.51 with commit 4814f28c45f58a71a80d09b80a60da6a063b539a Issue introduced in 6.3 with commit 8e5cfe547bf3beeb29d9608be68d22dff2b5012b and fixed in 7.2.5 with commit b08c3d5ee7feadd821208f7c2c1ec02a16ce5878 Issue introduced in 6.3 with commit 8e5cfe547bf3beeb29d9608be68d22dff2b5012b and fixed in 7.3-rc2 with commit f63de9054da858d57054474c32464106f8375e0d
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-90035
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/dc/link/protocols/link_dp_dpia_bw.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/4c5b61b9df6ab33b55f228e1b6579cefad11a9f7 https://git.kernel.org/stable/c/ac2ab58a79bf2401ae8c5d1c030bf0a5a376f43a https://git.kernel.org/stable/c/4814f28c45f58a71a80d09b80a60da6a063b539a https://git.kernel.org/stable/c/b08c3d5ee7feadd821208f7c2c1ec02a16ce5878 https://git.kernel.org/stable/c/f63de9054da858d57054474c32464106f8375e0d