CVE-2021-47476
comedi: ni_usb6501: fix NULL-deref in command paths
Check your servers for CVE-2021-47476
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47476 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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().
Severity (CVSS)
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- physical: the attacker has to touch the device
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.39%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 35.0% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 25 Jun 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-476 NULL Pointer Dereference
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from a03bb00e50ab4c07107da58a52a0bff7943f360c, before 58478143771b20ab219937b1c30a706590a59224 affected from a03bb00e50ab4c07107da58a52a0bff7943f360c, before aa39738423503825625853b643b9e99d11c23816 affected from a03bb00e50ab4c07107da58a52a0bff7943f360c, before df7b1238f3b599a0b9284249772cdfd1ea83a632 affected from a03bb00e50ab4c07107da58a52a0bff7943f360c, before bc51111bf6e8e7b6cc94b133e4c291273a16acd1 affected from a03bb00e50ab4c07107da58a52a0bff7943f360c, before b0156b7c9649d8f55a2ce3d3258509f1b2a181c3 affected from a03bb00e50ab4c07107da58a52a0bff7943f360c, before ef143dc0c3defe56730ecd3a9de7b3e1d7e557c1 affected from a03bb00e50ab4c07107da58a52a0bff7943f360c, before 4a9d43cb5d5f39fa39fc1da438517004cc95f7ea affected from a03bb00e50ab4c07107da58a52a0bff7943f360c, before d6a727a681a39ae4f73081a9bedb45d14f95bdd1 affected from a03bb00e50ab4c07107da58a52a0bff7943f360c, before 907767da8f3a925b060c740e0b5c92ea7dbec440
Other versions: unaffected
|
| Linux |
affected 3.18 unaffected before 3.18 unaffected from 4.4.292 up to and including 4.4.* unaffected from 4.9.290 up to and including 4.9.* unaffected from 4.14.255 up to and including 4.14.* unaffected from 4.19.217 up to and including 4.19.* unaffected from 5.4.159 up to and including 5.4.* unaffected from 5.10.79 up to and including 5.10.* unaffected from 5.14.18 up to and including 5.14.* unaffected from 5.15.2 up to and including 5.15.* unaffected 5.16 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47476 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47476
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-47476
trivy image --scanners vuln IMAGE | grep CVE-2021-47476
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/58478143771b20ab219937b1c30a706590a59224 git.kernel.org
- https://git.kernel.org/stable/c/aa39738423503825625853b643b9e99d11c23816 git.kernel.org
- https://git.kernel.org/stable/c/df7b1238f3b599a0b9284249772cdfd1ea83a632 git.kernel.org
- https://git.kernel.org/stable/c/bc51111bf6e8e7b6cc94b133e4c291273a16acd1 git.kernel.org
- https://git.kernel.org/stable/c/b0156b7c9649d8f55a2ce3d3258509f1b2a181c3 git.kernel.org
- https://git.kernel.org/stable/c/ef143dc0c3defe56730ecd3a9de7b3e1d7e557c1 git.kernel.org
- https://git.kernel.org/stable/c/4a9d43cb5d5f39fa39fc1da438517004cc95f7ea git.kernel.org
- https://git.kernel.org/stable/c/d6a727a681a39ae4f73081a9bedb45d14f95bdd1 git.kernel.org
- https://git.kernel.org/stable/c/907767da8f3a925b060c740e0b5c92ea7dbec440 git.kernel.org
Source: the record CVE-2021-47476 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse