can: peak_usb: validate uCAN receive record lengths
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0a25e1f4f18566b750ebd3ae995af64e23111e63 · < 2427ef427bdd78d862c7c76597bfd9eda88b81f1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
can: peak_usb: validate uCAN receive record lengths
pcan_usb_fd_decode_buf() walks uCAN records packed in one USB receive buffer.
Require each record to contain the fixed header for its type, and verify CAN payload bytes before copying them into the skb.
From the CVE record · Linux
The Linux kernel’s peak_usb driver did not adequately validate uCAN record lengths in USB receive buffers before copying CAN payload bytes into an skb. Malformed records could lead to a copy without confirming that the payload bytes are present. The input does not specify attacker access requirements or whether user interaction is needed.
Engineers running the Linux kernel with the peak_usb driver should check their kernel version; affected versions are not specified.