CVE-2022-49002

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

No CVSS score yet EPSS 0.25%

Published 21 Oct 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-49002

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49002 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.3% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 22 Oct 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 2e45528930388658603ea24d49cf52867b928d3e, before d47bc9d7bcdbb9adc9703513d964b514fee5b0bf
affected from 2e45528930388658603ea24d49cf52867b928d3e, before 71c4a621985fc051ab86d3a86c749069a993fcb2
affected from 2e45528930388658603ea24d49cf52867b928d3e, before 876d7bfb89273997056220029ff12b1c2cc4691d
affected from 2e45528930388658603ea24d49cf52867b928d3e, before cbdd83bd2fd67142b03ce9dbdd1eab322ff7321f
affected from 2e45528930388658603ea24d49cf52867b928d3e, before a5c65cd56aed027f8a97fda8b691caaeb66d115e
affected from 2e45528930388658603ea24d49cf52867b928d3e, before bdb613ef179ad4bb9d56a2533e9b30e434f1dfb7
affected from 2e45528930388658603ea24d49cf52867b928d3e, before 2a8f7b90681472948de172dbbf5a54cd342870aa
affected from 2e45528930388658603ea24d49cf52867b928d3e, before 4bedbbd782ebbe7287231fea862c158d4f08a9e3
Other versions: unaffected
Linux
affected 3.15
unaffected before 3.15
unaffected from 4.9.335 up to and including 4.9.*
unaffected from 4.14.301 up to and including 4.14.*
unaffected from 4.19.268 up to and including 4.19.*
unaffected from 5.4.226 up to and including 5.4.*
unaffected from 5.10.158 up to and including 5.10.*
unaffected from 5.15.82 up to and including 5.15.*
unaffected from 6.0.12 up to and including 6.0.*
unaffected 6.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49002 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49002

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-49002
trivy image --scanners vuln IMAGE | grep CVE-2022-49002

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-49002 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.