CVE-2021-47476

comedi: ni_usb6501: fix NULL-deref in command paths

Medium · published May 22, 2024

CVSS v3.1
4.6
EPSS
0%
Percentile
31.7
In the wild
Unconfirmed
What it is

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().

The record
Technical detail
CVSS v3.1
4.6 · MEDIUM
Vector
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00388 · 31.7th percentile
Published
2024-05-22T08:19Z
EPSS history
Timeline
  • 22 MAY 08:19Z
    comedi: ni_usb6501: fix NULL-deref in command paths
    cvelistv5