CVE-2022-49002

published 21 Oct 2024 · updated 11 May 2026

iommu/vt-d: Fix PCI device refcount leak in dmar_dev_scope_init()

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 2a8f7b90681472948de172dbbf5a54cd342870aa, Kernel 4bedbbd782ebbe7287231fea862c158d4f08a9e3, Kernel 71c4a621985fc051ab86d3a86c749069a993fcb2 and 5 more.

In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Fix PCI device refcount leak in dmar_dev_scope_init() for_each_pci_dev() is implemented by pci_get_device(). The comment of pci_get_device() says that it will increase the reference count for the returned pci_dev and also decrease the reference count for the input pci_dev @from if it is not NULL. If we break for_each_pci_dev() loop with pdev not NULL, we need to call pci_dev_put() to decrease the reference count. Add the missing pci_dev_put() for the error path to avoid reference count leak.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=3.15, >=2e45528930388658603ea24d49cf52867b928d3e <2a8f7b90681472948de172dbbf5a54cd342870aa, >=2e45528930388658603ea24d49cf52867b928d3e <4bedbbd782ebbe7287231fea862c158d4f08a9e3, >=2e45528930388658603ea24d49cf52867b928d3e <71c4a621985fc051ab86d3a86c749069a993fcb2, >=2e45528930388658603ea24d49cf52867b928d3e <876d7bfb89273997056220029ff12b1c2cc4691d, >=2e45528930388658603ea24d49cf52867b928d3e <a5c65cd56aed027f8a97fda8b691caaeb66d115e, >=2e45528930388658603ea24d49cf52867b928d3e <bdb613ef179ad4bb9d56a2533e9b30e434f1dfb7, >=2e45528930388658603ea24d49cf52867b928d3e <cbdd83bd2fd67142b03ce9dbdd1eab322ff7321f, >=2e45528930388658603ea24d49cf52867b928d3e <d47bc9d7bcdbb9adc9703513d964b514fee5b0bf2a8f7b90681472948de172dbbf5a54cd342870aa, 4bedbbd782ebbe7287231fea862c158d4f08a9e3, 71c4a621985fc051ab86d3a86c749069a993fcb2, 876d7bfb89273997056220029ff12b1c2cc4691d, a5c65cd56aed027f8a97fda8b691caaeb66d115e, bdb613ef179ad4bb9d56a2533e9b30e434f1dfb7, cbdd83bd2fd67142b03ce9dbdd1eab322ff7321f, d47bc9d7bcdbb9adc9703513d964b514fee5b0bf

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-49002 severity on Zeptric[![CVE-2022-49002](https://zeptric.io/badge/cve/CVE-2022-49002.svg)](https://zeptric.io/cve/CVE-2022-49002)