usb: musb: Fix musb_gadget.c rxstate overflow bug (Linux Linux)

CVE-2022-50876
Not available

At a glance

Source
NVD
EPSS
EPSS 0.23 % · percentile 14 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Deferred

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

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < 826f84ab04a5cafe484ea9c2c85a3930068e5cb7 ; affected 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < a1008c8b9f357691ce6a8fdb8f157aecb2d79167 ; affected 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < 7c80f3a918ba9aa26fb699ee887064ec3af0396a ; affected 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < d6afcab1b48f4051211c50145b9e91be3b1b42c9 ; affected 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < acf0006f2b2b2ca672988875fd154429aafb2a9b ; affected 03840fad004ce8a56bc8b3bb60a2df10f6f9481e < 3c84c7f592c4ba38f54ddaddd0115acc443025db
Linux · Linuxaffected 4.3 ; unaffected 0 < 4.3 ; unaffected 4.9.331 ≤ 4.9.* ; unaffected 4.14.296 ≤ 4.14.* ; unaffected 4.19.262 ≤ 4.19.* ; unaffected 5.4.220 ≤ 5.4.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD