{"id":"CVE-2022-48973","aliases":["CVE-2022-48973"],"related":[],"kind":"vulnerability","state":"published","title":"gpio: amd8111: Fix PCI device reference count leak","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: amd8111: Fix PCI device reference count leak\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() after the 'out' label. Since pci_dev_put() can handle NULL\ninput parameter, there is no problem for the 'Device not found' branch.\nFor the normal path, add pci_dev_put() in amd_gpio_exit().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: amd8111: Fix PCI device reference count leak\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() after the 'out' label. Since pci_dev_put() can handle NULL\ninput parameter, there is no problem for the 'Device not found' branch.\nFor the normal path, add pci_dev_put() in amd_gpio_exit().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: gpio: amd8111: Se solucionó la fuga de recuento de referencia del dispositivo PCI. for_each_pci_dev() se implementa mediante pci_get_device(). El comentario de pci_get_device() dice que aumentará el recuento de referencia para el pci_dev devuelto y también disminuirá el recuento de referencia 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 referencia. Agregue el pci_dev_put() faltante después de la etiqueta 'out'. Dado que pci_dev_put() puede manejar el parámetro de entrada NULL, no hay ningún problema para la rama 'Dispositivo no encontrado'. Para la ruta normal, agregue pci_dev_put() en amd_gpio_exit().","source":"nvd"}],"published":"2024-10-21T20:05:53.769Z","modified":"2026-06-17T05:16:45.083Z","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":"f942a7de047d8c599cc1a9a26293c8c7400450ea","fixed":"4749c5cc147c9860b96db1e71cc36d1de1bd3f59","status":"affected"},{"type":"git","introduced":"f942a7de047d8c599cc1a9a26293c8c7400450ea","fixed":"71d591ef873f9ebb86cd8d053b3caee785b2de6a","status":"affected"},{"type":"git","introduced":"f942a7de047d8c599cc1a9a26293c8c7400450ea","fixed":"b2bc053ebbba57a06fa655db5ea796de2edce445","status":"affected"},{"type":"git","introduced":"f942a7de047d8c599cc1a9a26293c8c7400450ea","fixed":"48bd5d3801f6b67cc144449d434abbd5043a6d37","status":"affected"},{"type":"git","introduced":"f942a7de047d8c599cc1a9a26293c8c7400450ea","fixed":"5ee6413d3dd972930af787b2c0c7aaeb379fa521","status":"affected"},{"type":"git","introduced":"f942a7de047d8c599cc1a9a26293c8c7400450ea","fixed":"4271515f189bd5fe2ec86b4089dab7cb804625d2","status":"affected"},{"type":"git","introduced":"f942a7de047d8c599cc1a9a26293c8c7400450ea","fixed":"e364ce04d8f840478b09eee57b614de7cf1e743e","status":"affected"},{"type":"git","introduced":"f942a7de047d8c599cc1a9a26293c8c7400450ea","fixed":"45fecdb9f658d9c82960c98240bc0770ade19aca","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.6","status":"unaffected"},{"type":"semver","introduced":"4.9.336","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.302","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.269","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.227","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.159","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.83","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.13","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.6","fixed":"4.9.336"},{"status":"affected","introduced":"4.10","fixed":"4.14.302"},{"status":"affected","introduced":"4.15","fixed":"4.19.269"},{"status":"affected","introduced":"4.20","fixed":"5.4.227"},{"status":"affected","introduced":"5.5","fixed":"5.10.159"},{"status":"affected","introduced":"5.11","fixed":"5.15.83"},{"status":"affected","introduced":"5.16","fixed":"6.0.13"},{"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"},{"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/4749c5cc147c9860b96db1e71cc36d1de1bd3f59","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/71d591ef873f9ebb86cd8d053b3caee785b2de6a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b2bc053ebbba57a06fa655db5ea796de2edce445","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/48bd5d3801f6b67cc144449d434abbd5043a6d37","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ee6413d3dd972930af787b2c0c7aaeb379fa521","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4271515f189bd5fe2ec86b4089dab7cb804625d2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e364ce04d8f840478b09eee57b614de7cf1e743e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/45fecdb9f658d9c82960c98240bc0770ade19aca","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-22T13:18:53.419Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-48973","url":"https://www.cve.org/CVERecord?id=CVE-2022-48973","licence":"CVE Terms of Use","modified":"2026-05-11T18:50:44.469Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-48973","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48973","licence":"Public domain","modified":"2026-06-17T05:16:45.083Z"}],"updatedAt":"2026-11-25T22:58:20.011Z","epss":{"score":0.00236,"percentile":0.15589,"date":"2026-12-01T12:00:22.000Z"}}