USB: serial: io_edgeport: cap received transmit credits
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < cbe00048b69d67c8a78293cb7681b4c9963b26c7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
USB: serial: io_edgeport: cap received transmit credits
The interrupt-status packet reports transmit credits returned by the device. edge_interrupt_callback() adds the 16-bit value to txCredits without checking maxTxCredits.
edge_write() uses txCredits minus the software FIFO count as the amount of data that fits. Since the FIFO is allocated with maxTxCredits bytes, txCredits exceeding maxTxCredits can cause OOB write in ring buffer.
Cap accumulated credits at maxTxCredits. Conforming devices should never hit the cap.
From the CVE record · Linux
The Linux kernel’s io_edgeport USB serial driver can accumulate more transmit credits than its buffer can hold. If a connected device reports excess credits, a subsequent write can cause an out-of-bounds write in the ring buffer; no user interaction is described.
Engineers running Linux kernels with the io_edgeport USB serial driver should check their exposure; affected versions are not specified.