In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: Confirm list is non-empty before utilizing listfirstentry in kfd_topology.c
Before using listfirstentry, make sure to check that list is not empty, if list is empty return -ENODATA.
Fixes the below: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfdtopology.c:1347 kfdcreateindirectlinkprop() warn: can 'gpulink' even be NULL? drivers/gpu/drm/amd/amdgpu/../amdkfd/kfdtopology.c:1428 kfdaddpeerprop() warn: can 'iolink1' even be NULL? drivers/gpu/drm/amd/amdgpu/../amdkfd/kfdtopology.c:1433 kfdaddpeerprop() warn: can 'iolink2' even be NULL?