CVE-2022-50876
published 2025-12-30CVE-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…
PriorityP426
EPSS
0.20%
10.5th percentile
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
23 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.0.3-1 (bookworm) | linux 6.0.3-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < 826f84ab04a5cafe484ea9c2c85a3930068e5cb7 | 826f84ab04a5cafe484ea9c2c85a3930068e5cb7 |
| linux | linux | >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < a1008c8b9f357691ce6a8fdb8f157aecb2d79167 | a1008c8b9f357691ce6a8fdb8f157aecb2d79167 |
| linux | linux | >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < 7c80f3a918ba9aa26fb699ee887064ec3af0396a | 7c80f3a918ba9aa26fb699ee887064ec3af0396a |
| linux | linux | >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < d6afcab1b48f4051211c50145b9e91be3b1b42c9 | d6afcab1b48f4051211c50145b9e91be3b1b42c9 |
| linux | linux | >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < acf0006f2b2b2ca672988875fd154429aafb2a9b | acf0006f2b2b2ca672988875fd154429aafb2a9b |
| linux | linux | >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < 3c84c7f592c4ba38f54ddaddd0115acc443025db | 3c84c7f592c4ba38f54ddaddd0115acc443025db |
| linux | linux | >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96 | a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96 |
| linux | linux | >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < 523313881f0aa5cbbdb548ce575b6e58b202bd76 | 523313881f0aa5cbbdb548ce575b6e58b202bd76 |
| linux | linux | >= 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < eea4c860c3b366369eff0489d94ee4f0571d467d | eea4c860c3b366369eff0489d94ee4f0571d467d |
| linux | linux_kernel | >= 0 < 5.10.158-1 | 5.10.158-1 |
| linux | linux_kernel | >= 0 < 6.0.3-1 | 6.0.3-1 |
| linux | linux_kernel | >= 0 < 6.0.3-1 | 6.0.3-1 |
| linux | linux_kernel | >= 0 < 6.0.3-1 | 6.0.3-1 |
| linux | linux_kernel | >= 4.10.0 < 4.14.296 | 4.14.296 |
| linux | linux_kernel | >= 4.15.0 < 4.19.262 | 4.19.262 |
| linux | linux_kernel | >= 4.20.0 < 5.4.220 | 5.4.220 |
| linux | linux_kernel | >= 4.3.0 < 4.9.331 | 4.9.331 |
| linux | linux_kernel | >= 5.11.0 < 5.15.75 | 5.15.75 |
| linux | linux_kernel | >= 5.16.0 < 5.19.17 | 5.19.17 |
| linux | linux_kernel | >= 5.20.0 < 6.0.3 | 6.0.3 |
| linux | linux_kernel | >= 5.5.0 < 5.10.150 | 5.10.150 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
usb: musb: Fix musb_gadget.c rxstate overflow bug
osv·2025-12-30
CVE-2022-50876 usb: musb: Fix musb_gadget.c rxstate overflow bug
usb: musb: Fix musb_gadget.c rxstate overflow bug
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);
GHSA
GHSA-6h2f-jvv5-3x53: In the Linux kernel, the following vulnerability has been resolved:
usb: musb: Fix musb_gadget
ghsa_unreviewed·2025-12-30
CVE-2022-50876 GHSA-6h2f-jvv5-3x53: In the Linux kernel, the following vulnerability has been resolved:
usb: musb: Fix musb_gadget
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);
OSV
CVE-2022-50876: In the Linux kernel, the following vulnerability has been resolved: usb: musb: Fix musb_gadget
osv·2025-12-30
CVE-2022-50876 CVE-2022-50876: In the Linux kernel, the following vulnerability has been resolved: usb: musb: Fix musb_gadget
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);
Red Hat
kernel: usb: musb: Fix musb_gadget.c rxstate overflow bug
vendor_redhat·2025-12-30
CVE-2022-50876 kernel: usb: musb: Fix musb_gadget.c rxstate overflow bug
kernel: usb: musb: Fix musb_gadget.c rxstate overflow bug
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);
Package: kernel (Red Hat Enterprise Linux 10) - Not affected
Package: kernel (Red Hat Enterprise Linux 6) - Not affected
Package: kernel (Red Hat Enterprise Linux 7) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 7) - No
Debian
CVE-2022-50876: linux - In the Linux kernel, the following vulnerability has been resolved: usb: musb: ...
vendor_debian·2022
CVE-2022-50876 CVE-2022-50876: linux - In the Linux kernel, the following vulnerability has been resolved: usb: musb: ...
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);
Scope: local
bookworm: resolved (fixed in 6.0.3-1)
bullseye: resolved (fixed in 5.10.158-1)
forky: resolved (fixed in 6.0.3-1)
sid: resolved (fixed in 6.0.3-1)
trixie: resolved (fixed in 6.0.3-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2022-50876 kernel: usb: musb: Fix musb_gadget.c rxstate overflow bug
bugzilla·2025-12-30
CVE-2022-50876 CVE-2022-50876 kernel: usb: musb: Fix musb_gadget.c rxstate overflow bug
CVE-2022-50876 kernel: usb: musb: Fix musb_gadget.c rxstate overflow bug
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);
Discussion:
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025123023-CVE-2022-50876-b365@gregkh/T
Wiz
CVE-2022-50876 Impact, Exploitability, and Mitigation Steps | Wiz
blogs_wiz
CVE-2022-50876 CVE-2022-50876 Impact, Exploitability, and Mitigation Steps | Wiz
## CVE-2022-50876 :
Linux Kernel vulnerability analysis and mitigation
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);
Source : NVD
Published December 30, 2025
CNA Score N/A
Affected Technologies
Linux Kernel
Linux Debian
Has Public Exploit No
Has CISA KEV Exploit No
CISA KEV Release Date N/A
CISA KEV Due Date N/A
Exploitation
https://git.kernel.org/stable/c/3c84c7f592c4ba38f54ddaddd0115acc443025dbhttps://git.kernel.org/stable/c/523313881f0aa5cbbdb548ce575b6e58b202bd76https://git.kernel.org/stable/c/7c80f3a918ba9aa26fb699ee887064ec3af0396ahttps://git.kernel.org/stable/c/826f84ab04a5cafe484ea9c2c85a3930068e5cb7https://git.kernel.org/stable/c/a1008c8b9f357691ce6a8fdb8f157aecb2d79167https://git.kernel.org/stable/c/a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96https://git.kernel.org/stable/c/acf0006f2b2b2ca672988875fd154429aafb2a9bhttps://git.kernel.org/stable/c/d6afcab1b48f4051211c50145b9e91be3b1b42c9https://git.kernel.org/stable/c/eea4c860c3b366369eff0489d94ee4f0571d467d
2025-12-30
Published