CVE-2022-49530
AMD Linux Kernel Double Free and Use After Free Vulnerability
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.
INFO
Published Date :
Feb. 26, 2025, 7:01 a.m.
Last Modified :
March 10, 2025, 9:15 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-49530
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-49530
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-49530
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Mar. 10, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-415 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 from (excluding) 5.4.198 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 from (excluding) 5.10.121 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 from (excluding) 5.15.46 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 from (excluding) 5.17.14 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.18 from (excluding) 5.18.3 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.10 from (excluding) 4.14.283 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (excluding) 4.9.318 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.15 from (excluding) 4.19.247 Added Reference Type kernel.org: https://git.kernel.org/stable/c/2615464854505188f909d0c07c37a6623693b5c7 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/43eb9b667b95f2a31c63e8949b0d2161b9be59c3 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/6c5bdaa1325be7f04b79ea992ab216739192d342 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/a5ce7051db044290b1a95045ff03c249005a3aa4 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/af832028af6f44c6c45645757079c4ed6884ade5 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/c0e811c4ccf3b42705976285e3a94cc82dea7300 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/ca1ce206894dd976275c78ee38dbc19873f22de9 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/f3fa2becf2fc25b6ac7cf8d8b1a2e4a86b3b72bd Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/fd2eff8b9dcbe469c3b7bbbc7083ab5ed94de07b Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Feb. 26, 2025
Action Type Old Value New Value Added 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. Added Reference https://git.kernel.org/stable/c/2615464854505188f909d0c07c37a6623693b5c7 Added Reference https://git.kernel.org/stable/c/43eb9b667b95f2a31c63e8949b0d2161b9be59c3 Added Reference https://git.kernel.org/stable/c/6c5bdaa1325be7f04b79ea992ab216739192d342 Added Reference https://git.kernel.org/stable/c/a5ce7051db044290b1a95045ff03c249005a3aa4 Added Reference https://git.kernel.org/stable/c/af832028af6f44c6c45645757079c4ed6884ade5 Added Reference https://git.kernel.org/stable/c/c0e811c4ccf3b42705976285e3a94cc82dea7300 Added Reference https://git.kernel.org/stable/c/ca1ce206894dd976275c78ee38dbc19873f22de9 Added Reference https://git.kernel.org/stable/c/f3fa2becf2fc25b6ac7cf8d8b1a2e4a86b3b72bd Added Reference https://git.kernel.org/stable/c/fd2eff8b9dcbe469c3b7bbbc7083ab5ed94de07b
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-49530
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-49530
weaknesses.