{"id":"CVE-2022-49002","summary":"iommu/vt-d: Fix PCI device refcount leak in dmar_dev_scope_init()","details":"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.","modified":"2026-05-18T05:55:49.772577690Z","published":"2024-10-21T20:06:16.093Z","related":["SUSE-SU-2024:3983-1","SUSE-SU-2024:3985-1","SUSE-SU-2024:4082-1","SUSE-SU-2024:4100-1","SUSE-SU-2024:4131-1","SUSE-SU-2024:4364-1","SUSE-SU-2025:0034-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49002.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2a8f7b90681472948de172dbbf5a54cd342870aa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4bedbbd782ebbe7287231fea862c158d4f08a9e3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/71c4a621985fc051ab86d3a86c749069a993fcb2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/876d7bfb89273997056220029ff12b1c2cc4691d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a5c65cd56aed027f8a97fda8b691caaeb66d115e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bdb613ef179ad4bb9d56a2533e9b30e434f1dfb7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cbdd83bd2fd67142b03ce9dbdd1eab322ff7321f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d47bc9d7bcdbb9adc9703513d964b514fee5b0bf"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49002.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49002"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2e45528930388658603ea24d49cf52867b928d3e"},{"fixed":"d47bc9d7bcdbb9adc9703513d964b514fee5b0bf"},{"fixed":"71c4a621985fc051ab86d3a86c749069a993fcb2"},{"fixed":"876d7bfb89273997056220029ff12b1c2cc4691d"},{"fixed":"cbdd83bd2fd67142b03ce9dbdd1eab322ff7321f"},{"fixed":"a5c65cd56aed027f8a97fda8b691caaeb66d115e"},{"fixed":"bdb613ef179ad4bb9d56a2533e9b30e434f1dfb7"},{"fixed":"2a8f7b90681472948de172dbbf5a54cd342870aa"},{"fixed":"4bedbbd782ebbe7287231fea862c158d4f08a9e3"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49002.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.15.0"},{"fixed":"4.9.335"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.10.0"},{"fixed":"4.14.301"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.268"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.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"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49002.json"}}],"schema_version":"1.7.5"}