High · published May 17, 2024
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: Confirm list is non-empty before utilizing list_first_entry in kfd_topology.c
Before using list_first_entry, make sure to check that list is not
empty, if list is empty return -ENODATA.
Fixes the below:
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:1347 kfd_create_indirect_link_prop() warn: can 'gpu_link' even be NULL?
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:1428 kfd_add_peer_prop() warn: can 'iolink1' even be NULL?
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:1433 kfd_add_peer_prop() warn: can 'iolink2' even be NULL?
| Product | Versions | Fixed in |
|---|---|---|
| linux/linux_kernel | ≥ 6.0, < 6.1.75 | 6.1.75 |
| linux/linux_kernel | ≥ 6.2, < 6.6.14 | 6.6.14 |
| linux/linux_kernel | ≥ 6.7, < 6.7.2 | 6.7.2 |