CVE-2022-49530
Last modified
CVE-2022-49530 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.26% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | < 4.9.318 |
| Linux | Linux Kernel | >= 4.10, < 4.14.283 |
| Linux | Linux Kernel | >= 4.15, < 4.19.247 |
| Linux | Linux Kernel | >= 4.20, < 5.4.198 |
| Linux | Linux Kernel | >= 5.5, < 5.10.121 |
| Linux | Linux Kernel | >= 5.11, < 5.15.46 |
| Linux | Linux Kernel | >= 5.16, < 5.17.14 |
| Linux | Linux Kernel | >= 5.18, < 5.18.3 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-49530?
How severe is CVE-2022-49530?
How do I fix CVE-2022-49530?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-49525In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49526In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49527In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49528In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49529In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-4953The Elementor Website Builder WordPress plugin before 3.5.5 …6.1
- CVE-2022-49531In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49532In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49533In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49534In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49535In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2022-49536In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2022-49530?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
