# CVE-2021-47474: comedi: vmk80xx: fix bulk-buffer overflow

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-05-22T08:19:28.759Z
- **Modified:** 2026-06-17T04:17:33.320Z

## Who should check

- Anyone running Linux \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< e0e6a63fd97ad95fe05dfd77268a1952551e11a7; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 7cfb35db607760698d299fd1cf7402dfa8f09973; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 0866dcaa828c21bc2f94dac00e086078f11b5772; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 063f576c43d589a4c153554b681d32b3f8317c7b; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 1ae4715121a57bc6fa29fd992127b01907f2f993; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< b7fd7f3387f070215e6be341e68eb5c087eeecc0; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 7b0e356189327287d0eb98ec081bd6dd97068cd3; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 47b4636ebdbeba2044b3db937c4d2b6a4fe3d0f2; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 78cdfd62bd54af615fba9e3ca1ba35de39d3871d
- Anyone running Linux 2.6.31

## Description

In the Linux kernel, the following vulnerability has been resolved:

comedi: vmk80xx: fix bulk-buffer overflow

The driver is using endpoint-sized buffers but must not assume that the
tx and rx buffers are of equal size or a malicious device could overflow
the slab-allocated receive buffer when doing bulk transfers.

## Affected and fixed versions

- Linux: \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< e0e6a63fd97ad95fe05dfd77268a1952551e11a7; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 7cfb35db607760698d299fd1cf7402dfa8f09973; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 0866dcaa828c21bc2f94dac00e086078f11b5772; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 063f576c43d589a4c153554b681d32b3f8317c7b; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 1ae4715121a57bc6fa29fd992127b01907f2f993; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< b7fd7f3387f070215e6be341e68eb5c087eeecc0; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 7b0e356189327287d0eb98ec081bd6dd97068cd3; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 47b4636ebdbeba2044b3db937c4d2b6a4fe3d0f2; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 78cdfd62bd54af615fba9e3ca1ba35de39d3871d (cvelist)
- Linux: 2.6.31 (cvelist)

## Mitigation

- Upgrade Linux to 78cdfd62bd54af615fba9e3ca1ba35de39d3871d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47474. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47474.md
Affected: Linux >= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, < e0e6a63fd97ad95fe05dfd77268a1952551e11a7; >= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, < 7cfb35db607760698d299fd1cf7402dfa8f09973; >= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, < 0866dcaa828c21bc2f94dac00e086078f11b5772; >= 985cafccbf9b7f862aa1c5e…
Fixed in: Linux 7cfb35db607760698d299fd1cf7402dfa8f09973, Linux 0866dcaa828c21bc2f94dac00e086078f11b5772, Linux 063f576c43d589a4c153554b681d32b3f8317c7b, Linux 1ae4715121a57bc6fa29fd992127b01907f2f993, Linux 7b0e356189327287d0eb98ec081bd6dd97068cd3, Linux 47b4636ebdbeba2044b3db937c4d2b6a4fe3d0f2, Linux 78cdf…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47474 being exploited?

There is no confirmed exploitation: CVE-2021-47474 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47474?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47474?

Linux \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< e0e6a63fd97ad95fe05dfd77268a1952551e11a7; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 7cfb35db607760698d299fd1cf7402dfa8f09973; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 0866dcaa828c21bc2f94dac00e086078f11b5772; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 063f576c43d589a4c153554b681d32b3f8317c7b; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 1ae4715121a57bc6fa29fd992127b01907f2f993; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< b7fd7f3387f070215e6be341e68eb5c087eeecc0; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 7b0e356189327287d0eb98ec081bd6dd97068cd3; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 47b4636ebdbeba2044b3db937c4d2b6a4fe3d0f2; \>= 985cafccbf9b7f862aa1c5ee566801e18b5161fb, \< 78cdfd62bd54af615fba9e3ca1ba35de39d3871d; Linux 2.6.31.

### Is there a fix for CVE-2021-47474?

Yes. Fixed in Linux 7cfb35db607760698d299fd1cf7402dfa8f09973, Linux 0866dcaa828c21bc2f94dac00e086078f11b5772, Linux 063f576c43d589a4c153554b681d32b3f8317c7b, Linux 1ae4715121a57bc6fa29fd992127b01907f2f993, Linux 7b0e356189327287d0eb98ec081bd6dd97068cd3, Linux 47b4636ebdbeba2044b3db937c4d2b6a4fe3d0f2, Linux 78cdfd62bd54af615fba9e3ca1ba35de39d3871d. Upgrade Linux to 78cdfd62bd54af615fba9e3ca1ba35de39d3871d or later.

### How do I check if I'm affected by CVE-2021-47474?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e0e6a63fd97ad95fe05dfd77268a1952551e11a7>
- patch: <https://git.kernel.org/stable/c/7cfb35db607760698d299fd1cf7402dfa8f09973>
- patch: <https://git.kernel.org/stable/c/0866dcaa828c21bc2f94dac00e086078f11b5772>
- patch: <https://git.kernel.org/stable/c/063f576c43d589a4c153554b681d32b3f8317c7b>
- patch: <https://git.kernel.org/stable/c/1ae4715121a57bc6fa29fd992127b01907f2f993>
- patch: <https://git.kernel.org/stable/c/b7fd7f3387f070215e6be341e68eb5c087eeecc0>
- patch: <https://git.kernel.org/stable/c/7b0e356189327287d0eb98ec081bd6dd97068cd3>
- patch: <https://git.kernel.org/stable/c/47b4636ebdbeba2044b3db937c4d2b6a4fe3d0f2>
- patch: <https://git.kernel.org/stable/c/78cdfd62bd54af615fba9e3ca1ba35de39d3871d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47474>

HTML: <https://flawdb.com/CVE-2021-47474> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47474>
