# CVE-2022-49530: drm/amd/pm: fix double free in si_parse_power_table()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-01)
- Published: 2025-02-26T02:13:51.057Z
- Modified: 2026-08-05T08:55:26.829Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 841686df9f7d2942cfd94d024b8591fa3f74ef7c before 2615464854505188f909d0c07c37a6623693b5c7; from 841686df9f7d2942cfd94d024b8591fa3f74ef7c before 6c5bdaa1325be7f04b79ea992ab216739192d342; from 841686df9f7d2942cfd94d024b8591fa3f74ef7c before c0e811c4ccf3b42705976285e3a94cc82dea7300; from 841686df9f7d2942cfd94d024b8591fa3f74ef7c before af832028af6f44c6c45645757079c4ed6884ade5; from 841686df9f7d2942cfd94d024b8591fa3f74ef7c before ca1ce206894dd976275c78ee38dbc19873f22de9; from 841686df9f7d2942cfd94d024b8591fa3f74ef7c before a5ce7051db044290b1a95045ff03c249005a3aa4; from 841686df9f7d2942cfd94d024b8591fa3f74ef7c before fd2eff8b9dcbe469c3b7bbbc7083ab5ed94de07b; from 841686df9f7d2942cfd94d024b8591fa3f74ef7c before 43eb9b667b95f2a31c63e8949b0d2161b9be59c3; from 841686df9f7d2942cfd94d024b8591fa3f74ef7c before f3fa2becf2fc25b6ac7cf8d8b1a2e4a86b3b72bd; 4.9 (not affected: before 4.9; from 4.9.318 up to 4.9.*; from 4.14.283 up to 4.14.*; from 4.19.247 up to 4.19.*; from 5.4.198 up to 5.4.*; from 5.10.121 up to 5.10.*; from 5.15.46 up to 5.15.*; from 5.17.14 up to 5.17.*; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: before 4.9.318; from 4.10 before 4.14.283; from 4.15 before 4.19.247; from 4.20 before 5.4.198; from 5.5 before 5.10.121; from 5.11 before 5.15.46; from 5.16 before 5.17.14; from 5.18 before 5.18.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/2615464854505188f909d0c07c37a6623693b5c7> (patch)
- <https://git.kernel.org/stable/c/6c5bdaa1325be7f04b79ea992ab216739192d342> (patch)
- <https://git.kernel.org/stable/c/c0e811c4ccf3b42705976285e3a94cc82dea7300> (patch)
- <https://git.kernel.org/stable/c/af832028af6f44c6c45645757079c4ed6884ade5> (patch)
- <https://git.kernel.org/stable/c/ca1ce206894dd976275c78ee38dbc19873f22de9> (patch)
- <https://git.kernel.org/stable/c/a5ce7051db044290b1a95045ff03c249005a3aa4> (patch)
- <https://git.kernel.org/stable/c/fd2eff8b9dcbe469c3b7bbbc7083ab5ed94de07b> (patch)
- <https://git.kernel.org/stable/c/43eb9b667b95f2a31c63e8949b0d2161b9be59c3> (patch)
- <https://git.kernel.org/stable/c/f3fa2becf2fc25b6ac7cf8d8b1a2e4a86b3b72bd> (patch)

## Sources

- CVE List: [CVE-2022-49530](https://www.cve.org/CVERecord?id=CVE-2022-49530), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-49530](https://nvd.nist.gov/vuln/detail/CVE-2022-49530), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49530 · Whole record: https://cve.day/CVE-2022-49530.json · Rebuilt by cve.day 2026-11-25T22:58:20.712Z
