CVE-2022-49002

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

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 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

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

3.15 ≤ v < 4.14.3013.15 ≤ v < 4.19.2683.15 ≤ v < 4.9.3353.15 ≤ v < 5.10.1583.15 ≤ v < 5.15.823.15 ≤ v < 5.4.2263.15 ≤ v < 6.0.123.15 ≤ v < 6.14.10 ≤ v < 4.14.3014.15 ≤ v < 4.19.2684.20 ≤ v < 5.4.2265.11 ≤ v < 5.15.825.16 ≤ v < 6.0.125.5 ≤ v < 5.10.1582e45528930388658603ea24d49cf52867b928d3e6.1 rc16.1 rc26.1 rc36.1 rc46.1 rc56.1 rc66.1 rc7
Vendor states this is fixed in 2a8f7b90681472948de172dbbf5a54cd342870aa (fixed)
Vendor states this is fixed in 4bedbbd782ebbe7287231fea862c158d4f08a9e3 (fixed)
Vendor states this is fixed in 71c4a621985fc051ab86d3a86c749069a993fcb2 (fixed)
Vendor states this is fixed in 876d7bfb89273997056220029ff12b1c2cc4691d (fixed)
Vendor states this is fixed in a5c65cd56aed027f8a97fda8b691caaeb66d115e (fixed)
Vendor states this is fixed in bdb613ef179ad4bb9d56a2533e9b30e434f1dfb7 (fixed)
Vendor states this is fixed in cbdd83bd2fd67142b03ce9dbdd1eab322ff7321f (fixed)
Vendor states this is fixed in d47bc9d7bcdbb9adc9703513d964b514fee5b0bf (fixed)
Vendor states this is fixed in 3.15 (unaffected)
Vendor states this is fixed in 4.14.301 (unaffected)
Vendor states this is fixed in 4.19.268 (unaffected)
Vendor states this is fixed in 4.9.335 (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 5.4.226 (unaffected)
Vendor states this is fixed in 6.0.12 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2a8f7b90681472948de172dbbf5a54cd342870aa
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4bedbbd782ebbe7287231fea862c158d4f08a9e3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/71c4a621985fc051ab86d3a86c749069a993fcb2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/876d7bfb89273997056220029ff12b1c2cc4691d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a5c65cd56aed027f8a97fda8b691caaeb66d115e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bdb613ef179ad4bb9d56a2533e9b30e434f1dfb7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cbdd83bd2fd67142b03ce9dbdd1eab322ff7321f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d47bc9d7bcdbb9adc9703513d964b514fee5b0bf

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