drm/amdgpu: reject oversized IBs with per-ring packet limits
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fd37f9dd5b5ab70a46fa7bc76623c0528d602b27, Kernel 07fe270ec07c138a70afe7a81e115a85c35c545c, Kernel 1474f3970d1afd303e12ff14d06808eabb371576 and 8 more.
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: reject oversized IBs with per-ring packet limits On GFX rings, amdgpu_cs_p2_ib() passed user-supplied ib_bytes through to ib->length_dw without a limit, while ring_emit_ib() encodes length into packet fields. Oversized values can corrupt adjacent control bits and destabilize command submission. Add a per-ring IB packet size limit helper and reject command submissions exceeding the corresponding dword limit before IB allocation. Use the documented 20-bit limit for GFX/compute/SDMA/VPE, and apply the MM fallback limit for other ring types. (cherry picked from commit 7f48fa2cf62e3fa6c9c3870aa74988f773247e52)
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <fd37f9dd5b5ab70a46fa7bc76623c0528d602b27, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <07fe270ec07c138a70afe7a81e115a85c35c545c, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <1474f3970d1afd303e12ff14d06808eabb371576, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <67a5d905c17a5066b0f6f950da11da93d56d122b, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <6e164ba1057175fb8a370d8e05cbff5c57eac0c8, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <ecdaefe825555f133a2ef80f39d1ae94d6e1b26a, =4.2 | fd37f9dd5b5ab70a46fa7bc76623c0528d602b27, 07fe270ec07c138a70afe7a81e115a85c35c545c, 1474f3970d1afd303e12ff14d06808eabb371576, 67a5d905c17a5066b0f6f950da11da93d56d122b, 6e164ba1057175fb8a370d8e05cbff5c57eac0c8, ecdaefe825555f133a2ef80f39d1ae94d6e1b26a |
| linux-kernel: Kernel | >=6.13.0 <6.18.46, >=6.19.0 <7.1.10, >=6.2.0 <6.6.160, >=6.7.0 <6.12.105, >=4.2.0 <6.1.191 | 6.18.46, 7.1.10, 6.6.160, 6.12.105, 6.1.191 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket