CVE-2025-37766: drm/amd/pm: Prevent division by zero
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/pm: Prevent division by zero
The user can set any speed value.
If speed is greater than UINT_MAX/8, division by zero is possible.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
The Linux kernel CVE team has assigned CVE-2025-37766 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.20 with commit 031db09017da532d4dc7bbba8c734cfc80f49f34 and fixed in 6.1.135 with commit ffd688804425579a472fbd2525bedb58b1d28bd9 Issue introduced in 4.20 with commit 031db09017da532d4dc7bbba8c734cfc80f49f34 and fixed in 6.6.88 with commit 068091b796480819bf70b159f17e222ad8bea900 Issue introduced in 4.20 with commit 031db09017da532d4dc7bbba8c734cfc80f49f34 and fixed in 6.12.25 with commit 42f7b5d12c28b2a601a98d10a80c6db1fe1a2900 Issue introduced in 4.20 with commit 031db09017da532d4dc7bbba8c734cfc80f49f34 and fixed in 6.14.4 with commit affd2241927a1e74c0aecd50c2d920dc4213c56d Issue introduced in 4.20 with commit 031db09017da532d4dc7bbba8c734cfc80f49f34 and fixed in 6.15-rc1 with commit 4e3d9508c056d7e0a56b58d5c81253e2a0d22b6c
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-37766
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/pm/powerplay/hwmgr/vega20_thermal.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/ffd688804425579a472fbd2525bedb58b1d28bd9 https://git.kernel.org/stable/c/068091b796480819bf70b159f17e222ad8bea900 https://git.kernel.org/stable/c/42f7b5d12c28b2a601a98d10a80c6db1fe1a2900 https://git.kernel.org/stable/c/affd2241927a1e74c0aecd50c2d920dc4213c56d https://git.kernel.org/stable/c/4e3d9508c056d7e0a56b58d5c81253e2a0d22b6c