Shellfeed logo Shellfeed

CVE-2026-80541 · HIGH (CVSS 7.8)

Summary: drm/amdgpu: validate GEM_CREATE domain combinations

Details

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)

Severity

HIGH (CVSS 7.8) — vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [77a2faa55c1a497f4e7e89eabd11830f0e3cb3dd – 5c73485af7ad9c3ae592db3481f370bc07705391]
  • Linux Kernel [4.20.0 – 5.10.266] [5.11.0 – 5.15.217] [5.16.0 – 6.1.184] [6.2.0 – 6.6.153] [6.7.0 – 6.12.105] [6.13.0 – 6.18.46] [6.19.0 – 7.1.10]

References