CVE-2022-50876 Details
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);
A buffer overflow vulnerability has been identified in the USB MUSB gadget component of the Linux kernel. This issue arises in versions of the kernel prior to the patch included in commit 3c84c7f592c4ba38f54ddaddd0115acc443025db. The vulnerability occurs when the 'musb_gadget_queue()' function processes a request that exceeds the endpoint's packet size and the request's buffer is not properly mapped. In such cases, the 'rxstate()' function inadvertently copies data from the FIFO into the request's buffer, potentially leading to an out-of-bounds memory access.
Users can upgrade to the latest stable version of the Linux kernel to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/3c84c7f592c4ba38f54ddaddd0115acc443025db | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/523313881f0aa5cbbdb548ce575b6e58b202bd76 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/7c80f3a918ba9aa26fb699ee887064ec3af0396a | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/826f84ab04a5cafe484ea9c2c85a3930068e5cb7 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a1008c8b9f357691ce6a8fdb8f157aecb2d79167 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/acf0006f2b2b2ca672988875fd154429aafb2a9b | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/d6afcab1b48f4051211c50145b9e91be3b1b42c9 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/eea4c860c3b366369eff0489d94ee4f0571d467d | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 30, 2025 | New CVE Received | kernel.org |
Volerion