Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved: can: kvaser_usb: leaf: Fix potential infinite loop in command parsers Thekvaser_usb_leaf_wait_cmd() and kvaser_usb_leaf_read_bulk_callback
functions contain logic to zero-length commands. These commands are used
to align data to the USB endpoint’s wMaxPacketSize boundary.
The driver attempts to skip these placeholders by aligning the buffer
position pos to the next packet boundary using round_up() function.
However, if zero-length command is found exactly on a packet boundary
(i.e., pos is a multiple of wMaxPacketSize, including 0), round_up
function will return the unchanged value of pos. This prevents pos
to be increased, causing an infinite loop in the parsing logic.
This patch fixes this in the function by using pos + 1 instead.
This ensures that even if pos is on a boundary, the calculation is
based on pos + 1, forcing round_up() to always return the next
aligned boundary.
A flaw was found in the Linux kernel, specifically within the kvaser_usb CAN driver. This vulnerability allows a local user to trigger an infinite loop in the command parsing logic. This occurs when zero-length commands, used for data alignment, are encountered precisely on a packet boundary, causing the buffer position to not advance. The primary consequence of this flaw is a Denial of Service (DoS) to the system.
Details
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| Debian 12 | Released |
32 kernels
|
| Debian 13 | Will Not Fix | — |
| Oracle Linux 8 UEK 7 | Planned | — |
| Oracle Linux 9 UEK 7 | Planned | — |
| Proxmox VE 7 5.15 | Released |
47 kernels
|
| Ubuntu 20.04 HWE AWS | Released |
57 kernels
|
| Ubuntu 20.04 HWE Azure | Released |
40 kernels
|
| Ubuntu 22.04 | Released |
90 kernels
|
| Ubuntu 22.04 AWS | Released |
81 kernels
|
| Ubuntu 22.04 Azure | Released |
73 kernels
|
| Ubuntu 24.04 | Planned | — |
| Ubuntu 24.04 AWS | Planned | — |