CVE-2022-50868
Awaiting Analysis Awaiting Analysis - Queue

BaseFortify

Vulnerability report for CVE-2022-50868, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2025-12-30

Last updated on: 2025-12-31

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: hwrng: amd - 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. Add the missing pci_dev_put() for the normal and error path.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2025-12-30
Last Modified
2025-12-31
Generated
2026-07-06
AI Q&A
2025-12-30
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves a reference count leak in the Linux kernel's AMD hardware random number generator (hwrng) driver related to PCI devices. Specifically, the function for_each_pci_dev() uses pci_get_device(), which increases the reference count of a pci_dev object. If the loop is broken early and the pci_dev pointer is not NULL, pci_dev_put() must be called to decrease the reference count. The vulnerability is due to missing calls to pci_dev_put() in both normal and error paths, causing a reference count leak.

Impact Analysis

The impact of this vulnerability is a resource leak in the Linux kernel, where PCI device reference counts are not properly decremented. This can lead to increased memory usage or resource exhaustion over time, potentially causing system instability or degraded performance.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2022-50868. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart