CVE-2021-47476 json
comedi: ni_usb6501: fix NULL-deref in command paths
published 2024-05-22 2 y ago modified 2026-06-17 4 mo ago also EUVD-2021-34481
- cvss
- 4.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 33%
- public exploits
- 0
- none known
Summary
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().
Patch / fix
- Linux Linux 4.4.292, 4.9.290, 4.14.255, 4.19.217, 5.4.159, 5.10.79, 5.14.18, 5.15.2, 5.16
- linux Debian 14, Debian 13, Debian 12 5.15.3-1
debian advisories DEBIAN-CVE-2021-47476
- linux Ubuntu 18.04 LTS 4.15.0-167.175
- linux Ubuntu 20.04 LTS 5.4.0-97.110
- linux-aws Ubuntu 18.04 LTS 4.15.0-1119.127
- linux-aws Ubuntu 20.04 LTS 5.4.0-1064.67
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1063.67
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1013.14
- linux-kvm Ubuntu 18.04 LTS 4.15.0-1106.108
- linux-kvm Ubuntu 20.04 LTS 5.4.0-1054.56
ubuntu advisories UBUNTU-CVE-2021-47476
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- dtb-aarch64 openSUSE Leap 15.5 5.14.21-150500.55.68.1
- kernel-64kb SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.68.1
- kernel-syms SLE Module for Development Tools 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.68.1
- kernel-obs-qa openSUSE Leap 15.5 5.14.21-150500.55.68.1
- kernel-source SLE Module for Development Tools 15 SP5, SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.68.1
- kernel-default SLE Workstation Extension 15 SP5, SLE Module for Legacy 15 SP5, SLE Module for Basesystem 15 SP5 +4 more 5.14.21-150500.55.68.1
- kernel-kvmsmall openSUSE Leap 15.5 5.14.21-150500.55.68.1
- kernel-zfcpdump SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.68.1
suse advisories SUSE-SU-2024:2190-1SUSE-SU-2024:2189-1SUSE-SU-2024:2019-1SUSE-SU-2024:2011-1SUSE-SU-2024:2008-1
- git.kernel.org/stable/c/58478143771b20ab219937b1c30a706590a59224 commit
- git.kernel.org/stable/c/aa39738423503825625853b643b9e99d11c23816 commit
- git.kernel.org/stable/c/df7b1238f3b599a0b9284249772cdfd1ea83a632 commit
- git.kernel.org/stable/c/bc51111bf6e8e7b6cc94b133e4c291273a16acd1 commit
- git.kernel.org/stable/c/b0156b7c9649d8f55a2ce3d3258509f1b2a181c3 commit
- git.kernel.org/stable/c/ef143dc0c3defe56730ecd3a9de7b3e1d7e557c1 commit
- git.kernel.org/stable/c/4a9d43cb5d5f39fa39fc1da438517004cc95f7ea commit
- git.kernel.org/stable/c/d6a727a681a39ae4f73081a9bedb45d14f95bdd1 commit
- git.kernel.org/stable/c/907767da8f3a925b060c740e0b5c92ea7dbec440 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-47476 updated cvss 4.4
kernel: comedi: ni_usb6501: fix NULL-deref in command paths
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.39% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 4.6 | CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 4.6 | CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
- Technology feeds
References
-
git.kernel.org
/stable/c/58478143771b20ab219937b1c30a706590a59224
patch
-
git.kernel.org
/stable/c/aa39738423503825625853b643b9e99d11c23816
patch
-
git.kernel.org
/stable/c/df7b1238f3b599a0b9284249772cdfd1ea83a632
patch
-
git.kernel.org
/stable/c/bc51111bf6e8e7b6cc94b133e4c291273a16acd1
patch
-
git.kernel.org
/stable/c/b0156b7c9649d8f55a2ce3d3258509f1b2a181c3
patch
-
git.kernel.org
/stable/c/ef143dc0c3defe56730ecd3a9de7b3e1d7e557c1
patch
-
git.kernel.org
/stable/c/4a9d43cb5d5f39fa39fc1da438517004cc95f7ea
patch
-
git.kernel.org
/stable/c/d6a727a681a39ae4f73081a9bedb45d14f95bdd1
patch
-
git.kernel.org
/stable/c/907767da8f3a925b060c740e0b5c92ea7dbec440
patch
Sources
- CVE List CVE-2021-47476
- NVD CVE-2021-47476
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.