CVE-2023-52678

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

State
Published
Severity
7.8 High
Published
May 17, 2024
Updated
Aug 5, 2026
Reserved
Mar 7, 2024

Read the record on cve.org

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?

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0f28cca87e9afc22280c44d378d2a6e249933977 to before 4525525cb7161d08f95d0e47025323dd10214313Affected
  • 0f28cca87e9afc22280c44d378d2a6e249933977 to before 5024cce888e11e5688f77df81db9e14828495d64Affected
  • 0f28cca87e9afc22280c44d378d2a6e249933977 to before 4ac4e023ed7ab1c7c67d2d12b7b6198fcd099e5cAffected
  • 0f28cca87e9afc22280c44d378d2a6e249933977 to before 499839eca34ad62d43025ec0b46b80e77065f6d8Affected
LinuxLinux
  • 6.0Affected
  • before 6.0Not affected
  • 6.1.75 through 6.1.*Not affected
  • 6.6.14 through 6.6.*Not affected
  • 6.7.2 through 6.7.*Not affected
  • 6.8 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.