CVE-2021-47477
comedi: dt9812: fix DMA buffers on stack
Check your servers for CVE-2021-47477
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-47477 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: dt9812: fix DMA buffers on stack
USB transfer buffers are typically mapped for DMA and must not be allocated on the stack or transfers will fail.
Allocate proper transfer buffers in the various command helpers and return an error on short transfers instead of acting on random stack data.
Note that this also fixes a stack info leak on systems where DMA is not used as 32 bytes are always sent to the device regardless of how short the command is.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- 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 low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.72%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 55.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 22 May 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
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 63274cd7d38a3322d90b66a5bc976de1fb899051, before a6af69768d5cb4b2528946d53be5fa19ade37723 affected from 63274cd7d38a3322d90b66a5bc976de1fb899051, before 365a346cda82f51d835c49136a00a9df8a78c7f2 affected from 63274cd7d38a3322d90b66a5bc976de1fb899051, before 8a52bc480992c7c9da3ebfea456af731f50a4b97 affected from 63274cd7d38a3322d90b66a5bc976de1fb899051, before 39ea61037ae78f14fa121228dd962ea3280eacf3 affected from 63274cd7d38a3322d90b66a5bc976de1fb899051, before 3efb7af8ac437085b6c776e5b54830b149d86efe affected from 63274cd7d38a3322d90b66a5bc976de1fb899051, before 786f5b03450454557ff858a8bead5d7c0cbf78d6 affected from 63274cd7d38a3322d90b66a5bc976de1fb899051, before 3ac273d154d634e2034508a14db82a95d7ad12ed affected from 63274cd7d38a3322d90b66a5bc976de1fb899051, before 20cebb8b620dc987e55ddc46801de986e081757e affected from 63274cd7d38a3322d90b66a5bc976de1fb899051, before 536de747bc48262225889a533db6650731ab25d3
Other versions: unaffected
|
| Linux |
affected 2.6.29 unaffected before 2.6.29 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-47477 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47477
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-47477
trivy image --scanners vuln IMAGE | grep CVE-2021-47477
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/a6af69768d5cb4b2528946d53be5fa19ade37723 git.kernel.org
- https://git.kernel.org/stable/c/365a346cda82f51d835c49136a00a9df8a78c7f2 git.kernel.org
- https://git.kernel.org/stable/c/8a52bc480992c7c9da3ebfea456af731f50a4b97 git.kernel.org
- https://git.kernel.org/stable/c/39ea61037ae78f14fa121228dd962ea3280eacf3 git.kernel.org
- https://git.kernel.org/stable/c/3efb7af8ac437085b6c776e5b54830b149d86efe git.kernel.org
- https://git.kernel.org/stable/c/786f5b03450454557ff858a8bead5d7c0cbf78d6 git.kernel.org
- https://git.kernel.org/stable/c/3ac273d154d634e2034508a14db82a95d7ad12ed git.kernel.org
- https://git.kernel.org/stable/c/20cebb8b620dc987e55ddc46801de986e081757e git.kernel.org
- https://git.kernel.org/stable/c/536de747bc48262225889a533db6650731ab25d3 git.kernel.org
Source: the record CVE-2021-47477 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse