# CVE-2022-48973: gpio: amd8111: Fix PCI device reference count leak

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **Published:** 2024-10-21T20:05:53.769Z
- **Modified:** 2026-06-17T05:16:45.083Z

## Who should check

- Anyone running Linux \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 4749c5cc147c9860b96db1e71cc36d1de1bd3f59; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 71d591ef873f9ebb86cd8d053b3caee785b2de6a; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< b2bc053ebbba57a06fa655db5ea796de2edce445; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 48bd5d3801f6b67cc144449d434abbd5043a6d37; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 5ee6413d3dd972930af787b2c0c7aaeb379fa521; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 4271515f189bd5fe2ec86b4089dab7cb804625d2; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< e364ce04d8f840478b09eee57b614de7cf1e743e; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 45fecdb9f658d9c82960c98240bc0770ade19aca
- Anyone running Linux 3.6

## Description

In the Linux kernel, the following vulnerability has been resolved:

gpio: amd8111: Fix PCI device reference count leak

for\_each\_pci\_dev() is implemented by pci\_get\_device(). The comment of
pci\_get\_device() says that it will increase the reference count for the
returned pci\_dev and also decrease the reference count for the input
pci\_dev @from if it is not NULL.

If we break for\_each\_pci\_dev() loop with pdev not NULL, we need to call
pci\_dev\_put() to decrease the reference count. Add the missing
pci\_dev\_put() after the 'out' label. Since pci\_dev\_put() can handle NULL
input parameter, there is no problem for the 'Device not found' branch.
For the normal path, add pci\_dev\_put() in amd\_gpio\_exit().

## Affected and fixed versions

- Linux: \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 4749c5cc147c9860b96db1e71cc36d1de1bd3f59; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 71d591ef873f9ebb86cd8d053b3caee785b2de6a; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< b2bc053ebbba57a06fa655db5ea796de2edce445; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 48bd5d3801f6b67cc144449d434abbd5043a6d37; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 5ee6413d3dd972930af787b2c0c7aaeb379fa521; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 4271515f189bd5fe2ec86b4089dab7cb804625d2; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< e364ce04d8f840478b09eee57b614de7cf1e743e; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 45fecdb9f658d9c82960c98240bc0770ade19aca (cvelist)
- Linux: 3.6 (cvelist)

## Mitigation

- Upgrade Linux to 45fecdb9f658d9c82960c98240bc0770ade19aca or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48973. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48973.md
Affected: Linux >= f942a7de047d8c599cc1a9a26293c8c7400450ea, < 4749c5cc147c9860b96db1e71cc36d1de1bd3f59; >= f942a7de047d8c599cc1a9a26293c8c7400450ea, < 71d591ef873f9ebb86cd8d053b3caee785b2de6a; >= f942a7de047d8c599cc1a9a26293c8c7400450ea, < b2bc053ebbba57a06fa655db5ea796de2edce445; >= f942a7de047d8c599cc1a9a…
Fixed in: Linux 4749c5cc147c9860b96db1e71cc36d1de1bd3f59, Linux 71d591ef873f9ebb86cd8d053b3caee785b2de6a, Linux 48bd5d3801f6b67cc144449d434abbd5043a6d37, Linux 5ee6413d3dd972930af787b2c0c7aaeb379fa521, Linux 4271515f189bd5fe2ec86b4089dab7cb804625d2, Linux 45fecdb9f658d9c82960c98240bc0770ade19aca

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-48973 being exploited?

There is no confirmed exploitation: CVE-2022-48973 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-48973?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-48973?

Linux \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 4749c5cc147c9860b96db1e71cc36d1de1bd3f59; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 71d591ef873f9ebb86cd8d053b3caee785b2de6a; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< b2bc053ebbba57a06fa655db5ea796de2edce445; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 48bd5d3801f6b67cc144449d434abbd5043a6d37; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 5ee6413d3dd972930af787b2c0c7aaeb379fa521; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 4271515f189bd5fe2ec86b4089dab7cb804625d2; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< e364ce04d8f840478b09eee57b614de7cf1e743e; \>= f942a7de047d8c599cc1a9a26293c8c7400450ea, \< 45fecdb9f658d9c82960c98240bc0770ade19aca; Linux 3.6.

### Is there a fix for CVE-2022-48973?

Yes. Fixed in Linux 4749c5cc147c9860b96db1e71cc36d1de1bd3f59, Linux 71d591ef873f9ebb86cd8d053b3caee785b2de6a, Linux 48bd5d3801f6b67cc144449d434abbd5043a6d37, Linux 5ee6413d3dd972930af787b2c0c7aaeb379fa521, Linux 4271515f189bd5fe2ec86b4089dab7cb804625d2, Linux 45fecdb9f658d9c82960c98240bc0770ade19aca. Upgrade Linux to 45fecdb9f658d9c82960c98240bc0770ade19aca or later.

### How do I check if I'm affected by CVE-2022-48973?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4749c5cc147c9860b96db1e71cc36d1de1bd3f59>
- patch: <https://git.kernel.org/stable/c/71d591ef873f9ebb86cd8d053b3caee785b2de6a>
- patch: <https://git.kernel.org/stable/c/b2bc053ebbba57a06fa655db5ea796de2edce445>
- patch: <https://git.kernel.org/stable/c/48bd5d3801f6b67cc144449d434abbd5043a6d37>
- patch: <https://git.kernel.org/stable/c/5ee6413d3dd972930af787b2c0c7aaeb379fa521>
- patch: <https://git.kernel.org/stable/c/4271515f189bd5fe2ec86b4089dab7cb804625d2>
- patch: <https://git.kernel.org/stable/c/e364ce04d8f840478b09eee57b614de7cf1e743e>
- patch: <https://git.kernel.org/stable/c/45fecdb9f658d9c82960c98240bc0770ade19aca>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-48973>

HTML: <https://flawdb.com/CVE-2022-48973> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-48973>
