CVE-2022-49530

Updated: 2025-10-05 02:38:04.447425

Description:

In the Linux kernel, the following vulnerability has been resolved: drm/amd/pm: fix double free in si_parse_power_table() In function si_parse_power_table(), array adev->pm.dpm.ps and its member is allocated. If the allocation of each member fails, the array itself is freed and returned with an error code. However, the array is later freed again in si_dpm_fini() function which is called when the function returns an error. This leads to potential double free of the array adev->pm.dpm.ps, as well as leak of its array members, since the members are not freed in the allocation function and the array is not nulled when freed. In addition adev->pm.dpm.num_ps, which keeps track of the allocated array member, is not updated until the member allocation is successfully finished, this could also lead to either use after free, or uninitialized variable access in si_dpm_fini(). Fix this by postponing the free of the array until si_dpm_fini() and increment adev->pm.dpm.num_ps everytime the array member is allocated.


Links NIST CIRCL RHEL Ubuntu

Severity

Severity Score
CVSS Version 2.x 0.0
CVSS Version 3.x HIGH 7.8

Status

OS name Project name Version Score Severity Status Errata Last updated

Statement

CentOS 6 ELS kernel 2.6.32 7.8 HIGH Released CLSA-2025:1750175787 2025-07-04 02:10:34
CentOS 8.4 ELS kernel 4.18.0 7.8 HIGH Released CLSA-2025:1749568993 2025-06-11 01:00:14
CentOS 8.5 ELS kernel 4.18.0 7.8 HIGH Released CLSA-2025:1749562017 2025-06-11 01:00:14
CloudLinux 6 ELS kernel 2.6.32 7.8 HIGH Needs Triage 2025-08-30 11:25:03
Oracle Linux 6 ELS kernel 2.6.32 7.8 HIGH Released CLSA-2025:1750172760 2025-06-18 03:58:47
Ubuntu 16.04 ELS linux-hwe 4.15.0 7.8 HIGH Already Fixed 2025-04-06 03:46:08
Ubuntu 16.04 ELS linux 4.4.0 7.8 HIGH Released CLSA-2025:1753083094 2025-07-22 00:51:24