iommu/vt-d: Fix PCI device refcount leak in has_external_pci()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.158, 5.15.82, 6.0.12
- CVEs
- CVE-2022-49000
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 14:18 UTC · Revision 1
Source evidence
iommu/vt-d: Fix PCI device refcount leak in has_external_pci()
core-osv · Original sourcePublished 21 Oct 2024, 20:06 UTC
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.
osv:CVE-2022-49000
Kernel
Fixed versions: 5.10.158, 5.15.82, 6.0.12
Complete source record
{
"id": "2a474ea0645725c39829f4054d1d21544f69419592545217dd7bb4d0a56064f0",
"url": "https://osv.dev/vulnerability/CVE-2022-49000",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "iommu/vt-d: Fix PCI device refcount leak in has_external_pci()",
"summary": "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.",
"evidence": "osv:CVE-2022-49000",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.158",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.82",
"evidence": "/affected/1/ranges"
},
{
"value": "6.0.12",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-49000",
"aliases": [
"CVE-2022-49000"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "89a6079df791aeace2044ea93be1b397195824ec"
},
{
"fixed": "10ed7655a17f6a3eaecd1293830488259ccd5723"
},
{
"fixed": "b6eea8b2e858a20ad58ac62dc2de90fea2413f94"
},
{
"fixed": "17f67414718e6aba123335a33b7d15aa594fff34"
},
{
"fixed": "afca9e19cc720bfafc75dc5ce429c185ca93f31d"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49000.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.10.158"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.82"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.0.12"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49000.json"
}
}
],
"modified": "2026-10-28T02:30:51.012884914Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/10ed7655a17f6a3eaecd1293830488259ccd5723",
"https://git.kernel.org/stable/c/17f67414718e6aba123335a33b7d15aa594fff34",
"https://git.kernel.org/stable/c/afca9e19cc720bfafc75dc5ce429c185ca93f31d",
"https://git.kernel.org/stable/c/b6eea8b2e858a20ad58ac62dc2de90fea2413f94",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49000.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49000",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49000.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49000",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 519595,
"published_at": "2024-10-21T20:06:14.753+00:00"
}