CVE-2026-139007

Not scored yetLast modified Nov 30, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

usb: fotg210: validate endpoint index in ep0 handlers

fotg210_set_feature(), fotg210_clear_feature() and fotg210_get_status() use wIndex from the USB setup packet to index the fotg210->ep[] array without verifying that the endpoint number falls below FOTG210_MAX_NUM_EP (5). USB_ENDPOINT_NUMBER_MASK is 0x0f, so a malicious host can issue a setup packet with wIndex 5..15, resulting in an out-of-bounds array read. The resulting wild pointer is then dereferenced in fotg210_set_epnstall() or fotg210_is_epnstall(), which compute an MMIO register offset from ep->epnum and perform iowrite32 through it.

fotg210_clear_feature() is especially problematic: the out-of-bounds access occurs at function entry (source-level) regardless of which USB_RECIP_* case is taken, because the ep pointer is computed before the switch statement.

Add upper-bound checks on the endpoint number derived from wIndex in all three functions. Invalid endpoint numbers in clear_feature now trigger fotg210_request_error() (STALL) instead of silently falling through to fotg210_set_cxdone(). Also add the missing le16_to_cpu() conversion for ctrl->wIndex in fotg210_get_status() to fix a sparse endianness warning.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139008In the Linux kernel, the following vulnerability has been resolved: crypto: atmel-tdes - sync output bounce buffer before DMA The slow patCVE-2026-139009In the Linux kernel, the following vulnerability has been resolved: ntfs3: reject empty iomap before reading its LCN attr_data_get_block()CVE-2026-139019.6Insufficient policy enforcement in Serial in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the rendererCVE-2026-139010In the Linux kernel, the following vulnerability has been resolved: platform/x86: hp-bioscfg: fix slab-out-of-bounds write in hp_convert_heCVE-2026-139011In the Linux kernel, the following vulnerability has been resolved: ata: libata: Do not leave ata_host_stop() registered when activation faCVE-2026-139012In the Linux kernel, the following vulnerability has been resolved: f2fs: compress: fix to handle race between truncate and writeback fsstCVE-2026-139013In the Linux kernel, the following vulnerability has been resolved: f2fs: force out-place update for all writes on compressed file For comCVE-2026-139014In the Linux kernel, the following vulnerability has been resolved: f2fs: drop pending discard commands before reserving device alias WhenCVE-2026-139015In the Linux kernel, the following vulnerability has been resolved: dm vdo indexer: validate record page numbers better Move the record_paCVE-2026-1390167.8In the Linux kernel, the following vulnerability has been resolved: dm vdo indexer: prevent delta list overflow on load Check for corrupteCVE-2026-139017In the Linux kernel, the following vulnerability has been resolved: affs: validate blocks before freeing them affs_free_block() accepts blCVE-2026-139018In the Linux kernel, the following vulnerability has been resolved: PCI: endpoint: pci-epf-vntb: Manage virtual NTB and PCI bus lifetime T
CVE-2026-139007: Unscored | Vulnix