drm/amdgpu: Fix UVD decode image min size calculation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d38ceaf99ed015f2a0b9af3499791bd3a3daae21 · < 25ee120f3803ad9e416ef9f76f4c3234cc4d645b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: Fix UVD decode image min size calculation
This needs to use pitch instead of width. Also reject pitch over 4096 to avoid overflow.
(cherry picked from commit b41c8cb12e202b220353332ab87dc01a11f69304)
From the CVE record · Linux
The Linux kernel's AMDGPU UVD decode code calculates the minimum image size using width instead of pitch and does not reject pitches over 4096, which can cause an overflow. The input does not specify what an attacker could achieve or whether exploitation requires network access, authentication, local access, or user interaction.
Anyone running a Linux kernel with AMDGPU UVD decode should check their version; affected versions are not specified.