
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-49219 is a memory leak vulnerability in the Linux kernel's VFIO PCI driver, specifically during D3hot to D0 power state transitions. The vulnerability was discovered in February 2022 and affects the vfio/pci subsystem. The issue occurs when a PCI device's power state changes from D3hot to D0, where memory allocated for storing device state is not properly freed under certain conditions (Kernel Git).
The vulnerability exists in the vfiopcisetpowerstate function where the PCI device state is saved locally in 'vfiopcicoredevice::pmsave' during D0->D3hot transition. When reset-related IOCTLs are called, the PCI reset APIs internally change the power state back to D0. If the guest resumes and finds the current state as D0, it skips calling vfiopcisetpowerstate() for explicit D0 transition, leaving the memory pointed by 'pm_save' unreleased (Kernel Git).
The vulnerability can be exploited to cause a memory leak by running a malicious sequence of state changes to D3hot followed by VFIODEVICERESET/VFIODEVICEPCIHOTRESET in a loop. This can eventually lead to an Out-of-Memory (OOM) situation on the system (Kernel Git).
The issue has been fixed by adding code to free the earlier allocated memory before overwriting 'pmsave' to prevent the memory leak. The fix was implemented through a patch that modifies the vfiopci_core.c file (Kernel Git).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."