CVE-2022-50659

hwrng: geode - Fix PCI device refcount leak

No CVSS score yet EPSS 0.30%

Published 9 Dec 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50659

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50659 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.30%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 25.0% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from ef5d862734b84239e0140319a95fb0bbff5ef394, before 88f4ea623f59155280d99d1a59a968f838472c4a
affected from ef5d862734b84239e0140319a95fb0bbff5ef394, before e2f44baf62567c5cfbc274974c7d96dddad53ccc
affected from ef5d862734b84239e0140319a95fb0bbff5ef394, before 6b9e43c4098f1310f5b4d52121d007a219fa5d43
affected from ef5d862734b84239e0140319a95fb0bbff5ef394, before 5cc818ad53df650cac8fb41d9066665366af3f03
affected from ef5d862734b84239e0140319a95fb0bbff5ef394, before aa96aff394a511cc7bb7df08d1b8504d4d97671e
affected from ef5d862734b84239e0140319a95fb0bbff5ef394, before 82bd423ed977847652b2048b0f8dcf049b1847a9
affected from ef5d862734b84239e0140319a95fb0bbff5ef394, before 874f798c2db5ad595e46982d7f727a679dacb048
affected from ef5d862734b84239e0140319a95fb0bbff5ef394, before 19b7b85773b18457ff85a9ff4f5e2a2d4bf7ed0c
affected from ef5d862734b84239e0140319a95fb0bbff5ef394, before 9f6ec8dc574efb7f4f3d7ee9cd59ae307e78f445
Other versions: unaffected
Linux
affected 2.6.18
unaffected before 2.6.18
unaffected from 4.9.337 up to and including 4.9.*
unaffected from 4.14.303 up to and including 4.14.*
unaffected from 4.19.270 up to and including 4.19.*
unaffected from 5.4.229 up to and including 5.4.*
unaffected from 5.10.163 up to and including 5.10.*
unaffected from 5.15.86 up to and including 5.15.*
unaffected from 6.0.16 up to and including 6.0.*
unaffected from 6.1.2 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50659 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50659

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50659
trivy image --scanners vuln IMAGE | grep CVE-2022-50659

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50659 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.