| Name | CVE-2025-68308 |
| Description | In the Linux kernel, the following vulnerability has been resolved: can: kvaser_usb: leaf: Fix potential infinite loop in command parsers The `kvaser_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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4436-1 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| linux (PTS) | bullseye | 5.10.223-1 | vulnerable |
| bullseye (security) | 5.10.247-1 | fixed | |
| bookworm | 6.1.159-1 | fixed | |
| bookworm (security) | 6.1.158-1 | vulnerable | |
| trixie | 6.12.63-1 | fixed | |
| trixie (security) | 6.12.48-1 | vulnerable | |
| forky | 6.17.13-1 | fixed | |
| sid | 6.18.5-1 | fixed | |
| linux-6.1 (PTS) | bullseye (security) | 6.1.159-1~deb11u1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| linux | source | bullseye | 5.10.247-1 | |||
| linux | source | bookworm | 6.1.159-1 | |||
| linux | source | trixie | 6.12.63-1 | |||
| linux | source | (unstable) | 6.17.11-1 | |||
| linux-6.1 | source | bullseye | 6.1.159-1~deb11u1 | DLA-4436-1 |
https://git.kernel.org/linus/0c73772cd2b8cc108d5f5334de89ad648d89b9ec (6.18)