{"id":"CVE-2026-139007","aliases":["CVE-2026-139007"],"related":[],"kind":"vulnerability","state":"published","title":"usb: fotg210: validate endpoint index in ep0 handlers","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: fotg210: validate endpoint index in ep0 handlers\n\nfotg210_set_feature(), fotg210_clear_feature() and fotg210_get_status()\nuse wIndex from the USB setup packet to index the fotg210->ep[] array\nwithout verifying that the endpoint number falls below\nFOTG210_MAX_NUM_EP (5).  USB_ENDPOINT_NUMBER_MASK is 0x0f, so a\nmalicious host can issue a setup packet with wIndex 5..15, resulting in\nan out-of-bounds array read.  The resulting wild pointer is then\ndereferenced in fotg210_set_epnstall() or fotg210_is_epnstall(), which\ncompute an MMIO register offset from ep->epnum and perform iowrite32\nthrough it.\n\nfotg210_clear_feature() is especially problematic: the out-of-bounds\naccess occurs at function entry (source-level) regardless of which\nUSB_RECIP_* case is taken, because the ep pointer is computed before the\nswitch statement.\n\nAdd upper-bound checks on the endpoint number derived from wIndex in\nall three functions.  Invalid endpoint numbers in clear_feature now\ntrigger fotg210_request_error() (STALL) instead of silently falling\nthrough to fotg210_set_cxdone().  Also add the missing le16_to_cpu()\nconversion for ctrl->wIndex in fotg210_get_status() to fix a sparse\nendianness warning.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: fotg210: validate endpoint index in ep0 handlers\n\nfotg210_set_feature(), fotg210_clear_feature() and fotg210_get_status()\nuse wIndex from the USB setup packet to index the fotg210->ep[] array\nwithout verifying that the endpoint number falls below\nFOTG210_MAX_NUM_EP (5).  USB_ENDPOINT_NUMBER_MASK is 0x0f, so a\nmalicious host can issue a setup packet with wIndex 5..15, resulting in\nan out-of-bounds array read.  The resulting wild pointer is then\ndereferenced in fotg210_set_epnstall() or fotg210_is_epnstall(), which\ncompute an MMIO register offset from ep->epnum and perform iowrite32\nthrough it.\n\nfotg210_clear_feature() is especially problematic: the out-of-bounds\naccess occurs at function entry (source-level) regardless of which\nUSB_RECIP_* case is taken, because the ep pointer is computed before the\nswitch statement.\n\nAdd upper-bound checks on the endpoint number derived from wIndex in\nall three functions.  Invalid endpoint numbers in clear_feature now\ntrigger fotg210_request_error() (STALL) instead of silently falling\nthrough to fotg210_set_cxdone().  Also add the missing le16_to_cpu()\nconversion for ctrl->wIndex in fotg210_get_status() to fix a sparse\nendianness warning.","source":"cvelist"}],"published":"2026-11-30T13:27:00.630Z","modified":"2026-11-30T14:18:03.817Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b84a8dee23fd41600a8aebcba1410b5bb5b3bdeb","fixed":"ae4977c1a0fb9200ff4dd19e0a13d55f00720fda","status":"affected"},{"type":"git","introduced":"b84a8dee23fd41600a8aebcba1410b5bb5b3bdeb","fixed":"22eeb045f9394d5184df302190deea902104f394","status":"affected"},{"type":"git","introduced":"b84a8dee23fd41600a8aebcba1410b5bb5b3bdeb","fixed":"7df7ffc21c898148afc91df7d90b6316fbdc3b7c","status":"affected"},{"type":"git","introduced":"b84a8dee23fd41600a8aebcba1410b5bb5b3bdeb","fixed":"4bee213dd4ade93aa502cd83d0eb4b78055027c5","status":"affected"},{"type":"git","introduced":"b84a8dee23fd41600a8aebcba1410b5bb5b3bdeb","fixed":"7b5980b6206dfbb4369bd0f94f3ed3957445072c","status":"affected"},{"type":"git","introduced":"b84a8dee23fd41600a8aebcba1410b5bb5b3bdeb","fixed":"0d9e9643b93d6f6f8c2b4bb07037815de7065411","status":"affected"},{"type":"git","introduced":"b84a8dee23fd41600a8aebcba1410b5bb5b3bdeb","fixed":"90140d30ee7bbd5e7c2e9e0d685c72991598c58b","status":"affected"},{"type":"git","introduced":"b84a8dee23fd41600a8aebcba1410b5bb5b3bdeb","fixed":"bbddb219b00af0792242a0ad1dc7fb3344f38733","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.11","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/ae4977c1a0fb9200ff4dd19e0a13d55f00720fda","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22eeb045f9394d5184df302190deea902104f394","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7df7ffc21c898148afc91df7d90b6316fbdc3b7c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4bee213dd4ade93aa502cd83d0eb4b78055027c5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7b5980b6206dfbb4369bd0f94f3ed3957445072c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d9e9643b93d6f6f8c2b4bb07037815de7065411","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/90140d30ee7bbd5e7c2e9e0d685c72991598c58b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bbddb219b00af0792242a0ad1dc7fb3344f38733","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139007","url":"https://www.cve.org/CVERecord?id=CVE-2026-139007","licence":"CVE Terms of Use","modified":"2026-11-30T13:27:00.630Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139007","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139007","licence":"Public domain","modified":"2026-11-30T14:18:03.817Z"}],"updatedAt":"2026-11-30T14:32:34.197Z","epss":{"score":0.00211,"percentile":0.12072,"date":"2026-12-01T12:00:22.000Z"}}