{"id":"CVE-2022-49530","aliases":["CVE-2022-49530"],"related":[],"kind":"vulnerability","state":"published","title":"drm/amd/pm: fix double free in si_parse_power_table()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/pm: fix double free in si_parse_power_table()\n\nIn function si_parse_power_table(), array adev->pm.dpm.ps and its member\nis allocated. If the allocation of each member fails, the array itself\nis freed and returned with an error code. However, the array is later\nfreed again in si_dpm_fini() function which is called when the function\nreturns an error.\n\nThis leads to potential double free of the array adev->pm.dpm.ps, as\nwell as leak of its array members, since the members are not freed in\nthe allocation function and the array is not nulled when freed.\nIn addition adev->pm.dpm.num_ps, which keeps track of the allocated\narray member, is not updated until the member allocation is\nsuccessfully finished, this could also lead to either use after free,\nor uninitialized variable access in si_dpm_fini().\n\nFix this by postponing the free of the array until si_dpm_fini() and\nincrement adev->pm.dpm.num_ps everytime the array member is allocated.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/pm: fix double free in si_parse_power_table()\n\nIn function si_parse_power_table(), array adev->pm.dpm.ps and its member\nis allocated. If the allocation of each member fails, the array itself\nis freed and returned with an error code. However, the array is later\nfreed again in si_dpm_fini() function which is called when the function\nreturns an error.\n\nThis leads to potential double free of the array adev->pm.dpm.ps, as\nwell as leak of its array members, since the members are not freed in\nthe allocation function and the array is not nulled when freed.\nIn addition adev->pm.dpm.num_ps, which keeps track of the allocated\narray member, is not updated until the member allocation is\nsuccessfully finished, this could also lead to either use after free,\nor uninitialized variable access in si_dpm_fini().\n\nFix this by postponing the free of the array until si_dpm_fini() and\nincrement adev->pm.dpm.num_ps everytime the array member is allocated.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/amd/pm: se corrige la doble liberación en si_parse_power_table() En la función si_parse_power_table(), se asigna la matriz adev-&gt;pm.dpm.ps y su miembro. Si la asignación de cada miembro falla, la matriz en sí se libera y se devuelve con un código de error. Sin embargo, la matriz se libera más tarde nuevamente en la función si_dpm_fini() que se llama cuando la función devuelve un error. Esto conduce a una posible doble liberación de la matriz adev-&gt;pm.dpm.ps, así como a la fuga de sus miembros de matriz, ya que los miembros no se liberan en la función de asignación y la matriz no se anula cuando se libera. Además, adev-&gt;pm.dpm.num_ps, que realiza un seguimiento del miembro de la matriz asignado, no se actualiza hasta que la asignación del miembro finaliza correctamente, esto también podría conducir al use-after-free o al acceso a variables no inicializadas en si_dpm_fini(). Solucione esto posponiendo la liberación de la matriz hasta si_dpm_fini() e incremente adev-&gt;pm.dpm.num_ps cada vez que se asigne el miembro de la matriz.","source":"nvd"}],"published":"2025-02-26T02:13:51.057Z","modified":"2026-08-05T08:55:26.829Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","fixed":"2615464854505188f909d0c07c37a6623693b5c7","status":"affected"},{"type":"git","introduced":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","fixed":"6c5bdaa1325be7f04b79ea992ab216739192d342","status":"affected"},{"type":"git","introduced":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","fixed":"c0e811c4ccf3b42705976285e3a94cc82dea7300","status":"affected"},{"type":"git","introduced":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","fixed":"af832028af6f44c6c45645757079c4ed6884ade5","status":"affected"},{"type":"git","introduced":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","fixed":"ca1ce206894dd976275c78ee38dbc19873f22de9","status":"affected"},{"type":"git","introduced":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","fixed":"a5ce7051db044290b1a95045ff03c249005a3aa4","status":"affected"},{"type":"git","introduced":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","fixed":"fd2eff8b9dcbe469c3b7bbbc7083ab5ed94de07b","status":"affected"},{"type":"git","introduced":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","fixed":"43eb9b667b95f2a31c63e8949b0d2161b9be59c3","status":"affected"},{"type":"git","introduced":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","fixed":"f3fa2becf2fc25b6ac7cf8d8b1a2e4a86b3b72bd","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.9","status":"unaffected"},{"type":"semver","introduced":"4.9.318","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.283","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.247","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.198","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.121","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.46","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.17.14","lastAffected":"5.17.*","status":"unaffected"},{"type":"semver","introduced":"5.18.3","lastAffected":"5.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.9.318"},{"status":"affected","introduced":"4.10","fixed":"4.14.283"},{"status":"affected","introduced":"4.15","fixed":"4.19.247"},{"status":"affected","introduced":"4.20","fixed":"5.4.198"},{"status":"affected","introduced":"5.5","fixed":"5.10.121"},{"status":"affected","introduced":"5.11","fixed":"5.15.46"},{"status":"affected","introduced":"5.16","fixed":"5.17.14"},{"status":"affected","introduced":"5.18","fixed":"5.18.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2615464854505188f909d0c07c37a6623693b5c7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6c5bdaa1325be7f04b79ea992ab216739192d342","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c0e811c4ccf3b42705976285e3a94cc82dea7300","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/af832028af6f44c6c45645757079c4ed6884ade5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ca1ce206894dd976275c78ee38dbc19873f22de9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a5ce7051db044290b1a95045ff03c249005a3aa4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fd2eff8b9dcbe469c3b7bbbc7083ab5ed94de07b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/43eb9b667b95f2a31c63e8949b0d2161b9be59c3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f3fa2becf2fc25b6ac7cf8d8b1a2e4a86b3b72bd","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-10-01T19:37:58.672Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49530","url":"https://www.cve.org/CVERecord?id=CVE-2022-49530","licence":"CVE Terms of Use","modified":"2026-08-05T08:55:26.829Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49530","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49530","licence":"Public domain","modified":"2026-06-17T05:18:21.350Z"}],"updatedAt":"2026-11-25T22:58:20.712Z","epss":{"score":0.00286,"percentile":0.2274,"date":"2026-12-01T12:00:22.000Z"}}