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-05-27
AI Q&A
2025-12-30
EPSS Evaluated
2026-05-25
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 Powered Q&A
Can you explain this vulnerability to me?

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.


How can this vulnerability impact me? :

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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart