Skip to contentSkip to conversation

CVE-2026-89814: drm/amdgpu: clamp the isolation index for rings outside a partition

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

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/amdgpu: clamp the isolation index for rings outside a partition

adev->isolation[] has one slot per partition, but a ring that is not assigned to one keeps AMDGPU_XCP_NO_PARTITION, which is ~0, so indexing the array with it is out of bounds. SDMA submissions hit this on both the isolation enforcement and the VM flush path and trip UBSAN.

Fall back to the first slot the way the cleaner shader path already does, and stop taking the address before the ring type check that makes it relevant.

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

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

	Fixed in 6.18.51 with commit 964de255497ffd7cb8a86e405b8ac6d927e7e177
	Fixed in 7.2.5 with commit 0bfb938182d1313e5cac32ae38dbaaa4eabe4af4
	Fixed in 7.3-rc1 with commit b30900566642ceb2c9e12b56c2afec28d0fd91a0

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

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_device.c drivers/gpu/drm/amd/amdgpu/amdgpu_vm.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/964de255497ffd7cb8a86e405b8ac6d927e7e177
	https://git.kernel.org/stable/c/0bfb938182d1313e5cac32ae38dbaaa4eabe4af4
	https://git.kernel.org/stable/c/b30900566642ceb2c9e12b56c2afec28d0fd91a0