CVE-2021-47476

comedi: ni_usb6501: fix NULL-deref in command paths

MEDIUM
4.6
CVSS Score
Published: May 22, 2024 at 08:19 AM UTC
Updated: June 17, 2026 at 04:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.6
Exploit prediction
EPSS 0.4%
SSVC
No known exploit

Description

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.18 ≤ v < 4.14.2553.18 ≤ v < 4.19.2173.18 ≤ v < 4.4.2923.18 ≤ v < 4.9.2903.18 ≤ v < 5.10.793.18 ≤ v < 5.14.183.18 ≤ v < 5.15.23.18 ≤ v < 5.163.18 ≤ v < 5.4.1594.10 ≤ v < 4.14.2554.15 ≤ v < 4.19.2174.20 ≤ v < 5.4.1594.5 ≤ v < 4.9.2905.11 ≤ v < 5.14.185.15 ≤ v < 5.15.25.5 ≤ v < 5.10.793.18a03bb00e50ab4c07107da58a52a0bff7943f360c
Vendor states this is fixed in 4a9d43cb5d5f39fa39fc1da438517004cc95f7ea (fixed)
Vendor states this is fixed in 58478143771b20ab219937b1c30a706590a59224 (fixed)
Vendor states this is fixed in 907767da8f3a925b060c740e0b5c92ea7dbec440 (fixed)
Vendor states this is fixed in aa39738423503825625853b643b9e99d11c23816 (fixed)
Vendor states this is fixed in b0156b7c9649d8f55a2ce3d3258509f1b2a181c3 (fixed)
Vendor states this is fixed in bc51111bf6e8e7b6cc94b133e4c291273a16acd1 (fixed)
Vendor states this is fixed in d6a727a681a39ae4f73081a9bedb45d14f95bdd1 (fixed)
Vendor states this is fixed in df7b1238f3b599a0b9284249772cdfd1ea83a632 (fixed)
Vendor states this is fixed in ef143dc0c3defe56730ecd3a9de7b3e1d7e557c1 (fixed)
Vendor states this is fixed in 3.18 (unaffected)
Vendor states this is fixed in 4.14.255 (unaffected)
Vendor states this is fixed in 4.19.217 (unaffected)
Vendor states this is fixed in 4.4.292 (unaffected)
Vendor states this is fixed in 4.9.290 (unaffected)
Vendor states this is fixed in 5.10.79 (unaffected)
Vendor states this is fixed in 5.14.18 (unaffected)
Vendor states this is fixed in 5.15.2 (unaffected)
Vendor states this is fixed in 5.16 (unaffected)
Vendor states this is fixed in 5.4.159 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4a9d43cb5d5f39fa39fc1da438517004cc95f7ea
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/58478143771b20ab219937b1c30a706590a59224
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/907767da8f3a925b060c740e0b5c92ea7dbec440
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/aa39738423503825625853b643b9e99d11c23816
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b0156b7c9649d8f55a2ce3d3258509f1b2a181c3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bc51111bf6e8e7b6cc94b133e4c291273a16acd1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d6a727a681a39ae4f73081a9bedb45d14f95bdd1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/df7b1238f3b599a0b9284249772cdfd1ea83a632

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

4.6MEDIUMCISA-ADP
Attack Vector
PHYSICAL
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card