CVE-2022-50704
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50704 is a use-after-free vulnerability in the Linux kernel's USB gadget subsystem, specifically triggered during USB configuration switching (e.g., from RNDIS to another config). The flaw occurs when the hardware does not support the ->pullup callback or encounters a fault, causing the callback to fail and resulting in a system panic. It was published on December 24, 2025, and affects the Linux kernel. The CVSS category is estimated as Medium (Feedly, CVE.org).

Technical details

The root cause is a use-after-free condition (CWE-416) in the Linux kernel's USB gadget layer. During a USB config switch, if the ->pullup callback fails — either because the hardware does not support it or due to a low-probability hardware fault — the gadget driver may attempt to access already-freed memory. The vulnerability manifests across a sequence of operations: writing none to the UDC configfs entry triggers gether_disconnect, followed by removal of the function link (rndis_deregister, rndis_free), and finally removal of the function directory triggers rndis_closeeth_stopunregister_netdevgether_cleanup on already-freed objects, causing a kernel panic. The fix ensures gadget drivers can be unloaded regardless of hardware behavior (Feedly, CVE.org).

Impact

Successful exploitation of this vulnerability causes a kernel panic (system crash), resulting in a complete loss of availability for the affected system. The vulnerability is triggered locally during USB gadget configuration changes and does not directly expose confidentiality or integrity, but a system crash can disrupt services and potentially be leveraged as a denial-of-service primitive on embedded or mobile devices using Linux USB gadget functionality (Feedly).

Mitigation and workarounds

The Linux kernel upstream has addressed this vulnerability via patches committed to the stable kernel tree (commits 30e926aa835a, 99a58ac42d9b, and afdc12887f2b on kernel.org). SUSE has released kernel updates addressing this CVE (e.g., SUSE advisories SUSE-2026:0263-1, SUSE-2026:0317-1, and SUSE-2026:0411-1). Users should update to a patched kernel version provided by their Linux distribution. As a workaround, avoiding dynamic USB gadget configuration switching on affected hardware may reduce exposure (Feedly, Linux Security SUSE).

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-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 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