{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49530","id":"CVE-2022-49530","title":"drm/amd/pm: fix double free in si_parse_power_table()","description":"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","descriptionLong":"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.","published":"2025-02-26T02:13:51.057Z","updated":"2026-10-28T02:30:22.760704296Z","reserved":"2025-02-26T02:08:31.588Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","lessThan":"2615464854505188f909d0c07c37a6623693b5c7","status":"affected","versionType":"git"},{"version":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","lessThan":"6c5bdaa1325be7f04b79ea992ab216739192d342","status":"affected","versionType":"git"},{"version":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","lessThan":"c0e811c4ccf3b42705976285e3a94cc82dea7300","status":"affected","versionType":"git"},{"version":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","lessThan":"af832028af6f44c6c45645757079c4ed6884ade5","status":"affected","versionType":"git"},{"version":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","lessThan":"ca1ce206894dd976275c78ee38dbc19873f22de9","status":"affected","versionType":"git"},{"version":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","lessThan":"a5ce7051db044290b1a95045ff03c249005a3aa4","status":"affected","versionType":"git"},{"version":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","lessThan":"fd2eff8b9dcbe469c3b7bbbc7083ab5ed94de07b","status":"affected","versionType":"git"},{"version":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","lessThan":"43eb9b667b95f2a31c63e8949b0d2161b9be59c3","status":"affected","versionType":"git"},{"version":"841686df9f7d2942cfd94d024b8591fa3f74ef7c","lessThan":"f3fa2becf2fc25b6ac7cf8d8b1a2e4a86b3b72bd","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.9","status":"affected"},{"version":"0","lessThan":"4.9","status":"unaffected","versionType":"semver"},{"version":"4.9.318","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.283","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.247","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.198","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.121","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.46","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.17.14","lessThanOrEqual":"5.17.*","status":"unaffected","versionType":"semver"},{"version":"5.18.3","lessThanOrEqual":"5.18.*","status":"unaffected","versionType":"semver"},{"version":"5.19","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-415"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/2615464854505188f909d0c07c37a6623693b5c7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6c5bdaa1325be7f04b79ea992ab216739192d342","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c0e811c4ccf3b42705976285e3a94cc82dea7300","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/af832028af6f44c6c45645757079c4ed6884ade5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ca1ce206894dd976275c78ee38dbc19873f22de9","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a5ce7051db044290b1a95045ff03c249005a3aa4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fd2eff8b9dcbe469c3b7bbbc7083ab5ed94de07b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/43eb9b667b95f2a31c63e8949b0d2161b9be59c3","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f3fa2becf2fc25b6ac7cf8d8b1a2e4a86b3b72bd","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49530.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49530","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00284,"epssPercentile":0.21281,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49530","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49530","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49530","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-49530","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}