Not scored
can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header
- Severity
- Not scored
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header The driver expects to receive a struct gs_host_frame in gs_usb_receive_bulk_callback(). Use struct_group to describe the header of the struct gs_host_frame and check that we have at least received the header before accessing any members of it. To resubmit the URB, do not dereference the pointer chain "dev->parent->hf_size_rx" but use "parent->hf_size_rx" instead. Since "urb->context" contains "parent", it is always defined, while "dev" is not defined if the URB it too short.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from d08e973a77d128b25e01a08c34d89593fdf222da before 18cbce43363c9f84b90a92d57df341155eee0697, from d08e973a77d128b25e01a08c34d89593fdf222da before 3433680b759646efcacc64fe36aa2e51ae34b8f0, from d08e973a77d128b25e01a08c34d89593fdf222da before 616eee3e895b8ca0028163fcb1dce5e3e9dea322, from d08e973a77d128b25e01a08c34d89593fdf222da before f31693dc3a584c0ad3937e857b59dbc1a7ed2b87, from d08e973a77d128b25e01a08c34d89593fdf222da before 6fe9f3279f7d2518439a7962c5870c6e9ecbadcf, 3.16 Not affected: before 3.16, from 6.1.159 up to 6.1.*, from 6.6.119 up to 6.6.*, from 6.12.61 up to 6.12.*, from 6.17.11 up to 6.17.*, from 6.18 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header The driver expects to receive a struct gs_host_frame in gs_usb_receive_bulk_callback(). Use struct_group to describe the header of the struct gs_host_frame and check that we have at least received the header before accessing any members of it. To resubmit the URB, do not dereference the pointer chain "dev->parent->hf_size_rx" but use "parent->hf_size_rx" instead. Since "urb->context" contains "parent", it is always defined, while "dev" is not defined if the URB it too short.
NVD (es)
En el kernel de Linux, se ha corregido la siguiente vulnerabilidad:\n\ncan: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header\n\nEl controlador espera recibir una struct gs_host_frame en gs_usb_receive_bulk_callback().\n\nUtilizar struct_group para describir la cabecera de la struct gs_host_frame y comprobar que se ha recibido al menos la cabecera antes de acceder a cualquiera de sus miembros.\n\nPara volver a enviar el URB, no desreferenciar la cadena de punteros \“dev -> parent -> hf_size_rx\” sino usar \“parent -> hf_size_rx\” en su lugar. Dado que \“urb -> context\” contiene \“parent\”, siempre está definido, mientras que \“dev\” no está definido si el URB es demasiado corto.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68343 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-68343 changed 2026-10-19 | Public domain |