Skip to content
CVE PROGRAM SOURCE RECORD5.5 Medium

CVE-2024-58052

drm/amdgpu: Fix potential NULL pointer dereference in atomctrl_get_smc_sclk_range_table

Description

In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Fix potential NULL pointer dereference in atomctrl_get_smc_sclk_range_table The function atomctrl_get_smc_sclk_range_table() does not check the return value of smu_atom_get_data_table(). If smu_atom_get_data_table() fails to retrieve SMU_Info table, it returns NULL which is later dereferenced. Found by Linux Verification Center (linuxtesting.org) with SVACE. In practice this should never happen as this code only gets called on polaris chips and the vbios data table will always be present on those chips.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • a23eefa2f4615af91ea496ca5b55c9e7c6fa934c to < a713ba7167c2d74c477dd7764dbbdbe3199f17f4affected
  • a23eefa2f4615af91ea496ca5b55c9e7c6fa934c to < c47066ed7c8f3b320ef87fa6217a2b8b24e127ccaffected
  • a23eefa2f4615af91ea496ca5b55c9e7c6fa934c to < 2396bc91935c6da0588ce07850d07897974bd350affected
  • a23eefa2f4615af91ea496ca5b55c9e7c6fa934c to < ae522ad211ec4b72eaf742b25f24b0a406afcba1affected
  • a23eefa2f4615af91ea496ca5b55c9e7c6fa934c to < 6a30634a2e0f1dd3c6b39fd0f114c32893a9907aaffected
  • a23eefa2f4615af91ea496ca5b55c9e7c6fa934c to < 0b97cd8a61b2b40fd73cf92a4bb2256462d22adbaffected
  • a23eefa2f4615af91ea496ca5b55c9e7c6fa934c to < 396350adf0e5ad4bf05f01e4d79bfb82f0f6c41aaffected
  • a23eefa2f4615af91ea496ca5b55c9e7c6fa934c to < 357445e28ff004d7f10967aa93ddb4bffa5c3688affected

Linux Linux

Default version status: affected

  • 4.7affected
  • 0 to < 4.7unaffected
  • 5.4.291 to ≤ 5.4.*unaffected
  • 5.10.235 to ≤ 5.10.*unaffected
  • 5.15.179 to ≤ 5.15.*unaffected
  • 6.1.129 to ≤ 6.1.*unaffected
  • 6.6.76 to ≤ 6.6.*unaffected
  • 6.12.13 to ≤ 6.12.*unaffected
  • 6.13.2 to ≤ 6.13.*unaffected
  • 6.14 to ≤ *unaffected

References