Skip to contentSkip to conversation

CVE-2025-21990: drm/amdgpu: NULL-check BO's backing store when determining GFX12 PTE flags

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: NULL-check BO's backing store when determining GFX12 PTE flags

PRT BOs may not have any backing store, so bo->tbo.resource will be NULL. Check for that before dereferencing.

(cherry picked from commit 3e3fcd29b505cebed659311337ea03b7698767fc)

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

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

	Issue introduced in 6.11 with commit 0cce5f285d9ae81c33993f3270fe77f5e74a69ab and fixed in 6.12.20 with commit 72235808eabea93055b459a63443bd9cd6b08aa4
	Issue introduced in 6.11 with commit 0cce5f285d9ae81c33993f3270fe77f5e74a69ab and fixed in 6.13.8 with commit af23e39b9e9280b1f6299b6f2fa090a1694240ad
	Issue introduced in 6.11 with commit 0cce5f285d9ae81c33993f3270fe77f5e74a69ab and fixed in 6.14 with commit 6cc30748e17ea2a64051ceaf83a8372484e597f1

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

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/gmc_v12_0.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/72235808eabea93055b459a63443bd9cd6b08aa4
	https://git.kernel.org/stable/c/af23e39b9e9280b1f6299b6f2fa090a1694240ad
	https://git.kernel.org/stable/c/6cc30748e17ea2a64051ceaf83a8372484e597f1