drm/amdgpu: Add bounds checking to ib_{get,set}_value
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d38ceaf99ed015f2a0b9af3499791bd3a3daae21 · < 66085e206431ef88ce36f53c1f53d570790ccc9e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: Add bounds checking to ib_{get,set}_value
The uvd/vce/vcn code accesses the IB at predefined offsets without checking that the IB is large enough. Check the bounds here. The caller is responsible for making sure it can handle arbitrary return values.
Also make the idx a uint32_t to prevent overflows causing the condition to fail.
From the CVE record · Linux
The Linux kernel’s AMDGPU uvd/vce/vcn code accesses an indirect buffer (IB) at predefined offsets without checking its size. This can cause out-of-bounds access; the input does not specify an attacker action, access requirements, or user interaction.
Anyone running a Linux kernel with the affected AMDGPU code should check their version; affected versions are not specified.