Skip to contentSkip to conversation

CVE-2026-46197: drm/amdkfd: validate SVM ioctl nattr against buffer size

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: validate SVM ioctl nattr against buffer size

Validate nattr field against the buffer size, preventing out-of-bounds buffer access via user-controlled attribute count.

(cherry picked from commit 5eca8bfdfa456c3304ca77523718fe24254c172f)

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

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

	Fixed in 6.6.140 with commit 91c6dc5a41695d02dfc6299f106ac38a6c493e52
	Fixed in 6.12.90 with commit ccd060b5c7cc75ae7e211c250b97c5b6272e7efc
	Fixed in 6.18.32 with commit db9530a9873a7c85d2266a922589ebcf427fa631
	Fixed in 7.0.9 with commit 6abd3a4417cb73a7d0db7e25bf11fae1074bdba3
	Fixed in 7.1-rc2 with commit 045e0ff208f0838a246c10204105126611b267a1

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

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/amdkfd/kfd_chardev.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h

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/91c6dc5a41695d02dfc6299f106ac38a6c493e52
	https://git.kernel.org/stable/c/ccd060b5c7cc75ae7e211c250b97c5b6272e7efc
	https://git.kernel.org/stable/c/db9530a9873a7c85d2266a922589ebcf427fa631
	https://git.kernel.org/stable/c/6abd3a4417cb73a7d0db7e25bf11fae1074bdba3
	https://git.kernel.org/stable/c/045e0ff208f0838a246c10204105126611b267a1