CVE-2022-49530

drm/amd/pm: fix double free in si_parse_power_table()

HIGH
7.8
CVSS Score
Published: February 26, 2025 at 02:13 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.9.3184.10 ≤ v < 4.14.2834.15 ≤ v < 4.19.2474.20 ≤ v < 5.4.1984.9 ≤ v < 4.14.2834.9 ≤ v < 4.19.2474.9 ≤ v < 4.9.3184.9 ≤ v < 5.10.1214.9 ≤ v < 5.15.464.9 ≤ v < 5.17.144.9 ≤ v < 5.18.34.9 ≤ v < 5.194.9 ≤ v < 5.4.1985.11 ≤ v < 5.15.465.16 ≤ v < 5.17.145.18 ≤ v < 5.18.35.5 ≤ v < 5.10.1214.9841686df9f7d2942cfd94d024b8591fa3f74ef7c
Vendor states this is fixed in 2615464854505188f909d0c07c37a6623693b5c7 (fixed)
Vendor states this is fixed in 43eb9b667b95f2a31c63e8949b0d2161b9be59c3 (fixed)
Vendor states this is fixed in 6c5bdaa1325be7f04b79ea992ab216739192d342 (fixed)
Vendor states this is fixed in a5ce7051db044290b1a95045ff03c249005a3aa4 (fixed)
Vendor states this is fixed in af832028af6f44c6c45645757079c4ed6884ade5 (fixed)
Vendor states this is fixed in c0e811c4ccf3b42705976285e3a94cc82dea7300 (fixed)
Vendor states this is fixed in ca1ce206894dd976275c78ee38dbc19873f22de9 (fixed)
Vendor states this is fixed in f3fa2becf2fc25b6ac7cf8d8b1a2e4a86b3b72bd (fixed)
Vendor states this is fixed in fd2eff8b9dcbe469c3b7bbbc7083ab5ed94de07b (fixed)
Vendor states this is fixed in 4.14.283 (unaffected)
Vendor states this is fixed in 4.19.247 (unaffected)
Vendor states this is fixed in 4.9 (unaffected)
Vendor states this is fixed in 4.9.318 (unaffected)
Vendor states this is fixed in 5.10.121 (unaffected)
Vendor states this is fixed in 5.15.46 (unaffected)
Vendor states this is fixed in 5.17.14 (unaffected)
Vendor states this is fixed in 5.18.3 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.4.198 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2615464854505188f909d0c07c37a6623693b5c7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/43eb9b667b95f2a31c63e8949b0d2161b9be59c3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6c5bdaa1325be7f04b79ea992ab216739192d342
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a5ce7051db044290b1a95045ff03c249005a3aa4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/af832028af6f44c6c45645757079c4ed6884ade5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c0e811c4ccf3b42705976285e3a94cc82dea7300
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ca1ce206894dd976275c78ee38dbc19873f22de9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f3fa2becf2fc25b6ac7cf8d8b1a2e4a86b3b72bd

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-415

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card