Menu

Star on GitHub · 3.2k

CVE-2022-49219

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: vfio/pci: fix memory leak during D3hot to D0 transition If 'vfio_pci_core_device::needs_pm_restore' is set (PCI device does not…

Published Feb 26, 2025CWE-401EPSS 0.27%

Overview

CVE-2022-49219 is a medium-severity vulnerability. It was published on February 26, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

vfio/pci: fix memory leak during D3hot to D0 transition

If 'vfio_pci_core_device::needs_pm_restore' is set (PCI device does

not have No_Soft_Reset bit set in its PMCSR config register), then

the current PCI state will be saved locally in

'vfio_pci_core_device::pm_save' during D0->D3hot transition and same

will be restored back during D3hot->D0 transition.

For saving the PCI state locally, pci_store_saved_state() is being

used and the pci_load_and_free_saved_state() will free the allocated

memory.

But for reset related IOCTLs, vfio driver calls PCI reset-related

API's which will internally change the PCI power state back to D0. So,

when the guest resumes, then it will get the current state as D0 and it

will skip the call to vfio_pci_set_power_state() for changing the

power state to D0 explicitly. In this case, the memory pointed by

'pm_save' will never be freed. In a malicious sequence, the state changing

to D3hot fo

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-49219?

CVE-2022-49219 is a medium-severity vulnerability. It was published on February 26, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2022-49219?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-49219?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-49219?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-49219 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2022

View all