{"id":"CVE-2022-49000","state":"PUBLISHED","title":"iommu/vt-d: Fix PCI device refcount leak in has_external_pci()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\niommu/vt-d: Fix PCI device refcount leak in has_external_pci()\n\nfor_each_pci_dev() is implemented by pci_get_device(). The comment of\npci_get_device() says that it will increase the reference count for the\nreturned pci_dev and also decrease the reference count for the input\npci_dev @from if it is not NULL.\n\nIf we break for_each_pci_dev() loop with pdev not NULL, we need to call\npci_dev_put() to decrease the reference count. Add the missing\npci_dev_put() before 'return true' to avoid reference count leak.","publishedAt":"2024-10-21T20:06:14.753Z","updatedAt":"2026-05-11T18:51:16.031Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"89a6079df791aeace2044ea93be1b397195824ec","status":"affected","lessThan":"10ed7655a17f6a3eaecd1293830488259ccd5723","versionType":"git"},{"version":"89a6079df791aeace2044ea93be1b397195824ec","status":"affected","lessThan":"b6eea8b2e858a20ad58ac62dc2de90fea2413f94","versionType":"git"},{"version":"89a6079df791aeace2044ea93be1b397195824ec","status":"affected","lessThan":"17f67414718e6aba123335a33b7d15aa594fff34","versionType":"git"},{"version":"89a6079df791aeace2044ea93be1b397195824ec","status":"affected","lessThan":"afca9e19cc720bfafc75dc5ce429c185ca93f31d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iommu/intel/iommu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.10.158","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.82","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.12","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iommu/intel/iommu.c"]}],"references":["https://git.kernel.org/stable/c/10ed7655a17f6a3eaecd1293830488259ccd5723","https://git.kernel.org/stable/c/b6eea8b2e858a20ad58ac62dc2de90fea2413f94","https://git.kernel.org/stable/c/17f67414718e6aba123335a33b7d15aa594fff34","https://git.kernel.org/stable/c/afca9e19cc720bfafc75dc5ce429c185ca93f31d"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49000.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49000","state":"PUBLISHED","datePublished":"2024-10-21T20:06:14.753Z","dateUpdated":"2026-05-11T18:51:16.031Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-08-22T01:27:53.642Z"},"containers":{"cna":{"title":"iommu/vt-d: Fix PCI device refcount leak in has_external_pci()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\niommu/vt-d: Fix PCI device refcount leak in has_external_pci()\n\nfor_each_pci_dev() is implemented by pci_get_device(). The comment of\npci_get_device() says that it will increase the reference count for the\nreturned pci_dev and also decrease the reference count for the input\npci_dev @from if it is not NULL.\n\nIf we break for_each_pci_dev() loop with pdev not NULL, we need to call\npci_dev_put() to decrease the reference count. Add the missing\npci_dev_put() before 'return true' to avoid reference count leak."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"89a6079df791aeace2044ea93be1b397195824ec","status":"affected","lessThan":"10ed7655a17f6a3eaecd1293830488259ccd5723","versionType":"git"},{"version":"89a6079df791aeace2044ea93be1b397195824ec","status":"affected","lessThan":"b6eea8b2e858a20ad58ac62dc2de90fea2413f94","versionType":"git"},{"version":"89a6079df791aeace2044ea93be1b397195824ec","status":"affected","lessThan":"17f67414718e6aba123335a33b7d15aa594fff34","versionType":"git"},{"version":"89a6079df791aeace2044ea93be1b397195824ec","status":"affected","lessThan":"afca9e19cc720bfafc75dc5ce429c185ca93f31d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iommu/intel/iommu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.10.158","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.82","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.12","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iommu/intel/iommu.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/10ed7655a17f6a3eaecd1293830488259ccd5723"},{"url":"https://git.kernel.org/stable/c/b6eea8b2e858a20ad58ac62dc2de90fea2413f94"},{"url":"https://git.kernel.org/stable/c/17f67414718e6aba123335a33b7d15aa594fff34"},{"url":"https://git.kernel.org/stable/c/afca9e19cc720bfafc75dc5ce429c185ca93f31d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T18:51:16.031Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.10.158"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.15.82"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.0.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-49000","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-10-22T13:15:17.821654Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-22T13:18:40.762Z"}}]}}}