CVE-2022-49530
Published: Feb 26, 2025
Modified: May 11, 2026
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.
| Vendor | Product | Versions |
|---|---|---|
Linux | Linux | affected 841686df9f7d2942cfd94d024b8591fa3f74ef7c - < 2615464854505188f909d0c07c37a6623693b5c7affected 841686df9f7d2942cfd94d024b8591fa3f74ef7c - < 6c5bdaa1325be7f04b79ea992ab216739192d342affected 841686df9f7d2942cfd94d024b8591fa3f74ef7c - < c0e811c4ccf3b42705976285e3a94cc82dea7300affected 841686df9f7d2942cfd94d024b8591fa3f74ef7c - < af832028af6f44c6c45645757079c4ed6884ade5affected 841686df9f7d2942cfd94d024b8591fa3f74ef7c - < ca1ce206894dd976275c78ee38dbc19873f22de9+4 more versions |
Linux | Linux | affected 4.9unaffected 0 - < 4.9unaffected 4.9.318 - <= 4.9.*unaffected 4.14.283 - <= 4.14.*unaffected 4.19.247 - <= 4.19.*+6 more versions |
References
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now