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

Published May 17, 2024
·
Updated

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 kfdaddpeerprop() warn: can 'iolink2' even be NULL?

Affected Software

4 affected componentsFixes available
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
Linux Linux kernel>=6.0<6.1.75
Linux Linux kernel>=6.2<6.6.14
Linux Linux kernel>=6.7<6.7.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  2. Configuration

    In kfd_topology.c, update kfd_create_indirect_link_prop() to confirm the list is non-empty before utilizing list_first_entry; if the list is empty, return -ENODATA.

    Linux kernel (drivers/gpu/drm/amd/amdkfd/kfd_topology.c) kfd_create_indirect_link_prop(): list_first_entry usage = Check list is non-empty before calling list_first_entry; if empty return -ENODATA

Event History

May 17, 2024
CVE Published
via MITRE·02:24 PM
Data Sourced
via MITRE·02:24 PM
DescriptionSeverity
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-52678?

CVE-2023-52678 is considered a moderate severity vulnerability in the Linux kernel.

2

How do I fix CVE-2023-52678?

To fix CVE-2023-52678, update your Linux kernel to one of the patched versions listed, such as 5.10.223-1 or 6.12.11-1.

3

What does CVE-2023-52678 affect?

CVE-2023-52678 affects the DRM subsystem in the Linux kernel specifically related to the amdkfd component.

4

What is the nature of the vulnerability in CVE-2023-52678?

The nature of CVE-2023-52678 is an improper check for an empty list before utilizing list_first_entry, which can lead to a negative data error.

5

Which versions of the Linux kernel are vulnerable to CVE-2023-52678?

Versions of the Linux kernel prior to the fixed versions such as 5.10.223-1 and 6.12.11-1 are vulnerable to CVE-2023-52678.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203