# CVE-2023-52678: drm/amdkfd: Confirm list is non-empty before utilizing list_first_entry in kfd_topology.c

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-05-17T14:24:42.715Z
- Modified: 2026-08-05T09:10:59.732Z
- Weaknesses: CWE-754
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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?

(As written by CVE List.)

## Affected

- Linux Linux: from 0f28cca87e9afc22280c44d378d2a6e249933977 before 4525525cb7161d08f95d0e47025323dd10214313; from 0f28cca87e9afc22280c44d378d2a6e249933977 before 5024cce888e11e5688f77df81db9e14828495d64; from 0f28cca87e9afc22280c44d378d2a6e249933977 before 4ac4e023ed7ab1c7c67d2d12b7b6198fcd099e5c; from 0f28cca87e9afc22280c44d378d2a6e249933977 before 499839eca34ad62d43025ec0b46b80e77065f6d8; 6.0 (not affected: before 6.0; from 6.1.75 up to 6.1.*; from 6.6.14 up to 6.6.*; from 6.7.2 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 6.0 before 6.1.75; from 6.2 before 6.6.14; from 6.7 before 6.7.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/4525525cb7161d08f95d0e47025323dd10214313> (patch)
- <https://git.kernel.org/stable/c/5024cce888e11e5688f77df81db9e14828495d64> (patch)
- <https://git.kernel.org/stable/c/4ac4e023ed7ab1c7c67d2d12b7b6198fcd099e5c> (patch)
- <https://git.kernel.org/stable/c/499839eca34ad62d43025ec0b46b80e77065f6d8> (patch)

## Sources

- CVE List: [CVE-2023-52678](https://www.cve.org/CVERecord?id=CVE-2023-52678), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-52678](https://nvd.nist.gov/vuln/detail/CVE-2023-52678), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-52678 · Whole record: https://cve.day/CVE-2023-52678.json · Rebuilt by cve.day 2026-11-25T22:58:33.968Z
