What’s Vulnerable › Vulnerabilities

CVE-2023-52691: drm/amd/pm: fix a double-free in si_dpm_init

Description

In the Linux kernel, the following vulnerability has been resolved: drm/amd/pm: fix a double-free in si_dpm_init When the allocation of adev->pm.dpm.dyn_state.vddc_dependency_on_dispclk.entries fails, amdgpu_free_extended_power_table is called to free some fields of adev. However, when the control flow returns to si_dpm_sw_init, it goes to label dpm_failed and calls si_dpm_fini, which calls amdgpu_free_extended_power_table again and free those fields again. Thus a double-free is triggered.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.19.306, 5.10.209, 5.15.148, 5.4.268. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-52691 or the next vulnerability affects your stack