Skip to contentSkip to conversation

CVE-2026-80541: drm/amdgpu: validate GEM_CREATE domain combinations

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 26

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: validate GEM_CREATE domain combinations

AMDGPU_GEM_CREATE checked domain bits against AMDGPU_GEM_DOMAIN_MASK, but did not validate domain combinations. Userspace could combine CPU|GTT|VRAM with DOORBELL, GDS, GWS, or OA, making amdgpu_bo_placement_from_domain() exceed AMDGPU_BO_MAX_PLACEMENTS and hit BUG_ON().

Allow combinations only within CPU/GTT/VRAM, and require non-CPU/GTT/ VRAM domains to be specified one at a time. Return -EINVAL for invalid combinations in amdgpu_gem_create_ioctl().

v2: Rename helper from amdgpu_gem_domain_valid() to
amdgpu_gem_are_domains_valid() (Christian)

(cherry picked from commit db39852d0c39843cb02048dfb47e4b8c703e9080)

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

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

	Fixed in 5.10.266 with commit 5c73485af7ad9c3ae592db3481f370bc07705391
	Fixed in 5.15.217 with commit 584e3d47736fe2e7184ef3fc16b00b41485f96c6
	Fixed in 6.1.184 with commit 66133fc05c3af002f45de8a71b833c026ccbfba6
	Fixed in 6.6.153 with commit ce5da474c3ddf7cccec5dce6aa4296297dd7caff
	Fixed in 6.12.105 with commit 493355096e397f9217b41c8574ed2784c7351443
	Fixed in 6.18.46 with commit 220aa2589d7321fb68d2e8597862711b5f22ae0b
	Fixed in 7.1.10 with commit 80f0b53860d02577709d69a312a29ca674b9297c
	Fixed in 7.2 with commit 5e9d136ad74df4edec67e502ce267597064d8f86

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

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_gem.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/5c73485af7ad9c3ae592db3481f370bc07705391
	https://git.kernel.org/stable/c/584e3d47736fe2e7184ef3fc16b00b41485f96c6
	https://git.kernel.org/stable/c/66133fc05c3af002f45de8a71b833c026ccbfba6
	https://git.kernel.org/stable/c/ce5da474c3ddf7cccec5dce6aa4296297dd7caff
	https://git.kernel.org/stable/c/493355096e397f9217b41c8574ed2784c7351443
	https://git.kernel.org/stable/c/220aa2589d7321fb68d2e8597862711b5f22ae0b
	https://git.kernel.org/stable/c/80f0b53860d02577709d69a312a29ca674b9297c
	https://git.kernel.org/stable/c/5e9d136ad74df4edec67e502ce267597064d8f86