2084AI 安全观察

CVE

CVE-2022-49530

CVE-2022-49530HIGH 7.8EPSS 21%

CNA 原文 · 原文(英文)

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.

受影响版本

Linux kernel 的全部漏洞 →

  • ≥ 5.18, < 5.18.3修复版本 5.18.3
  • ≥ 5.16, < 5.17.14修复版本 5.17.14
  • ≥ 5.11, < 5.15.46修复版本 5.15.46
  • ≥ 5.5, < 5.10.121修复版本 5.10.121
  • ≥ 4.20, < 5.4.198修复版本 5.4.198
  • ≥ 4.15, < 4.19.247修复版本 4.19.247
  • ≥ 4.10, < 4.14.283修复版本 4.14.283
  • < 4.9.318修复版本 4.9.318

发行版软件包(Debian、Ubuntu、Red Hat 等)会回移补丁而不改上游版本号,请同时查看所用发行版的安全公告。

公告与补丁

数据来源:NVD(公有领域)、CISA KEV(CC0)、FIRST EPSS、OSV.dev / GitHub Advisory Database(CC-BY 4.0) · 本库只列受影响版本与修复版本,不托管、不链接任何利用代码。