CVE-2022-50876
usb: musb: Fix musb_gadget.c rxstate overflow bug
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 826f84ab04a5cafe484ea9c2c85a3930068e5cb7; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < a1008c8b9f357691ce6a8fdb8f157aecb2d79167; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 7c80f3a918ba9aa26fb699ee887064ec3af0396a; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < d6afcab1b48f4051211c50145b9e91be3b1b42c9; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < acf0006f2b2b2ca672988875fd154429aafb2a9b; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 3c84c7f592c4ba38f54ddaddd0115acc443025db; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 523313881f0aa5cbbdb548ce575b6e58b202bd76; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < eea4c860c3b366369eff0489d94ee4f0571d467d
- Anyone running Linux 4.3
Vulnerability facts
- Affected
- Linux >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 826f84ab04a5cafe484ea9c2c85a3930068e5cb7; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < a1008c8b9f357691ce6a8fdb8f157aecb2d79167; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 7c80f3a918ba9aa26fb699ee887064ec3af0396a; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < d6afcab1b48f4051211c50145b9e91be3b1b42c9; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < acf0006f2b2b2ca672988875fd154429aafb2a9b; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 3c84c7f592c4ba38f54ddaddd0115acc443025db; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 523313881f0aa5cbbdb548ce575b6e58b202bd76; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < eea4c860c3b366369eff0489d94ee4f0571d467d; Linux 4.3
- Fixed in
- Linux 826f84ab04a5cafe484ea9c2c85a3930068e5cb7, Linux 7c80f3a918ba9aa26fb699ee887064ec3af0396a, Linux 3c84c7f592c4ba38f54ddaddd0115acc443025db, Linux 523313881f0aa5cbbdb548ce575b6e58b202bd76
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 826f84ab04a5cafe484ea9c2c85a3930068e5cb7; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < a1008c8b9f357691ce6a8fdb8f157aecb2d79167; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 7c80f3a918ba9aa26fb699ee887064ec3af0396a; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < d6afcab1b48f4051211c50145b9e91be3b1b42c9; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < acf0006f2b2b2ca672988875fd154429aafb2a9b; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 3c84c7f592c4ba38f54ddaddd0115acc443025db; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 523313881f0aa5cbbdb548ce575b6e58b202bd76; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < eea4c860c3b366369eff0489d94ee4f0571d467d | — | cvelist |
| Linux | 4.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-50876. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-50876.md Affected: Linux >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 826f84ab04a5cafe484ea9c2c85a3930068e5cb7; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < a1008c8b9f357691ce6a8fdb8f157aecb2d79167; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 7c80f3a918ba9aa26fb699ee887064ec3af0396a; >= 03840fad004ce8a56bc8b3b… Fixed in: Linux 826f84ab04a5cafe484ea9c2c85a3930068e5cb7, Linux 7c80f3a918ba9aa26fb699ee887064ec3af0396a, Linux 3c84c7f592c4ba38f54ddaddd0115acc443025db, Linux 523313881f0aa5cbbdb548ce575b6e58b202bd76 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- 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
FAQ
Is CVE-2022-50876 being exploited?
There is no confirmed exploitation: CVE-2022-50876 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-50876?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2022-50876?
Linux >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 826f84ab04a5cafe484ea9c2c85a3930068e5cb7; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < a1008c8b9f357691ce6a8fdb8f157aecb2d79167; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 7c80f3a918ba9aa26fb699ee887064ec3af0396a; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < d6afcab1b48f4051211c50145b9e91be3b1b42c9; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < acf0006f2b2b2ca672988875fd154429aafb2a9b; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 3c84c7f592c4ba38f54ddaddd0115acc443025db; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 523313881f0aa5cbbdb548ce575b6e58b202bd76; >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < eea4c860c3b366369eff0489d94ee4f0571d467d; Linux 4.3.
Is there a fix for CVE-2022-50876?
Yes. Fixed in Linux 826f84ab04a5cafe484ea9c2c85a3930068e5cb7, Linux 7c80f3a918ba9aa26fb699ee887064ec3af0396a, Linux 3c84c7f592c4ba38f54ddaddd0115acc443025db, Linux 523313881f0aa5cbbdb548ce575b6e58b202bd76. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2022-50876?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.