Skip to contentSkip to conversation

CVE-2025-21987: drm/amdgpu: init return value in amdgpu_ttm_clear_buffer

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 2, 2025

lore
Share & tools
lore
#0 lore raw

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: init return value in amdgpu_ttm_clear_buffer

Otherwise an uninitialized value can be returned if amdgpu_res_cleared returns true for all regions.

Possibly closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3812

(cherry picked from commit 7c62aacc3b452f73a1284198c81551035fac6d71)

The Linux kernel CVE team has assigned CVE-2025-21987 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.10 with commit a68c7eaa7a8ffdec9287ba1561a668d674c20a13 and fixed in 6.12.18 with commit d2c9625b0ade41f9917875d88173a0cc802b95fc
	Issue introduced in 6.10 with commit a68c7eaa7a8ffdec9287ba1561a668d674c20a13 and fixed in 6.13.6 with commit 5bd98c2df4a0f2e2dcbdf563feb8d348406377b5
	Issue introduced in 6.10 with commit a68c7eaa7a8ffdec9287ba1561a668d674c20a13 and fixed in 6.14 with commit d3c7059b6a8600fc62cd863f1ea203b8675e63e1

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-21987

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_ttm.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/d2c9625b0ade41f9917875d88173a0cc802b95fc
	https://git.kernel.org/stable/c/5bd98c2df4a0f2e2dcbdf563feb8d348406377b5
	https://git.kernel.org/stable/c/d3c7059b6a8600fc62cd863f1ea203b8675e63e1