CVE-2022-50659

Source
https://cve.org/CVERecord?id=CVE-2022-50659
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50659.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50659
Downstream
Published
2025-12-09T01:29:07.236Z
Modified
2026-04-02T08:28:41.939779Z
Summary
hwrng: geode - Fix PCI device refcount leak
Details

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

hwrng: geode - Fix PCI device refcount leak

foreachpcidev() is implemented by pcigetdevice(). The comment of pcigetdevice() says that it will increase the reference count for the returned pcidev and also decrease the reference count for the input pci_dev @from if it is not NULL.

If we break foreachpcidev() loop with pdev not NULL, we need to call pcidevput() to decrease the reference count. We add a new struct 'amdgeodepriv' to record pointer of the pcidev and membase, and then add missing pcidevput() for the normal and error path.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50659.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ef5d862734b84239e0140319a95fb0bbff5ef394
Fixed
88f4ea623f59155280d99d1a59a968f838472c4a
Fixed
e2f44baf62567c5cfbc274974c7d96dddad53ccc
Fixed
6b9e43c4098f1310f5b4d52121d007a219fa5d43
Fixed
5cc818ad53df650cac8fb41d9066665366af3f03
Fixed
aa96aff394a511cc7bb7df08d1b8504d4d97671e
Fixed
82bd423ed977847652b2048b0f8dcf049b1847a9
Fixed
874f798c2db5ad595e46982d7f727a679dacb048
Fixed
19b7b85773b18457ff85a9ff4f5e2a2d4bf7ed0c
Fixed
9f6ec8dc574efb7f4f3d7ee9cd59ae307e78f445

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50659.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.18
Fixed
4.9.337
Type
ECOSYSTEM
Events
Introduced
4.10.0
Fixed
4.14.303
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.270
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.229
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.163
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.86
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.0.16
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50659.json"