can: ems_usb: validate CPC message lengths
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 702171adeed3607ee9603ec30ce081411e36ae42 · < 0b23144c59c126beb4a7761a85a194ae0fe668a5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
can: ems_usb: validate CPC message lengths
ems_usb_read_bulk_callback() walks CPC messages packed in one USB receive buffer.
Check that each declared message fits in the URB payload. Also require the type-specific payload to cover the fields used by the CAN, state, error and overrun handlers.
From the CVE record · Linux
The Linux kernel's ems_usb driver did not adequately validate the lengths of CPC messages in a USB receive buffer before processing them. This could cause handlers to access fields beyond a declared message or the received payload. The input does not specify an attack path, authentication requirements, or whether user interaction is needed.
Engineers running Linux kernels with the ems_usb CAN driver should check their kernel versions; affected versions are not specified.