CVE-2022-50876
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 versions
Linux kernel versions
4.3
and later are affected. Fixed in
4.9.331,
4.14.296,
4.19.262,
5.4.220,
5.10.150,
5.15.75,
5.19.17,
6.0.3,
6.1
and their respective stable series.
References
The following references provide additional information about CVE-2022-50876 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/3c84c7f592c4ba38f54ddaddd0115acc443025db
-
PatchKernel patch commithttps://git.kernel.org/stable/c/523313881f0aa5cbbdb548ce575b6e58b202bd76
-
PatchKernel patch commithttps://git.kernel.org/stable/c/7c80f3a918ba9aa26fb699ee887064ec3af0396a
Frequently asked questions
-
What is CVE-2022-50876?
CVE-2022-50876 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 4.3 onward and has been patched in 4.9.331, 4.14.296, 4.19.262 and others. CVE-2022-50876 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2022-50876?
Yes — CVE-2022-50876 has been patched. Fixed versions include 4.9.331, 4.14.296, 4.19.262 and others. If you are running Linux kernel 4.3 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2022-50876 actively exploited?
No — CVE-2022-50876 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.