{"id":"CVE-2022-49002","aliases":["CVE-2022-49002"],"related":[],"kind":"vulnerability","state":"published","title":"iommu/vt-d: Fix PCI device refcount leak in dmar_dev_scope_init()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iommu/vt-d: Se corrige la pérdida de recuento de referencias del dispositivo PCI en dmar_dev_scope_init(). for_each_pci_dev() se implementa mediante pci_get_device(). El comentario de pci_get_device() dice que aumentará el recuento de referencias para el pci_dev devuelto y también disminuirá el recuento de referencias para el pci_dev de entrada @from si no es NULL. Si interrumpimos el bucle for_each_pci_dev() con pdev no NULL, debemos llamar a pci_dev_put() para disminuir el recuento de referencias. Agregue el pci_dev_put() faltante para la ruta de error para evitar la pérdida del recuento de referencias.","source":"nvd"}],"published":"2024-10-21T20:06:16.093Z","modified":"2026-06-17T05:16:49.310Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2e45528930388658603ea24d49cf52867b928d3e","fixed":"d47bc9d7bcdbb9adc9703513d964b514fee5b0bf","status":"affected"},{"type":"git","introduced":"2e45528930388658603ea24d49cf52867b928d3e","fixed":"71c4a621985fc051ab86d3a86c749069a993fcb2","status":"affected"},{"type":"git","introduced":"2e45528930388658603ea24d49cf52867b928d3e","fixed":"876d7bfb89273997056220029ff12b1c2cc4691d","status":"affected"},{"type":"git","introduced":"2e45528930388658603ea24d49cf52867b928d3e","fixed":"cbdd83bd2fd67142b03ce9dbdd1eab322ff7321f","status":"affected"},{"type":"git","introduced":"2e45528930388658603ea24d49cf52867b928d3e","fixed":"a5c65cd56aed027f8a97fda8b691caaeb66d115e","status":"affected"},{"type":"git","introduced":"2e45528930388658603ea24d49cf52867b928d3e","fixed":"bdb613ef179ad4bb9d56a2533e9b30e434f1dfb7","status":"affected"},{"type":"git","introduced":"2e45528930388658603ea24d49cf52867b928d3e","fixed":"2a8f7b90681472948de172dbbf5a54cd342870aa","status":"affected"},{"type":"git","introduced":"2e45528930388658603ea24d49cf52867b928d3e","fixed":"4bedbbd782ebbe7287231fea862c158d4f08a9e3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.15","status":"unaffected"},{"type":"semver","introduced":"4.9.335","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.301","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.268","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.226","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.158","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.82","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.12","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.15","fixed":"4.9.335"},{"status":"affected","introduced":"4.10","fixed":"4.14.301"},{"status":"affected","introduced":"4.15","fixed":"4.19.268"},{"status":"affected","introduced":"4.20","fixed":"5.4.226"},{"status":"affected","introduced":"5.5","fixed":"5.10.158"},{"status":"affected","introduced":"5.11","fixed":"5.15.82"},{"status":"affected","introduced":"5.16","fixed":"6.0.12"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d47bc9d7bcdbb9adc9703513d964b514fee5b0bf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/71c4a621985fc051ab86d3a86c749069a993fcb2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/876d7bfb89273997056220029ff12b1c2cc4691d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cbdd83bd2fd67142b03ce9dbdd1eab322ff7321f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a5c65cd56aed027f8a97fda8b691caaeb66d115e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bdb613ef179ad4bb9d56a2533e9b30e434f1dfb7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2a8f7b90681472948de172dbbf5a54cd342870aa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4bedbbd782ebbe7287231fea862c158d4f08a9e3","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-22T13:15:03.202Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49002","url":"https://www.cve.org/CVERecord?id=CVE-2022-49002","licence":"CVE Terms of Use","modified":"2026-05-11T18:51:18.438Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49002","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49002","licence":"Public domain","modified":"2026-06-17T05:16:49.310Z"}],"updatedAt":"2026-11-25T22:58:20.026Z","epss":{"score":0.00249,"percentile":0.17303,"date":"2026-12-02T12:00:21.000Z"}}