{"id":"CVE-2022-50876","published":"2025-12-30T12:23:16Z","modified":"2026-05-11T19:26:50Z","title":"usb: musb: Fix musb_gadget.c rxstate overflow bug","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: musb: Fix musb_gadget.c rxstate overflow bug\n\nThe usb function device call musb_gadget_queue() adds the passed\nrequest to musb_ep::req_list,If the (request->length > musb_ep->packet_sz)\nand (is_buffer_mapped(req) return false),the rxstate() will copy all data\nin fifo to request->buf which may cause request->buf out of bounds.\n\nFix it by add the length check :\nfifocnt = min_t(unsigned, request->length - request->actual, fifocnt);","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00233,"percentile":0.14012,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/826f84ab04a5cafe484ea9c2c85a3930068e5cb7","tags":[]},{"url":"https://git.kernel.org/stable/c/a1008c8b9f357691ce6a8fdb8f157aecb2d79167","tags":[]},{"url":"https://git.kernel.org/stable/c/7c80f3a918ba9aa26fb699ee887064ec3af0396a","tags":[]},{"url":"https://git.kernel.org/stable/c/d6afcab1b48f4051211c50145b9e91be3b1b42c9","tags":[]},{"url":"https://git.kernel.org/stable/c/acf0006f2b2b2ca672988875fd154429aafb2a9b","tags":[]},{"url":"https://git.kernel.org/stable/c/3c84c7f592c4ba38f54ddaddd0115acc443025db","tags":[]},{"url":"https://git.kernel.org/stable/c/a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96","tags":[]},{"url":"https://git.kernel.org/stable/c/523313881f0aa5cbbdb548ce575b6e58b202bd76","tags":[]},{"url":"https://git.kernel.org/stable/c/eea4c860c3b366369eff0489d94ee4f0571d467d","tags":[]}],"priority":{"score":2.8,"factors":[{"name":"EPSS percentile","points":2.8}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 826f84ab04a5cafe484ea9c2c85a3930068e5cb7",">= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < a1008c8b9f357691ce6a8fdb8f157aecb2d79167",">= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 7c80f3a918ba9aa26fb699ee887064ec3af0396a",">= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < d6afcab1b48f4051211c50145b9e91be3b1b42c9",">= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < acf0006f2b2b2ca672988875fd154429aafb2a9b",">= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 3c84c7f592c4ba38f54ddaddd0115acc443025db",">= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96",">= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < 523313881f0aa5cbbdb548ce575b6e58b202bd76",">= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, < eea4c860c3b366369eff0489d94ee4f0571d467d"]},{"vendor":"Linux","product":"Linux","versions":["4.3"]}],"euvd":{"id":"EUVD-2022-55920","exploited":false,"provenance":"source"}}