kcve.ai취약점 정보 · 내 자산 확인

CVE-2022-49530 drm/amd/pm: fix double free in si_parse_power_table()

설명

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.

영향 받는 제품 제품 1개

  • Linux

    Linux

    해결 버전 있음

    영향 받는 버전

    • 4.9

    해결 버전

    • 4.9 미만
    • 4.9.318 이상
    • 4.14.283 이상
    • 4.19.247 이상
    • 5.4.198 이상
    • 5.10.121 이상
    • 5.15.46 이상
    • 5.17.14 이상
    외 1개 구간 펼치기
    • 5.18.3 이상

참고 자료 9건

‹ 목록

점검 지원 범위 문의

도입 문의