CVE-2022-49000

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

MEDIUM
5.5
CVSS Score
Published: October 21, 2024 at 08:06 PM UTC
Updated: June 17, 2026 at 05:16 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.0 ≤ v < 5.10.1585.0 ≤ v < 5.15.825.0 ≤ v < 6.0.125.0 ≤ v < 6.15.11 ≤ v < 5.15.825.16 ≤ v < 6.0.126.1 rc16.1 rc26.1 rc36.1 rc46.1 rc56.1 rc66.1 rc789a6079df791aeace2044ea93be1b397195824ec
Vendor states this is fixed in 10ed7655a17f6a3eaecd1293830488259ccd5723 (fixed)
Vendor states this is fixed in 17f67414718e6aba123335a33b7d15aa594fff34 (fixed)
Vendor states this is fixed in afca9e19cc720bfafc75dc5ce429c185ca93f31d (fixed)
Vendor states this is fixed in b6eea8b2e858a20ad58ac62dc2de90fea2413f94 (fixed)
Vendor states this is fixed in 5.0 (unaffected)
Vendor states this is fixed in 5.10.158 (unaffected)
Vendor states this is fixed in 5.15.82 (unaffected)
Vendor states this is fixed in 6.0.12 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/10ed7655a17f6a3eaecd1293830488259ccd5723
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/17f67414718e6aba123335a33b7d15aa594fff34
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/afca9e19cc720bfafc75dc5ce429c185ca93f31d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b6eea8b2e858a20ad58ac62dc2de90fea2413f94

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card