comedi: ni_usb6501: fix NULL-deref in command paths
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a03bb00e50ab4c07107da58a52a0bff7943f360c · < ef143dc0c3defe56730ecd3a9de7b3e1d7e557c1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
comedi: ni_usb6501: fix NULL-deref in command paths
The driver uses endpoint-sized USB transfer buffers but had no sanity checks on the sizes. This can lead to zero-size-pointer dereferences or overflowed transfer buffers in ni6501_port_command() and ni6501_counter_command() if a (malicious) device has smaller max-packet sizes than expected (or when doing descriptor fuzz testing).
Add the missing sanity checks to probe().
From the CVE record · Linux
The Linux kernel’s ni_usb6501 driver lacks USB endpoint size checks in its command paths. A malicious USB device with smaller-than-expected maximum packet sizes, or descriptor fuzz testing, can trigger a NULL-pointer dereference or transfer-buffer overflow. The issue requires interaction with such a device; authentication requirements are not specified.
Engineers running the Linux kernel with the ni_usb6501 driver should check their version against the vendor advisory; affected versions are not specified.