CVSS 7.8 · High EPSS 0,28%
Kerentanan Double Free pada linux kernel. Skor CVSS 3.1 7.8 (High) menurut NVD.
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.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
· uraikan di kalkulator | Vendor | Produk | Versi terdampak |
|---|---|---|
| linux | linux kernel | Semua versi sebelum 4.9.318 |
| linux | linux kernel | Versi 4.10 hingga sebelum 4.14.283 |
| linux | linux kernel | Versi 4.15 hingga sebelum 4.19.247 |
| linux | linux kernel | Versi 4.20 hingga sebelum 5.4.198 |
| linux | linux kernel | Versi 5.5 hingga sebelum 5.10.121 |
| linux | linux kernel | Versi 5.11 hingga sebelum 5.15.46 |
| linux | linux kernel | Versi 5.16 hingga sebelum 5.17.14 |
| linux | linux kernel | Versi 5.18 hingga sebelum 5.18.3 |