CVE-2022-50876

usb: musb: Fix musb_gadget.c rxstate overflow bug

published December 30, 2025

CVSS
—
EPSS
0%
Percentile
13.3
In the wild
Unconfirmed
What it is

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);

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00233 · 13.3th percentile
Published
2025-12-30T12:23Z
EPSS history
Timeline
  • 30 DEC 12:23Z
    usb: musb: Fix musb_gadget.c rxstate overflow bug
    cvelistv5