Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: can: kvaser_usb_leaf: kvaser_usb_leaf_wait_cmd(): validate received command extents The wait and bulk receive paths walk variable-length commands from a USB buffer. A nonzero command shorter than CMD_HEADER_LEN can still be dispatched, and the wait path copies a matching command into a fixed caller-owned struct kvaser_cmd using the device-provided length. Reject nonzero commands that do not contain the fixed header or that extend beyond the current USB buffer item. In the wait path, also reject a matching command that exceeds the destination before copying it.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 080f40a6fa28dab299da7a652e444b1e2d9231e7 before c00ec53d7dec08134e97071850cc00ef000c5b77; affected 080f40a6fa28dab299da7a652e444b1e2d9231e7 before d9e91672526ffa279709b15490118aea1bdee714; affected 080f40a6fa28dab299da7a652e444b1e2d9231e7 before 72f96c2942f11a0ae8663adcb3d9ee986e07d4fa; affected 080f40a6fa28dab299da7a652e444b1e2d9231e7 before 695aea154bb2d453e6daada1510972fafd075285; affected 080f40a6fa28dab299da7a652e444b1e2d9231e7 before 3d0897ec623e422695d70d80ae456f89476c5328; affected 080f40a6fa28dab299da7a652e444b1e2d9231e7 before 185cb1fa38142a3cbf223dd8b3abb24217f330d3; affected 080f40a6fa28dab299da7a652e444b1e2d9231e7 before 21f0465fd86d77794aaed8e05f833634f68d178d; affected 080f40a6fa28dab299da7a652e444b1e2d9231e7 before 0293dd153f9dbc1ddf5dacdccc76b363bce4a8ee |
| Linux / Linux | affected 3.8; unaffected 0 before 3.8; unaffected 5.10.265 through 5.10.*; unaffected 5.15.216 through 5.15.*; unaffected 6.1.183 through 6.1.*; unaffected 6.6.151 through 6.6.*; unaffected 6.12.103 through 6.12.*; unaffected 6.18.44 through 6.18.*; unaffected 7.1.8 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/c00ec53d7dec08134e97071850cc00ef000c5b77
- https://git.kernel.org/stable/c/d9e91672526ffa279709b15490118aea1bdee714
- https://git.kernel.org/stable/c/72f96c2942f11a0ae8663adcb3d9ee986e07d4fa
- https://git.kernel.org/stable/c/695aea154bb2d453e6daada1510972fafd075285
- https://git.kernel.org/stable/c/3d0897ec623e422695d70d80ae456f89476c5328
- https://git.kernel.org/stable/c/185cb1fa38142a3cbf223dd8b3abb24217f330d3
- https://git.kernel.org/stable/c/21f0465fd86d77794aaed8e05f833634f68d178d
- https://git.kernel.org/stable/c/0293dd153f9dbc1ddf5dacdccc76b363bce4a8ee