CVE-2024-58052 drm/amdgpu: Fix potential NULL pointer dereference in atomctrl_get_smc_sclk_range_table

Medium 5.5 Published Updated

A missing null check in the AMD GPU driver can cause a kernel crash if the SMU info table is missing, leading to denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-58052?

CVE-2024-58052 is a medium-severity vulnerability in Linux kernel, published on 6 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-476

Which versions are affected by CVE-2024-58052?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-58052?

Apply the vendor's patch.

Is CVE-2024-58052 being exploited?

There is no known exploitation of CVE-2024-58052 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-59123, BELL-CVE-2024-58052, DEBIAN-CVE-2024-58052, GHSA-f33w-26qx-6hvm, ROOT-OS-UBUNTU-2404-CVE-2024-58052, UBUNTU-CVE-2024-58052.

Is CVE-2024-58052 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free