CVE-2022-50876

usb: musb: Fix musb_gadget.c rxstate overflow bug

No CVSS score yet EPSS 0.25%

Published 30 Dec 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50876

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50876 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Exploitation

EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.4% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, before 826f84ab04a5cafe484ea9c2c85a3930068e5cb7
affected from 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, before a1008c8b9f357691ce6a8fdb8f157aecb2d79167
affected from 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, before 7c80f3a918ba9aa26fb699ee887064ec3af0396a
affected from 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, before d6afcab1b48f4051211c50145b9e91be3b1b42c9
affected from 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, before acf0006f2b2b2ca672988875fd154429aafb2a9b
affected from 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, before 3c84c7f592c4ba38f54ddaddd0115acc443025db
affected from 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, before a9ccd2ab1becf5dcb6d57e9fcd981f5eaa606c96
affected from 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, before 523313881f0aa5cbbdb548ce575b6e58b202bd76
affected from 03840fad004ce8a56bc8b3bb60a2df10f6f9481e, before eea4c860c3b366369eff0489d94ee4f0571d467d
Other versions: unaffected
Linux
affected 4.3
unaffected before 4.3
unaffected from 4.9.331 up to and including 4.9.*
unaffected from 4.14.296 up to and including 4.14.*
unaffected from 4.19.262 up to and including 4.19.*
unaffected from 5.4.220 up to and including 5.4.*
unaffected from 5.10.150 up to and including 5.10.*
unaffected from 5.15.75 up to and including 5.15.*
unaffected from 5.19.17 up to and including 5.19.*
unaffected from 6.0.3 up to and including 6.0.*
unaffected 6.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50876 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50876

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50876
trivy image --scanners vuln IMAGE | grep CVE-2022-50876

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50876 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.