drm/amdgpu/gfx: fix cleaner shader IB buffer overflow
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e28420e36542ae8b66a5bdcec419525f521bddf8, Kernel 201633f47b542a99bb7baafdfcda7781249fb3d9, Kernel 3e864bf2a32a1cbdf1e0f9c5a5a4176e8575f4a3 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu/gfx: fix cleaner shader IB buffer overflow The cleaner shader sysfs path allocates a 16-dword (64 byte) IB but incorrectly fills (align_mask + 1) dwords. On GFX rings align_mask is 0xff, so the loop wrote 256 dwords into a 64-byte buffer, causing a kernel page fault. The IB only needs to be a minimal NOP shell to schedule the job; the cleaner shader itself is emitted on the ring via emit_cleaner_shader(). Fill 16 dwords to match the allocation. v2: Use ib_size_dw variable (Lijo) (cherry picked from commit bf21af331ebf72d0935fd70c73192414a422c03a)
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=d361ad5d2fc0e4d59d5d538092c9b37889756642 <e28420e36542ae8b66a5bdcec419525f521bddf8, >=d361ad5d2fc0e4d59d5d538092c9b37889756642 <201633f47b542a99bb7baafdfcda7781249fb3d9, >=d361ad5d2fc0e4d59d5d538092c9b37889756642 <3e864bf2a32a1cbdf1e0f9c5a5a4176e8575f4a3, >=d361ad5d2fc0e4d59d5d538092c9b37889756642 <9cd9a983769a4d0e9cc80a287316ee79685d38b3, =6.12 | e28420e36542ae8b66a5bdcec419525f521bddf8, 201633f47b542a99bb7baafdfcda7781249fb3d9, 3e864bf2a32a1cbdf1e0f9c5a5a4176e8575f4a3, 9cd9a983769a4d0e9cc80a287316ee79685d38b3 |
| linux-kernel: Kernel | >=6.13.0 <6.18.42, >=6.19.0 <7.1.6, >=6.12.0 <6.12.103 | 6.18.42, 7.1.6, 6.12.103 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket