{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-48973","id":"CVE-2022-48973","title":"gpio: amd8111: Fix PCI device reference count leak","description":"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() loo","descriptionLong":"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().","published":"2024-10-21T20:05:53.769Z","updated":"2026-10-28T02:31:12.974366520Z","reserved":"2024-08-22T01:27:53.631Z","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":"f942a7de047d8c599cc1a9a26293c8c7400450ea","lessThan":"4749c5cc147c9860b96db1e71cc36d1de1bd3f59","status":"affected","versionType":"git"},{"version":"f942a7de047d8c599cc1a9a26293c8c7400450ea","lessThan":"71d591ef873f9ebb86cd8d053b3caee785b2de6a","status":"affected","versionType":"git"},{"version":"f942a7de047d8c599cc1a9a26293c8c7400450ea","lessThan":"b2bc053ebbba57a06fa655db5ea796de2edce445","status":"affected","versionType":"git"},{"version":"f942a7de047d8c599cc1a9a26293c8c7400450ea","lessThan":"48bd5d3801f6b67cc144449d434abbd5043a6d37","status":"affected","versionType":"git"},{"version":"f942a7de047d8c599cc1a9a26293c8c7400450ea","lessThan":"5ee6413d3dd972930af787b2c0c7aaeb379fa521","status":"affected","versionType":"git"},{"version":"f942a7de047d8c599cc1a9a26293c8c7400450ea","lessThan":"4271515f189bd5fe2ec86b4089dab7cb804625d2","status":"affected","versionType":"git"},{"version":"f942a7de047d8c599cc1a9a26293c8c7400450ea","lessThan":"e364ce04d8f840478b09eee57b614de7cf1e743e","status":"affected","versionType":"git"},{"version":"f942a7de047d8c599cc1a9a26293c8c7400450ea","lessThan":"45fecdb9f658d9c82960c98240bc0770ade19aca","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.6","status":"affected"},{"version":"0","lessThan":"3.6","status":"unaffected","versionType":"semver"},{"version":"4.9.336","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.302","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.269","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.227","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.159","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.83","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.13","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/4749c5cc147c9860b96db1e71cc36d1de1bd3f59","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/71d591ef873f9ebb86cd8d053b3caee785b2de6a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b2bc053ebbba57a06fa655db5ea796de2edce445","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/48bd5d3801f6b67cc144449d434abbd5043a6d37","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5ee6413d3dd972930af787b2c0c7aaeb379fa521","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4271515f189bd5fe2ec86b4089dab7cb804625d2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e364ce04d8f840478b09eee57b614de7cf1e743e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/45fecdb9f658d9c82960c98240bc0770ade19aca","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48973.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48973","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.00236,"epssPercentile":0.14697,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-48973","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48973","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-48973","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-48973","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}