mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-25 17:29:48 +07:00
![]() These values come from skb->data so Smatch considers them untrusted. I
believe Smatch is correct but I don't have a way to test this.
The usb_if->dev[] array has 2 elements but the index is in the 0-15
range without checks. The cfd->len can be up to 255 but the maximum
valid size is CANFD_MAX_DLEN (64) so that could lead to memory
corruption.
Fixes:
|
||
---|---|---|
.. | ||
kvaser_usb | ||
peak_usb | ||
ems_usb.c | ||
esd_usb2.c | ||
gs_usb.c | ||
Kconfig | ||
Makefile | ||
mcba_usb.c | ||
ucan.c | ||
usb_8dev.c |