In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Confirm list is non-empty before utilizing listfirstentry in kfdtopology.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 kfdaddpeer_prop() warn: can 'iolink2' even be NULL?