Skip to contentSkip to conversation

CVE-2026-46218: drm/amdgpu: Add bounds checking to ib_{get,set}_value

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/amdgpu: Add bounds checking to ib_{get,set}_value

The uvd/vce/vcn code accesses the IB at predefined offsets without checking that the IB is large enough. Check the bounds here. The caller is responsible for making sure it can handle arbitrary return values.

Also make the idx a uint32_t to prevent overflows causing the condition to fail.

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

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

	Fixed in 6.6.140 with commit 0fb5cb556b249b2b64c0f818136c4c3e838ef53f
	Fixed in 6.12.90 with commit a853178d23e774adfe3a35073c375b04b3b20f7d
	Fixed in 6.18.32 with commit fec8b11b55e53ff51a741e56894fe331a516f5c6
	Fixed in 7.0.9 with commit ee26fcf7c5cf131f0b6a732faa27d79ec61b8ec7
	Fixed in 7.1-rc1 with commit 66085e206431ef88ce36f53c1f53d570790ccc9e

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

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_ring.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/0fb5cb556b249b2b64c0f818136c4c3e838ef53f
	https://git.kernel.org/stable/c/a853178d23e774adfe3a35073c375b04b3b20f7d
	https://git.kernel.org/stable/c/fec8b11b55e53ff51a741e56894fe331a516f5c6
	https://git.kernel.org/stable/c/ee26fcf7c5cf131f0b6a732faa27d79ec61b8ec7
	https://git.kernel.org/stable/c/66085e206431ef88ce36f53c1f53d570790ccc9e