Linux
drm/amdgpu: validate GEM_CREATE domain combinations
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)
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 77a2faa55c1a497f4e7e89eabd11830f0e3cb3dd, < 5c73485af7ad9c3ae592db3481f370bc07705391
- >= 77a2faa55c1a497f4e7e89eabd11830f0e3cb3dd, < 584e3d47736fe2e7184ef3fc16b00b41485f96c6
- >= 77a2faa55c1a497f4e7e89eabd11830f0e3cb3dd, < 66133fc05c3af002f45de8a71b833c026ccbfba6
- >= 77a2faa55c1a497f4e7e89eabd11830f0e3cb3dd, < ce5da474c3ddf7cccec5dce6aa4296297dd7caff
- >= 77a2faa55c1a497f4e7e89eabd11830f0e3cb3dd, < 493355096e397f9217b41c8574ed2784c7351443
- >= 77a2faa55c1a497f4e7e89eabd11830f0e3cb3dd, < 220aa2589d7321fb68d2e8597862711b5f22ae0b
- >= 77a2faa55c1a497f4e7e89eabd11830f0e3cb3dd, < 80f0b53860d02577709d69a312a29ca674b9297c
- >= 77a2faa55c1a497f4e7e89eabd11830f0e3cb3dd, < 5e9d136ad74df4edec67e502ce267597064d8f86
Fixed in 5c73485af7ad9c3ae592db3481f370bc07705391, 584e3d47736fe2e7184ef3fc16b00b41485f96c6, 66133fc05c3af002f45de8a71b833c026ccbfba6, ce5da474c3ddf7cccec5dce6aa4296297dd7caff, 493355096e397f9217b41c8574ed2784c7351443, 220aa2589d7321fb68d2e8597862711b5f22ae0b, 80f0b53860d02577709d69a312a29ca674b9297c, 5e9d136ad74df4edec67e502ce267597064d8f86
- 4.20
Fixed in 0, 5.10.266, 5.15.217, 6.1.184, 6.6.153, 6.12.105, 6.18.46, 7.1.10, 7.2
Mitigation
Upgrade Linux to 5c73485af7ad9c3ae592db3481f370bc07705391 or 584e3d47736fe2e7184ef3fc16b00b41485f96c6 or 66133fc05c3af002f45de8a71b833c026ccbfba6 or ce5da474c3ddf7cccec5dce6aa4296297dd7caff or 493355096e397f9217b41c8574ed2784c7351443 or 220aa2589d7321fb68d2e8597862711b5f22ae0b or 80f0b53860d02577709d69a312a29ca674b9297c or 5e9d136ad74df4edec67e502ce267597064d8f86 or later.
Upgrade Linux to 0 or 5.10.266 or 5.15.217 or 6.1.184 or 6.6.153 or 6.12.105 or 6.18.46 or 7.1.10 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.