CVE-2022-49219
publishedvfio/pci: fix memory leak during D3hot to D0 transition
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux51ef3a004b1eb6241e56b3aa8495769a092a4dc2 to < da426ad86027b849b877d4628b277ffbbd2f5325 · 51ef3a004b1eb6241e56b3aa8495769a092a4dc2 to < 4319f17fb8264ba39352b611dfa913a4d8c1d1a0 · 51ef3a004b1eb6241e56b3aa8495769a092a4dc2 to < 26ddd196e9eb264da8e1bdc4df8a94d62581c8b5 · 51ef3a004b1eb6241e56b3aa8495769a092a4dc2 to < c8a1f8bd586ee31020614b8d48b702ece3e2ae44 · 51ef3a004b1eb6241e56b3aa8495769a092a4dc2 to < eadf88ecf6ac7d6a9f47a76c6055d9a1987a8991 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.1 (affected) · 0 to < 5.1 (unaffected · semver) · 5.10.237 through 5.10.* (unaffected · semver) · 5.15.33 through 5.15.* (unaffected · semver) · 5.16.19 through 5.16.* (unaffected · semver) · 5.17.2 through 5.17.* (unaffected · semver) · 5.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2025-094 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bullseye | linux | Advisory build | 5.10.237-1 | DLA-4178-1 |
| SUSE / openSUSE | SLE-15-SP5 | cluster-md-kmp-defaultaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2025-094 |
Show 67 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | cluster-md-kmp-defaults390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | dlm-kmp-defaultaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | dlm-kmp-defaultppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | dlm-kmp-defaults390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | gfs2-kmp-defaultaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | gfs2-kmp-defaults390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-64kbaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-64kb-develaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-defaultaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-defaultppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-defaults390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-defaultx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-baseaarch64 | Advisory build | 5.14.21-150500.55.100.1.150500.6.47.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-baseppc64le | Advisory build | 5.14.21-150500.55.100.1.150500.6.47.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-basex86_64 | Advisory build | 5.14.21-150500.55.100.1.150500.6.47.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-develaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-develppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-devels390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-develx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatchppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatchs390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatchx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatch-develppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatch-devels390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatch-develx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-develnoarch | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-docsnoarch | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_100-defaultppc64le | Advisory build | 1-150500.11.3.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_100-defaults390x | Advisory build | 1-150500.11.3.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_100-defaultx86_64 | Advisory build | 1-150500.11.3.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-macrosnoarch | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-obs-buildaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-obs-buildppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-obs-builds390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-obs-buildx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-sourcenoarch | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-symsaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-symsppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-symss390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-symsx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-zfcpdumps390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | ocfs2-kmp-defaultaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | ocfs2-kmp-defaultppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | ocfs2-kmp-defaults390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | ocfs2-kmp-defaultx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | reiserfs-kmp-defaultaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | reiserfs-kmp-defaultppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | reiserfs-kmp-defaults390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-15-SP5 | reiserfs-kmp-defaultx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-5 | kernel-defaultaarch64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-5 | kernel-defaultppc64le | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-5 | kernel-defaults390x | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-5 | kernel-defaultx86_64 | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-5 | kernel-default-baseaarch64 | Advisory build | 5.14.21-150500.55.100.1.150500.6.47.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-5 | kernel-default-basex86_64 | Advisory build | 5.14.21-150500.55.100.1.150500.6.47.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-5 | kernel-devel-rtnoarch | Advisory build | 5.14.21-150500.13.91.1 | SUSE-SU-2025:1176-1 |
| SUSE / openSUSE | SLE-5 | kernel-macrosnoarch | Advisory build | 5.14.21-150500.55.100.1 | SUSE-SU-2025:1241-1 |
| SUSE / openSUSE | SLE-5 | kernel-rtx86_64 | Advisory build | 5.14.21-150500.13.91.1 | SUSE-SU-2025:1176-1 |
| SUSE / openSUSE | SLE-5 | kernel-source-rtnoarch | Advisory build | 5.14.21-150500.13.91.1 | SUSE-SU-2025:1176-1 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2025-094 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2025-094 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2025-094 |
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 followed by VFIO_DEVICE_RESET/VFIO_DEVICE_PCI_HOT_RESET can be run in a loop and it can cause an OOM situation. This patch frees the earlier allocated memory first before overwriting 'pm_save' to prevent the mentioned memory leak.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 51ef3a004b1eb6241e56b3aa8495769a092a4dc2 to < da426ad86027b849b877d4628b277ffbbd2f5325 (affected · git)51ef3a004b1eb6241e56b3aa8495769a092a4dc2 to < 4319f17fb8264ba39352b611dfa913a4d8c1d1a0 (affected · git)51ef3a004b1eb6241e56b3aa8495769a092a4dc2 to < 26ddd196e9eb264da8e1bdc4df8a94d62581c8b5 (affected · git)51ef3a004b1eb6241e56b3aa8495769a092a4dc2 to < c8a1f8bd586ee31020614b8d48b702ece3e2ae44 (affected · git)51ef3a004b1eb6241e56b3aa8495769a092a4dc2 to < eadf88ecf6ac7d6a9f47a76c6055d9a1987a8991 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.1 (affected)0 to < 5.1 (unaffected · semver)5.10.237 through 5.10.* (unaffected · semver)5.15.33 through 5.15.* (unaffected · semver)5.16.19 through 5.16.* (unaffected · semver)5.17.2 through 5.17.* (unaffected · semver)5.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/26ddd196e9eb264da8e1bdc4df8a94d62581c8b5
- https://git.kernel.org/stable/c/4319f17fb8264ba39352b611dfa913a4d8c1d1a0
- https://git.kernel.org/stable/c/c8a1f8bd586ee31020614b8d48b702ece3e2ae44
- https://git.kernel.org/stable/c/da426ad86027b849b877d4628b277ffbbd2f5325
- https://git.kernel.org/stable/c/eadf88ecf6ac7d6a9f47a76c6055d9a1987a8991
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html
Provider assertions
3Linux · cna
vfio/pci: fix memory leak during D3hot to D0 transition
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4b8b62953b7d7a47dee9c52739c3cb6811f25b0205e667f8fec1fcc524a980dd
- Ingested
- 07 Nov 2026, 23:05:43 UTC
- Source record
- Official CVE record