CVE-2022-50876
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50876 is a buffer overflow vulnerability in the Linux kernel's USB MUSB (Multi-Role USB controller) gadget driver, specifically in musb_gadget.c. The flaw exists in the rxstate() function, which can copy more data from the FIFO than the destination buffer (request->buf) can hold, resulting in an out-of-bounds write. It affects the Linux kernel across a wide range of stable branches, with fixes backported to versions 4.9.331, 4.14.296, 4.19.262, 5.4.220, 5.10.150, 5.15.75, 5.19.17, 6.0.3, and 6.1. The CVE was published on December 30, 2025, and has an EPSS score of approximately 0.043% (Feedly, EUVD).

Technical details

The root cause is a missing length check in the rxstate() function within drivers/usb/musb/musb_gadget.c, classifiable as CWE-120 (Buffer Copy without Checking Size of Input). When a USB gadget request is queued via musb_gadget_queue() with a request->length greater than musb_ep->packet_sz and is_buffer_mapped(req) returns false, rxstate() copies all data present in the hardware FIFO directly into request->buf without bounding the copy to the remaining buffer space. The fix introduces a min_t() check: fifocnt = min_t(unsigned, request->length - request->actual, fifocnt);, ensuring the copy never exceeds the allocated buffer (Feedly, EUVD).

Impact

Successful exploitation of this vulnerability could result in kernel memory corruption due to the out-of-bounds write into request->buf. Depending on the memory layout, this could lead to a kernel panic (denial of service), privilege escalation, or arbitrary code execution in kernel context. The impact is primarily local, as exploitation requires the ability to interact with the MUSB USB gadget subsystem, which is typically available to processes with USB device access or physical USB connectivity.

Mitigation and workarounds

The Linux kernel maintainers have released patches across all affected stable branches. Users should update to the following fixed versions or later: 4.9.331, 4.14.296, 4.19.262, 5.4.220, 5.10.150, 5.15.75, 5.19.17, 6.0.3, or 6.1. Distribution-specific kernel updates (e.g., SUSE kernel update SUSE-2026-0350-1) also incorporate this fix. As a workaround where patching is not immediately possible, disabling or blacklisting the musb_hdrc kernel module on systems that do not require MUSB USB gadget functionality can reduce exposure (Feedly, Linux Security).

Community reactions

Coverage of CVE-2022-50876 has been limited to routine vulnerability tracking by security scanners (Nessus plugin 281721, Qualys detections 760731 and 761056) and aggregation by vulnerability databases. A CISA weekly vulnerability summary for the week of December 29, 2025 included this CVE. No notable researcher commentary or significant community discussion has been identified (Red Packet Security, Tenable).

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