HIGH Introduced in 4.2
amdgpu UvdDecode OOB
CVE-2026-80540
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.7HIGH
01Description
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)
02KernelScan AI Analysis
Risk summary
A local user with access to the AMD GPU UVD video decode interface can trigger an out-of-bounds write by submitting a crafted decode command with an oversized pitch, corrupting kernel heap memory and potentially escalating privileges or crashing the system.
Vulnerability analysis
The UVD decode command parser computes the minimum image buffer size using the image width instead of the pitch, and does not reject pitch values exceeding 4096. A local attacker with access to the AMD GPU device can submit a video decode command stream with a large pitch, causing the computed buffer size to overflow and the kernel to write beyond the allocated decode buffer. The fix changes the size calculation to use pitch times height and rejects pitch values over 4096, preventing the overflow. The vulnerable path is reachable from a local process with access to the amdgpu DRM device.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 4.2 | 5.10.266 | bc7397a033ac |
| 6.1 | 4.2 | 6.1.184 | b7549e3f96c7 |
| 6.6 | 4.2 | 6.6.153 | 60539d517e84 |
| 6.12 | 4.2 | 6.12.105 | 271a7da84a62 |
| 6.18 | 4.2 | 6.18.46 | 25ee120f3803 |
| 7.1 | 4.2 | 7.1.10 | 5cbd8af02b0b |
| mainline | 4.2 | 7.2 | b8bb9ba3f101 |
| 5.15 | 4.2 | 5.15.217 | d058f7a67094 |
| cip/4.19 | 4.2 | 4.19.325-cip136 | 27ed0ac2bcc8 |
| cip/4.19-rt | 4.2 | 4.19.325-cip136-rt50 | 27ed0ac2bcc8 |
| cip/4.4 | 4.2 | 4.4.302-cip115 | 7090efa2b92c |
| cip/4.4-rt | 4.2 | 4.4.302-cip115-rt63 | 7090efa2b92c |
| cip/5.10 | 4.2 | 5.10.268-cip77 | bc7397a033ac |
| cip/5.10-rt | 4.2 | 5.10.268-cip77-rt34 | bc7397a033ac |
| cip/6.1 | 4.2 | 6.1.187-cip60 | b7549e3f96c7 |
| cip/6.12 | 4.2 | 6.12.108-cip31 | 271a7da84a62 |