Shellfeed logo Shellfeed

CVE-2026-74457 · UNKNOWN

Summary: can: peak_usb: add bounds check for USB channel index

Details

In the Linux kernel, the following vulnerability has been resolved:

can: peak_usb: add bounds check for USB channel index

The channel control index ctrl_idx is derived from rx->len which comes
directly from a device USB payload. The mask 0x0f allows values 0-15, but
the array size of usb_if->dev[] is only 2. Values 2-15 cause heap
out-of-bounds read, eventually causing kernel panic in the IRQ context.

Add bounds checking for ctrl_idx before the array access in both
pcan_usb_pro_handle_canmsg() and pcan_usb_pro_handle_error().

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [d8a199355f8f8a0797c00d98788d7282c9ea38bd – 18b1a868a2cda66fb438007ba47ce5f2484db381]
  • Linux Kernel [3.4.0 – 5.10.265] [5.11.0 – 5.15.216] [5.16.0 – 6.1.183] [6.2.0 – 6.6.151] [6.7.0 – 6.12.103] [6.13.0 – 6.18.44] [6.19.0 – 7.1.8]

References