CVE-2022-50876
Unknown Unknown - Not Provided
Buffer Overflow in Linux musb_gadget USB Driver Fixed

Publication date: 2025-12-30

Last updated on: 2025-12-30

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: usb: musb: Fix musb_gadget.c rxstate overflow bug The usb function device call musb_gadget_queue() adds the passed request to musb_ep::req_list,If the (request->length > musb_ep->packet_sz) and (is_buffer_mapped(req) return false),the rxstate() will copy all data in fifo to request->buf which may cause request->buf out of bounds. Fix it by add the length check : fifocnt = min_t(unsigned, request->length - request->actual, fifocnt);
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-30
Last Modified
2025-12-30
Generated
2026-06-16
AI Q&A
2025-12-30
EPSS Evaluated
2026-06-14
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
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 is a buffer overflow bug in the Linux kernel's USB function device driver musb_gadget. Specifically, in the musb_gadget_queue() function, if a request's length is greater than the endpoint's packet size and the buffer is not mapped, the rxstate() function copies all data from the FIFO to the request buffer without proper length checks, potentially causing an out-of-bounds write. The fix involved adding a length check to limit the amount of data copied to the buffer.

Impact Analysis

This vulnerability can lead to a buffer overflow in the USB gadget driver, which may cause memory corruption. This could potentially be exploited to crash the system or execute arbitrary code with kernel privileges, impacting system stability and security.

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