CVE-2022-49000
iommu/vt-d: Fix PCI device refcount leak in has_external_pci()
Check your servers for CVE-2022-49000
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-49000 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
iommu/vt-d: Fix PCI device refcount leak in has_external_pci()
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() before 'return true' 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 16.8% 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.
| Product | Versions |
|---|---|
| Linux |
affected from 89a6079df791aeace2044ea93be1b397195824ec, before 10ed7655a17f6a3eaecd1293830488259ccd5723 affected from 89a6079df791aeace2044ea93be1b397195824ec, before b6eea8b2e858a20ad58ac62dc2de90fea2413f94 affected from 89a6079df791aeace2044ea93be1b397195824ec, before 17f67414718e6aba123335a33b7d15aa594fff34 affected from 89a6079df791aeace2044ea93be1b397195824ec, before afca9e19cc720bfafc75dc5ce429c185ca93f31d
Other versions: unaffected
|
| Linux |
affected 5.0 unaffected before 5.0 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-49000 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49000
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-49000
trivy image --scanners vuln IMAGE | grep CVE-2022-49000
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
- https://git.kernel.org/stable/c/10ed7655a17f6a3eaecd1293830488259ccd5723 git.kernel.org
- https://git.kernel.org/stable/c/b6eea8b2e858a20ad58ac62dc2de90fea2413f94 git.kernel.org
- https://git.kernel.org/stable/c/17f67414718e6aba123335a33b7d15aa594fff34 git.kernel.org
- https://git.kernel.org/stable/c/afca9e19cc720bfafc75dc5ce429c185ca93f31d git.kernel.org
Source: the record CVE-2022-49000 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.
Vulnpocalypse