U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2022-50876 Detail

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


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to [email protected].

URL Source(s) Tag(s)
https://git.kernel.org/stable/c/3c84c7f592c4ba38f54ddaddd0115acc443025db kernel.org
https://git.kernel.org/stable/c/523313881f0aa5cbbdb548ce575b6e58b202bd76 kernel.org
https://git.kernel.org/stable/c/7c80f3a918ba9aa26fb699ee887064ec3af0396a kernel.org
https://git.kernel.org/stable/c/826f84ab04a5cafe484ea9c2c85a3930068e5cb7 kernel.org
https://git.kernel.org/stable/c/a1008c8b9f357691ce6a8fdb8f157aecb2d79167 kernel.org
https://git.kernel.org/stable/c/a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96 kernel.org
https://git.kernel.org/stable/c/acf0006f2b2b2ca672988875fd154429aafb2a9b kernel.org
https://git.kernel.org/stable/c/d6afcab1b48f4051211c50145b9e91be3b1b42c9 kernel.org
https://git.kernel.org/stable/c/eea4c860c3b366369eff0489d94ee4f0571d467d kernel.org

Weakness Enumeration

CWE-ID CWE Name Source

Change History

1 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2022-50876
NVD Published Date:
12/30/2025
NVD Last Modified:
12/30/2025
Source:
kernel.org