CVE-2026-142970: USB: serial: sierra: validate URB length in instat callback
In the Linux kernel, the following vulnerability has been resolved:
USB: serial: sierra: validate URB length in instat callback
sierrainstatcallback() reads request fields and one byte past the usbctrlrequest header without first checking that urb->actuallength is large enough. A short USB interrupt transfer could cause an out-of-bounds read.
Add two length checks matching the pattern already present in the option driver (optioninstatcallback): one for the request header before accessing bRequestType, and one for the line-state data byte inside the serial-state notification handler. Use deverr() since failing these checks causes the interrupt URB not to be resubmitted.
[ johan: use sizeof(reqpkt) consistently ]
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel USB serial Sierra driver, add length checks in sierra_instat_callback() before accessing bRequestType and the line-state data byte; do not resubmit the interrupt URB when either check fails.