CVE-2022-50659
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50659 is a PCI device reference count leak vulnerability in the Linux kernel's hwrng: geode hardware random number generator driver. The flaw exists in the handling of for_each_pci_dev() loop exits — when the loop breaks with a non-NULL pdev, the driver fails to call pci_dev_put() to decrement the reference count, resulting in a resource leak. It affects Linux kernel versions from 2.6.18 up to the patched stable releases. The vulnerability was formally published on December 9, 2025, and is estimated as Medium severity with no official CVSS base score assigned (Feedly, ENISA EUVD).

Technical details

The root cause is a missing reference count decrement (CWE-401: Missing Release of Memory after Effective Lifetime / resource leak) in the hwrng: geode driver within the Linux kernel. The for_each_pci_dev() macro is implemented via pci_get_device(), which increments the reference count of the returned pci_dev structure. If the loop is exited early (e.g., on error or successful device match) with pdev still non-NULL, the driver previously omitted the corresponding pci_dev_put() call, leaking the reference. The fix introduces a new amd_geode_priv struct to track the pci_dev pointer and membase, and adds the missing pci_dev_put() calls in both normal and error code paths (Feedly, Kernel Patch).

Impact

The primary impact of this vulnerability is a kernel-level resource leak: the PCI device reference count is not properly decremented, which can prevent the PCI device from being properly released or unbound. Over time or under repeated module load/unload cycles, this could contribute to memory exhaustion or incorrect device lifecycle management. The vulnerability does not directly enable remote code execution, privilege escalation, or data exfiltration, and its practical security impact is limited to systems using AMD Geode-based hardware with the affected driver (Feedly).

Exploitability

There is no known public exploit code, active in-the-wild exploitation, or threat actor attribution associated with CVE-2022-50659. The EPSS score is approximately 0.033% (0.000330), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation would require local access to a system running an affected kernel on AMD Geode hardware, significantly limiting the attack surface (Feedly).

Mitigation and workarounds

The Linux kernel stable team has released patches across multiple stable branches. Fixed versions include: 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2, and 6.2. Users should update to the appropriate patched stable kernel version for their distribution. No configuration-based workaround is available; upgrading the kernel is the recommended remediation (Feedly, Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64597CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • linux-aws
NoYesAug 06, 2026
CVE-2026-68480HIGH8.8
  • Linux Kernel logoLinux Kernel
  • rv
NoYesAug 06, 2026
CVE-2026-64598HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-intel-iotg
NoYesAug 06, 2026
CVE-2026-64604HIGH7.7
  • Linux Kernel logoLinux Kernel
  • linux-hwe-5.15
NoYesAug 06, 2026
CVE-2026-64603NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.8
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management