drm/amdgpu: fix division by zero with invalid uvd dimensions
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ffb33d466a68cea3e8a3dbed04d79037a3cbabd1, Kernel 004d0453cfef16f056cb7b8bc04f69f19cf9df32, Kernel 00ee64910ecf748cc15b23bbcbea472c203ec1e8 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: fix division by zero with invalid uvd dimensions When width or height is less than 16, width_in_mb or height_in_mb becomes 0, leading to fs_in_mb being 0. This causes a division by zero when calculating num_dpb_buffer in H264 and H264 Perf decode paths. Add validation to reject frames with width < 16 or height < 16 before performing any calculations that depend on these values. V2: Format change - move up all vaiable definitions. V3: Use warn_once to avoid spam. (cherry picked from commit 3e41d26c70b0a459d041cc19482a226c4b7423cb)
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <ffb33d466a68cea3e8a3dbed04d79037a3cbabd1, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <004d0453cfef16f056cb7b8bc04f69f19cf9df32, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <00ee64910ecf748cc15b23bbcbea472c203ec1e8, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <0c01c811be47e6b146552dd59bfedbea8f09b8f4, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <52f9a588296432accf2982f7d258192a37562f4f, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <81c9b4921f62d1642b9d775524ae9240e521a5ed, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <a00946b5ab7c25da5685ca9c58f50ff6f43c0fdf, >=d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <be725ab23aa45c11a5afef3e2a9f6d8c084ae5dc, =4.2 | ffb33d466a68cea3e8a3dbed04d79037a3cbabd1, 004d0453cfef16f056cb7b8bc04f69f19cf9df32, 00ee64910ecf748cc15b23bbcbea472c203ec1e8, 0c01c811be47e6b146552dd59bfedbea8f09b8f4, 52f9a588296432accf2982f7d258192a37562f4f, 81c9b4921f62d1642b9d775524ae9240e521a5ed, a00946b5ab7c25da5685ca9c58f50ff6f43c0fdf, be725ab23aa45c11a5afef3e2a9f6d8c084ae5dc |
| linux-kernel: Kernel | >=5.11.0 <5.15.216, >=5.16.0 <6.1.183, >=6.13.0 <6.18.42, >=6.19.0 <7.1.6, >=6.2.0 <6.6.148, >=6.7.0 <6.12.101, >=4.2.0 <5.10.265 | 5.15.216, 6.1.183, 6.18.42, 7.1.6, 6.6.148, 6.12.101, 5.10.265 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket