CVE-2022-50659 json
hwrng: geode - Fix PCI device refcount leak
published 2025-12-09 11 mo ago modified 2026-06-17 4 mo ago also EUVD-2022-55746
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 20%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2, 6.2
- linux Debian 14, Debian 13, Debian 12 6.1.4-1
debian advisories DEBIAN-CVE-2022-50659
- linux Ubuntu 18.04 LTS 4.15.0-208.220
- linux Ubuntu 20.04 LTS 5.4.0-144.161
- linux Ubuntu 22.04 LTS 5.15.0-69.76
- linux-aws Ubuntu 18.04 LTS 4.15.0-1153.166
- linux-aws Ubuntu 20.04 LTS 5.4.0-1097.105
- linux-aws Ubuntu 22.04 LTS 5.15.0-1033.37
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1101.110
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1031.38
ubuntu advisories UBUNTU-CVE-2022-50659
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/88f4ea623f59155280d99d1a59a968f838472c4a commit
- git.kernel.org/stable/c/e2f44baf62567c5cfbc274974c7d96dddad53ccc commit
- git.kernel.org/stable/c/6b9e43c4098f1310f5b4d52121d007a219fa5d43 commit
- git.kernel.org/stable/c/5cc818ad53df650cac8fb41d9066665366af3f03 commit
- git.kernel.org/stable/c/aa96aff394a511cc7bb7df08d1b8504d4d97671e commit
- git.kernel.org/stable/c/82bd423ed977847652b2048b0f8dcf049b1847a9 commit
- git.kernel.org/stable/c/874f798c2db5ad595e46982d7f727a679dacb048 commit
- git.kernel.org/stable/c/19b7b85773b18457ff85a9ff4f5e2a2d4bf7ed0c commit
- git.kernel.org/stable/c/9f6ec8dc574efb7f4f3d7ee9cd59ae307e78f445 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-50659 updated cvss 5.5
kernel: hwrng: geode - Fix PCI device refcount leak
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: workaround, no fix planned “To mitigate this issue, prevent the geode-rng module from being loaded. See https://access.redhat.com/solutions/41278 for instructions.”
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.28% chance of exploitation in the next 30 days, higher than 20% of all scored CVEs (FIRST EPSS, 2026-11-08).
Affected products
- Linux Linux
Classification
- Technology feeds
References
- git.kernel.org /stable/c/88f4ea623f59155280d99d1a59a968f838472c4a
- git.kernel.org /stable/c/e2f44baf62567c5cfbc274974c7d96dddad53ccc
- git.kernel.org /stable/c/6b9e43c4098f1310f5b4d52121d007a219fa5d43
- git.kernel.org /stable/c/5cc818ad53df650cac8fb41d9066665366af3f03
- git.kernel.org /stable/c/aa96aff394a511cc7bb7df08d1b8504d4d97671e
- git.kernel.org /stable/c/82bd423ed977847652b2048b0f8dcf049b1847a9
- git.kernel.org /stable/c/874f798c2db5ad595e46982d7f727a679dacb048
- git.kernel.org /stable/c/19b7b85773b18457ff85a9ff4f5e2a2d4bf7ed0c
- git.kernel.org /stable/c/9f6ec8dc574efb7f4f3d7ee9cd59ae307e78f445
Sources
- CVE List CVE-2022-50659
- NVD CVE-2022-50659
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.