drm/amdgpu/vce1: Fix VCE 1 firmware size and offsets
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu/vce1: Fix VCE 1 firmware size and offsets
The VCPU BO contains the actual FW at an offset, but it was not calculated into the VCPU BO size. Subtract this from the FW size to make sure there is no out of bounds access.
Make sure the stack and data offsets are aligned to the 32K TLB size.
Check that the FW microcode actually fits in the space that is reserved for it.
(cherry picked from commit c16fe59f622a080fc457a57b3e8f14c780699449)
From the CVE record · Linux
The Linux kernel’s AMDGPU VCE 1 code did not account for a firmware offset when sizing a buffer, potentially allowing out-of-bounds access. The input does not specify how an attacker could trigger this issue or whether network access, authentication, or user interaction is required.
Teams running Linux kernels with AMDGPU VCE 1 support should check whether their kernel is affected; affected versions are not specified.