CVE-2022-49530 Details
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.
A double free vulnerability has been identified in the Linux kernel's power management component for AMD graphics. The issue arises in the function 'si_parse_power_table()', where an array is allocated to hold power state information. If the allocation of any array member fails, the array is freed and an error code is returned. However, the array is subsequently freed again in the 'si_dpm_fini()' function, leading to a potential double free scenario. This vulnerability also causes a memory leak, as the array members are not freed during the allocation process. Additionally, the power state count is not updated until all allocations are successfully completed, which could result in accessing uninitialized variables or a use-after-free condition.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/2615464854505188f909d0c07c37a6623693b5c7 | kernel.org | Patch |
| https://git.kernel.org/stable/c/43eb9b667b95f2a31c63e8949b0d2161b9be59c3 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6c5bdaa1325be7f04b79ea992ab216739192d342 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a5ce7051db044290b1a95045ff03c249005a3aa4 | kernel.org | Patch |
| https://git.kernel.org/stable/c/af832028af6f44c6c45645757079c4ed6884ade5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c0e811c4ccf3b42705976285e3a94cc82dea7300 | kernel.org | Patch |
| https://git.kernel.org/stable/c/ca1ce206894dd976275c78ee38dbc19873f22de9 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f3fa2becf2fc25b6ac7cf8d8b1a2e4a86b3b72bd | kernel.org | Patch |
| https://git.kernel.org/stable/c/fd2eff8b9dcbe469c3b7bbbc7083ab5ed94de07b | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-415 | Double Free | [email protected] |
| CWE-415 | Double Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | < 4.9.318 >= 4.10, < 4.14.283 >= 4.15, < 4.19.247 >= 4.20, < 5.4.198 >= 5.5, < 5.10.121 >= 5.11, < 5.15.46 >= 5.16, < 5.17.14 >= 5.18, < 5.18.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Mar 10, 2025 | Initial Analysis | [email protected] |
| Feb 26, 2025 | New CVE Received | kernel.org |