LiveActive security incident?Get immediate response
CVE Record

CVE-2022-50876: usb: musb: Fix musb_gadget.c rxstate overflow bug

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

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2022-50876 is a Linux kernel USB gadget driver memory-safety bug. In affected MUSB gadget code, received USB data could be copied past the intended request buffer. This matters mainly for systems that use Linux USB gadget/MUSB functionality, common in some embedded or OTG devices, not typical server workloads.

Executive priority

Treat as a targeted kernel maintenance issue. Prioritize products or appliances that expose USB gadget/MUSB functionality, especially where untrusted USB hosts may connect. For standard servers without this path, handle through normal kernel patch cycles.

Technical view

The flaw is in drivers/usb/musb/musb_gadget.c rxstate handling. When request length exceeds endpoint packet size and the request buffer is not mapped, fifo data may exceed the remaining request buffer. The kernel fix limits fifo copy length to request->length minus request->actual.

Likely exposure

Exposure is likely limited to Linux systems using the MUSB USB gadget path. General-purpose Linux servers without this hardware/driver path are less likely exposed. The CVE record lists multiple affected Linux stable versions, but organizations should rely on distribution kernel advisories for exact package impact.

Exploitation context

The source bundle does not show CISA KEV listing, public exploitation, or exploit availability. Practical exploitation would require reaching the vulnerable USB gadget receive path, suggesting a local/physical or specialized device interaction context rather than routine network exposure.

Researcher notes

The record provides no CVSS, CWE, or confirmed exploit status. Affected-version data is broad and should be reconciled with distro backports. The linked commits are the primary remediation evidence and describe the length check added to prevent out-of-bounds buffer access.

Mitigation direction

  • Update to a kernel or vendor package containing the referenced stable fixes.
  • Check Linux distribution advisories for backported fixes and exact package versions.
  • Prioritize embedded or OTG devices using MUSB USB gadget functionality.
  • If patching is delayed, consult vendor guidance for temporary USB gadget controls.

Validation and detection

  • Inventory Linux systems with USB gadget and MUSB driver usage.
  • Compare deployed kernels against vendor advisories and fixed stable commits.
  • Review kernel package changelogs for the musb_gadget.c rxstate overflow fix.
  • Validate updates in staging on affected device models.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2022-50876 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
10Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux03840fad004ce8a56bc8b3bb60a2df10f6f9481e, 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, 03840fad004ce8a56bc8b3bb60a2df10f6f9481eunaffected
LinuxLinux4.3, 0, 4.9.331, 4.14.296, 4.19.262, 5.4.220, 5.10.150, 5.15.75, 5.19.17, 6.0.3, 6.1affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.