blob: 94fc2cdf96a5eef2e6bc3b483846cd7eebd01018 [file] [log] [blame]
From bippy-7c5fe7eed585 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2025-21956: drm/amd/display: Assign normalized_pix_clk when color depth = 14
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Assign normalized_pix_clk when color depth = 14
[WHY & HOW]
A warning message "WARNING: CPU: 4 PID: 459 at ... /dc_resource.c:3397
calculate_phy_pix_clks+0xef/0x100 [amdgpu]" occurs because the
display_color_depth == COLOR_DEPTH_141414 is not handled. This is
observed in Radeon RX 6600 XT.
It is fixed by assigning pix_clk * (14 * 3) / 24 - same as the rests.
Also fixes the indentation in get_norm_pix_clk.
(cherry picked from commit 274a87eb389f58eddcbc5659ab0b180b37e92775)
The Linux kernel CVE team has assigned CVE-2025-21956 to this issue.
Affected and fixed versions
===========================
Fixed in 5.4.292 with commit cca3ab74f90176099b6392e8e894b52b27b3d080
Fixed in 5.10.236 with commit 0174a2e5770efee9dbd4b58963ed4d939298ff5e
Fixed in 5.15.180 with commit 0c0016712e5dc23ce4a7e673cbebc24a535d8c8a
Fixed in 6.1.132 with commit dc831b38680c47d07e425871a9852109183895cf
Fixed in 6.6.84 with commit a8f77e1658d78e4a8bb227a83bcee67de97f7634
Fixed in 6.12.20 with commit 04f90b505ad3a6eed474bbaa03167095fef5203a
Fixed in 6.13.8 with commit 27df30106690969f7d63604f0d49ed8e9bffa2cb
Fixed in 6.14 with commit 79e31396fdd7037c503e6add15af7cb00633ea92
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-2025-21956
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/core/dc_resource.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/cca3ab74f90176099b6392e8e894b52b27b3d080
https://git.kernel.org/stable/c/0174a2e5770efee9dbd4b58963ed4d939298ff5e
https://git.kernel.org/stable/c/0c0016712e5dc23ce4a7e673cbebc24a535d8c8a
https://git.kernel.org/stable/c/dc831b38680c47d07e425871a9852109183895cf
https://git.kernel.org/stable/c/a8f77e1658d78e4a8bb227a83bcee67de97f7634
https://git.kernel.org/stable/c/04f90b505ad3a6eed474bbaa03167095fef5203a
https://git.kernel.org/stable/c/27df30106690969f7d63604f0d49ed8e9bffa2cb
https://git.kernel.org/stable/c/79e31396fdd7037c503e6add15af7cb00633ea92