CVE-2022-50876

usb: musb: Fix musb_gadget.c rxstate overflow bug

N/A
Published: December 30, 2025 at 12:23 PM UTC
Updated: June 17, 2026 at 05:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.3 ≤ v < 4.14.2964.3 ≤ v < 4.19.2624.3 ≤ v < 4.9.3314.3 ≤ v < 5.10.1504.3 ≤ v < 5.15.754.3 ≤ v < 5.19.174.3 ≤ v < 5.4.2204.3 ≤ v < 6.0.34.3 ≤ v < 6.13840fad4ce8a56bc8b3bb60a2df10f6f9481e4.3
Vendor states this is fixed in 3c84c7f592c4ba38f54ddaddd0115acc443025db (fixed)
Vendor states this is fixed in 523313881f0aa5cbbdb548ce575b6e58b202bd76 (fixed)
Vendor states this is fixed in 7c80f3a918ba9aa26fb699ee887064ec3af0396a (fixed)
Vendor states this is fixed in 826f84ab04a5cafe484ea9c2c85a3930068e5cb7 (fixed)
Vendor states this is fixed in a1008c8b9f357691ce6a8fdb8f157aecb2d79167 (fixed)
Vendor states this is fixed in a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96 (fixed)
Vendor states this is fixed in acf0006f2b2b2ca672988875fd154429aafb2a9b (fixed)
Vendor states this is fixed in d6afcab1b48f4051211c50145b9e91be3b1b42c9 (fixed)
Vendor states this is fixed in eea4c860c3b366369eff0489d94ee4f0571d467d (fixed)
Vendor states this is fixed in 4.14.296 (unaffected)
Vendor states this is fixed in 4.19.262 (unaffected)
Vendor states this is fixed in 4.3 (unaffected)
Vendor states this is fixed in 4.9.331 (unaffected)
Vendor states this is fixed in 5.10.150 (unaffected)
Vendor states this is fixed in 5.15.75 (unaffected)
Vendor states this is fixed in 5.19.17 (unaffected)
Vendor states this is fixed in 5.4.220 (unaffected)
Vendor states this is fixed in 6.0.3 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card