CVE-2022-50868

Source
https://cve.org/CVERecord?id=CVE-2022-50868
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50868.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50868
Downstream
Related
Published
2025-12-30T12:15:39.211Z
Modified
2026-03-20T12:22:39.143043Z
Summary
hwrng: amd - Fix PCI device refcount leak
Details

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

hwrng: amd - 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. Add the missing pcidev_put() for the normal and error path.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50868.json"
}
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
96d63c0297ccfd6d9059c614b3f5555d9441a2b3
Fixed
f1c97f72ffd504f49882774e2ab689d982dc7afc
Fixed
526c316948819d3ecd2bb20fe5e2580c51a1b760
Fixed
e246f5eff26055bdcb61a2cc99c50af72a19680f
Fixed
1199f8e02941b326c60ab71a63002b7c80e38212
Fixed
5998e5c30e839f73e62cb29e0d9617b0d16ccba3
Fixed
2b79a5e560779b35e1164d57ae35c48b43373082
Fixed
cb348c7908631dd9f60083a0a1542eab055d3edf
Fixed
2e10ecd012ae2b2a374b34f307e9bc1e6096c03d
Fixed
ecadb5b0111ea19fc7c240bb25d424a94471eb7d

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50868.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/osv-test-cve-osv-conversion/osv-output/CVE-2022-50868.json"