# CVE-2022-50659: hwrng: geode - Fix PCI device refcount leak

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **Published:** 2025-12-09T01:29:07.236Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 88f4ea623f59155280d99d1a59a968f838472c4a; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< e2f44baf62567c5cfbc274974c7d96dddad53ccc; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 6b9e43c4098f1310f5b4d52121d007a219fa5d43; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 5cc818ad53df650cac8fb41d9066665366af3f03; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< aa96aff394a511cc7bb7df08d1b8504d4d97671e; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 82bd423ed977847652b2048b0f8dcf049b1847a9; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 874f798c2db5ad595e46982d7f727a679dacb048; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 19b7b85773b18457ff85a9ff4f5e2a2d4bf7ed0c; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 9f6ec8dc574efb7f4f3d7ee9cd59ae307e78f445
- Anyone running Linux 2.6.18

## Description

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

hwrng: geode - Fix PCI device refcount 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. We add a new struct
'amd\_geode\_priv' to record pointer of the pci\_dev and membase, and then
add missing pci\_dev\_put() for the normal and error path.

## Affected and fixed versions

- Linux: \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 88f4ea623f59155280d99d1a59a968f838472c4a; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< e2f44baf62567c5cfbc274974c7d96dddad53ccc; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 6b9e43c4098f1310f5b4d52121d007a219fa5d43; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 5cc818ad53df650cac8fb41d9066665366af3f03; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< aa96aff394a511cc7bb7df08d1b8504d4d97671e; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 82bd423ed977847652b2048b0f8dcf049b1847a9; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 874f798c2db5ad595e46982d7f727a679dacb048; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 19b7b85773b18457ff85a9ff4f5e2a2d4bf7ed0c; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 9f6ec8dc574efb7f4f3d7ee9cd59ae307e78f445 (cvelist)
- Linux: 2.6.18 (cvelist)

## Mitigation

- Upgrade Linux to 9f6ec8dc574efb7f4f3d7ee9cd59ae307e78f445 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-50659. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50659.md
Affected: Linux >= ef5d862734b84239e0140319a95fb0bbff5ef394, < 88f4ea623f59155280d99d1a59a968f838472c4a; >= ef5d862734b84239e0140319a95fb0bbff5ef394, < e2f44baf62567c5cfbc274974c7d96dddad53ccc; >= ef5d862734b84239e0140319a95fb0bbff5ef394, < 6b9e43c4098f1310f5b4d52121d007a219fa5d43; >= ef5d862734b84239e014031…
Fixed in: Linux 88f4ea623f59155280d99d1a59a968f838472c4a, Linux 6b9e43c4098f1310f5b4d52121d007a219fa5d43, Linux 5cc818ad53df650cac8fb41d9066665366af3f03, Linux 82bd423ed977847652b2048b0f8dcf049b1847a9, Linux 874f798c2db5ad595e46982d7f727a679dacb048, Linux 19b7b85773b18457ff85a9ff4f5e2a2d4bf7ed0c, Linux 9f6ec…

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-50659 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 88f4ea623f59155280d99d1a59a968f838472c4a; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< e2f44baf62567c5cfbc274974c7d96dddad53ccc; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 6b9e43c4098f1310f5b4d52121d007a219fa5d43; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 5cc818ad53df650cac8fb41d9066665366af3f03; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< aa96aff394a511cc7bb7df08d1b8504d4d97671e; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 82bd423ed977847652b2048b0f8dcf049b1847a9; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 874f798c2db5ad595e46982d7f727a679dacb048; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 19b7b85773b18457ff85a9ff4f5e2a2d4bf7ed0c; \>= ef5d862734b84239e0140319a95fb0bbff5ef394, \< 9f6ec8dc574efb7f4f3d7ee9cd59ae307e78f445; Linux 2.6.18.

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

Yes. Fixed in Linux 88f4ea623f59155280d99d1a59a968f838472c4a, Linux 6b9e43c4098f1310f5b4d52121d007a219fa5d43, Linux 5cc818ad53df650cac8fb41d9066665366af3f03, Linux 82bd423ed977847652b2048b0f8dcf049b1847a9, Linux 874f798c2db5ad595e46982d7f727a679dacb048, Linux 19b7b85773b18457ff85a9ff4f5e2a2d4bf7ed0c, Linux 9f6ec8dc574efb7f4f3d7ee9cd59ae307e78f445. Upgrade Linux to 9f6ec8dc574efb7f4f3d7ee9cd59ae307e78f445 or later.

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

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

- other: <https://git.kernel.org/stable/c/88f4ea623f59155280d99d1a59a968f838472c4a>
- other: <https://git.kernel.org/stable/c/e2f44baf62567c5cfbc274974c7d96dddad53ccc>
- other: <https://git.kernel.org/stable/c/6b9e43c4098f1310f5b4d52121d007a219fa5d43>
- other: <https://git.kernel.org/stable/c/5cc818ad53df650cac8fb41d9066665366af3f03>
- other: <https://git.kernel.org/stable/c/aa96aff394a511cc7bb7df08d1b8504d4d97671e>
- other: <https://git.kernel.org/stable/c/82bd423ed977847652b2048b0f8dcf049b1847a9>
- other: <https://git.kernel.org/stable/c/874f798c2db5ad595e46982d7f727a679dacb048>
- other: <https://git.kernel.org/stable/c/19b7b85773b18457ff85a9ff4f5e2a2d4bf7ed0c>
- other: <https://git.kernel.org/stable/c/9f6ec8dc574efb7f4f3d7ee9cd59ae307e78f445>

## 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-50659>

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