{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49002","id":"CVE-2022-49002","title":"iommu/vt-d: Fix PCI device refcount leak in dmar_dev_scope_init()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\niommu/vt-d: Fix PCI device refcount leak in dmar_dev_scope_init()\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_eac","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\niommu/vt-d: Fix PCI device refcount leak in dmar_dev_scope_init()\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() for the error path to avoid reference count leak.","published":"2024-10-21T20:06:16.093Z","updated":"2026-10-28T02:31:12.133777424Z","reserved":"2024-08-22T01:27:53.642Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2e45528930388658603ea24d49cf52867b928d3e","lessThan":"d47bc9d7bcdbb9adc9703513d964b514fee5b0bf","status":"affected","versionType":"git"},{"version":"2e45528930388658603ea24d49cf52867b928d3e","lessThan":"71c4a621985fc051ab86d3a86c749069a993fcb2","status":"affected","versionType":"git"},{"version":"2e45528930388658603ea24d49cf52867b928d3e","lessThan":"876d7bfb89273997056220029ff12b1c2cc4691d","status":"affected","versionType":"git"},{"version":"2e45528930388658603ea24d49cf52867b928d3e","lessThan":"cbdd83bd2fd67142b03ce9dbdd1eab322ff7321f","status":"affected","versionType":"git"},{"version":"2e45528930388658603ea24d49cf52867b928d3e","lessThan":"a5c65cd56aed027f8a97fda8b691caaeb66d115e","status":"affected","versionType":"git"},{"version":"2e45528930388658603ea24d49cf52867b928d3e","lessThan":"bdb613ef179ad4bb9d56a2533e9b30e434f1dfb7","status":"affected","versionType":"git"},{"version":"2e45528930388658603ea24d49cf52867b928d3e","lessThan":"2a8f7b90681472948de172dbbf5a54cd342870aa","status":"affected","versionType":"git"},{"version":"2e45528930388658603ea24d49cf52867b928d3e","lessThan":"4bedbbd782ebbe7287231fea862c158d4f08a9e3","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.15","status":"affected"},{"version":"0","lessThan":"3.15","status":"unaffected","versionType":"semver"},{"version":"4.9.335","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.301","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.268","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.226","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.158","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.82","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.12","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/d47bc9d7bcdbb9adc9703513d964b514fee5b0bf","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/71c4a621985fc051ab86d3a86c749069a993fcb2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/876d7bfb89273997056220029ff12b1c2cc4691d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/cbdd83bd2fd67142b03ce9dbdd1eab322ff7321f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a5c65cd56aed027f8a97fda8b691caaeb66d115e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/bdb613ef179ad4bb9d56a2533e9b30e434f1dfb7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2a8f7b90681472948de172dbbf5a54cd342870aa","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4bedbbd782ebbe7287231fea862c158d4f08a9e3","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49002.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49002","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00249,"epssPercentile":0.16331,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49002","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49002","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49002","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-49002","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}