In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: fix possible UAF in amdgpu_cs_pass1() Since the gang_size check is outside of chunk parsing loop, we need to reset i before we free the chunk data. Suggested by Ye Zhang (@VAR10CK) of Baidu Security.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024111958-CVE-2023-52921-78df@gregkh/T