Bug 2426106 (CVE-2022-50876) - CVE-2022-50876 kernel: usb: musb: Fix musb_gadget.c rxstate overflow bug
Summary: CVE-2022-50876 kernel: usb: musb: Fix musb_gadget.c rxstate overflow bug
Keywords:
Status: NEW
Alias: CVE-2022-50876
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-30 13:09 UTC by OSIDB Bzimport
Modified: 2026-06-29 20:19 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-30 13:09:25 UTC
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);


Note You need to log in before you can comment on or make changes to this bug.