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.
https://git.kernel.org/stable/c/fec8b11b55e53ff51a741e56894fe331a516f5c6
https://git.kernel.org/stable/c/ee26fcf7c5cf131f0b6a732faa27d79ec61b8ec7
https://git.kernel.org/stable/c/a853178d23e774adfe3a35073c375b04b3b20f7d
https://git.kernel.org/stable/c/66085e206431ef88ce36f53c1f53d570790ccc9e
https://git.kernel.org/stable/c/0fb5cb556b249b2b64c0f818136c4c3e838ef53f