CVE-2026-23298
JSON

5.5medium

can: ucan: Fix infinite loop from zero-length messages

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: can: ucan: Fix infinite loop from zero-length messages If a broken ucan device gets a message with the message length field set to 0, then the driver will loop for forever in ucan_read_bulk_callback(), hanging the system. If the length is 0, just skip the message and go on to the next one. This has been fixed in the kvaser_usb driver in the past in commit 0c73772cd2b8 ("can: kvaser_usb: leaf: Fix potential infinite loop in command parsers"), so there must be some broken devices out there like this somewhere.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 9f2d3eae88d26c29d96e42983b755940d9169cd9 before ca07d3c6eef14d34e6fdeefe55058db045be29dc, from 9f2d3eae88d26c29d96e42983b755940d9169cd9 before e7bb6e0606b5f233531aaaad9542d69fbb792115, from 9f2d3eae88d26c29d96e42983b755940d9169cd9 before ab6f075492d37368b4c7b0df7f7fdc2b666887fc, from 9f2d3eae88d26c29d96e42983b755940d9169cd9 before 13b646eec3ba1131180803f5aaf1fee23540ad8f, from 9f2d3eae88d26c29d96e42983b755940d9169cd9 before bd85f21a6219aeae4389d700c54f1799f4b814e0, from 9f2d3eae88d26c29d96e42983b755940d9169cd9 before aa9e0a7fe5efc2f74327fd37d828e9a51d9ff588, from 9f2d3eae88d26c29d96e42983b755940d9169cd9 before c7bc62be6c1a60bb21301692009590b1ffda91d9, from 9f2d3eae88d26c29d96e42983b755940d9169cd9 before 1e446fd0582ad8be9f6dafb115fc2e7245f9bea7 and 1 more
Not affected: before 4.19, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.167 up to 6.1.*, from 6.6.130 up to 6.6.*, from 6.12.77 up to 6.12.*
CVE List
linux linux_kernelfrom 4.19 before 5.10.253, from 5.11 before 5.15.203, from 5.16 before 6.1.167, from 6.2 before 6.6.130, from 6.7 before 6.12.77, from 6.13 before 6.18.17, from 6.19 before 6.19.7, 7.0NVD

Classification

CWE-835

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: can: ucan: Fix infinite loop from zero-length messages If a broken ucan device gets a message with the message length field set to 0, then the driver will loop for forever in ucan_read_bulk_callback(), hanging the system. If the length is 0, just skip the message and go on to the next one. This has been fixed in the kvaser_usb driver in the past in commit 0c73772cd2b8 ("can: kvaser_usb: leaf: Fix potential infinite loop in command parsers"), so there must be some broken devices out there like this somewhere.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: can: ucan: Corrección de bucle infinito por mensajes de longitud cero Si un dispositivo ucan defectuoso recibe un mensaje con el campo de longitud del mensaje establecido en 0, entonces el controlador entrará en un bucle infinito en ucan_read_bulk_callback(), colgando el sistema. Si la longitud es 0, simplemente omita el mensaje y pase al siguiente. Esto ha sido corregido en el controlador kvaser_usb en el pasado en el commit 0c73772cd2b8 ('can: kvaser_usb: leaf: Corrección de posible bucle infinito en los analizadores de comandos'), así que debe haber algunos dispositivos defectuosos por ahí como este en algún lugar.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-23298 changed 2026-11-05CVE Terms of Use
NVDCVE-2026-23298 changed 2026-11-05Public domain