Skip to contentSkip to conversation

CVE-2026-46229: drm/amdkfd: Clear VRAM on allocation to prevent stale data exposure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

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

drm/amdkfd: Clear VRAM on allocation to prevent stale data exposure

KFD VRAM allocations set AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE but not AMDGPU_GEM_CREATE_VRAM_CLEARED, leaving freshly allocated VRAM with stale data from prior use observable by compute kernels.

The GEM ioctl path already sets VRAM_CLEARED for all userspace allocations via amdgpu_gem_create_ioctl() and amdgpu_mode_dumb_create(). The KFD path was missing this flag, allowing stale page table remnants to leak into user buffers.

This causes crashes in RCCL P2P transport where non-zero data in ptrExchange/head/tail fields corrupts the protocol handshake.

The Linux kernel CVE team has assigned CVE-2026-46229 to this issue.

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

	Fixed in 6.6.140 with commit 1db431380879fd9d28b763a88a0c0431be5be8df
	Fixed in 6.12.90 with commit 32b153658f017ad2f5bf8aab479e8d16ac95bc3a
	Fixed in 6.18.32 with commit 77d0b5d11387071770246fd0185a69fa28e8e109
	Fixed in 7.0.9 with commit 047d44d8d29a6a1a5757256837aa9dd78e3cd0b5
	Fixed in 7.1-rc1 with commit ad52d61d82181dbdb7f05826de38352d5e550cc2

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

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_amdkfd_gpuvm.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/1db431380879fd9d28b763a88a0c0431be5be8df
	https://git.kernel.org/stable/c/32b153658f017ad2f5bf8aab479e8d16ac95bc3a
	https://git.kernel.org/stable/c/77d0b5d11387071770246fd0185a69fa28e8e109
	https://git.kernel.org/stable/c/047d44d8d29a6a1a5757256837aa9dd78e3cd0b5
	https://git.kernel.org/stable/c/ad52d61d82181dbdb7f05826de38352d5e550cc2