Skip to contentSkip to conversation

CVE-2026-53376: drm/amdkfd: Add upper bound check for num_of_nodes

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

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: Add upper bound check for num_of_nodes

drm/amdkfd: Add upper bound check for num_of_nodes in kfd_ioctl_get_process_apertures_new.

(cherry picked from commit 98ff46a5ea090c14d2cdb4f5b993b05d74f3949f)

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

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

	Fixed in 6.6.140 with commit 4a8093c7def141cc6e854fbe3f9693867982418f
	Fixed in 6.12.90 with commit 6ba6ec5fcbb0d03ca11ed1cc38d57a7deb6c6b20
	Fixed in 6.18.32 with commit 44d5a450c04d3d734c13a03561c3131020d66edf
	Fixed in 7.0.9 with commit 7b80137eb8aa9d1cbfe7ccf3eeb1faa94ae35d7e
	Fixed in 7.1 with commit 74b73fa56a395d46745e4f245225963e9f8be7f1

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

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
drivers/gpu/drm/amd/amdkfd/kfd_topology.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/4a8093c7def141cc6e854fbe3f9693867982418f
	https://git.kernel.org/stable/c/6ba6ec5fcbb0d03ca11ed1cc38d57a7deb6c6b20
	https://git.kernel.org/stable/c/44d5a450c04d3d734c13a03561c3131020d66edf
	https://git.kernel.org/stable/c/7b80137eb8aa9d1cbfe7ccf3eeb1faa94ae35d7e
	https://git.kernel.org/stable/c/74b73fa56a395d46745e4f245225963e9f8be7f1