CVE-2021-47475 json
comedi: vmk80xx: fix transfer-buffer overflows
published 2024-05-22 2 y ago modified 2026-06-17 4 mo ago also EUVD-2021-34480
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 17%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
comedi: vmk80xx: fix transfer-buffer overflows
The driver uses endpoint-sized USB transfer buffers but up until recently had no sanity checks on the sizes.
Commit e1f13c879a7c ("staging: comedi: check validity of wMaxPacketSize of usb endpoints found") inadvertently fixed NULL-pointer dereferences when accessing the transfer buffers in case a malicious device has a zero wMaxPacketSize.
Make sure to allocate buffers large enough to handle also the other accesses that are done without a size check (e.g. byte 18 in vmk80xx_cnt_insn_read() for the VMK8061_MODEL) to avoid writing beyond the buffers, for example, when doing descriptor fuzzing.
The original driver was for a low-speed device with 8-byte buffers. Support was later added for a device that uses bulk transfers and is presumably a full-speed device with a maximum 64-byte wMaxPacketSize.
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-47475
- 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-47475
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/5229159f1d052821007aff1a1beb7873eacf1a9f commit
- git.kernel.org/stable/c/ec85bcff4ed09260243d8f39faba99e1041718ba commit
- git.kernel.org/stable/c/40d2a7e278e2e7c0a5fd7e997e7eb63945bf93f7 commit
- git.kernel.org/stable/c/7a2021b896de1ad559d33b5c5cdd20b982242088 commit
- git.kernel.org/stable/c/199acd8c110e3ae62833c24f632b0bb1c9f012a9 commit
- git.kernel.org/stable/c/33d7a470730dfe7c9bfc8da84575cf2cedd60d00 commit
- git.kernel.org/stable/c/278484ae93297b1bb1ce755f9d3b6d95a48c7d47 commit
- git.kernel.org/stable/c/06ac746d57e6d32b062e220415c607b7e2e0fa50 commit
- git.kernel.org/stable/c/a23461c47482fc232ffc9b819539d1f837adf2b1 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-47475 updated cvss 7.8
kernel: comedi: vmk80xx: fix transfer-buffer overflows
-
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.26% chance of exploitation in the next 30 days, higher than 17% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
- Technology feeds
References
-
git.kernel.org
/stable/c/5229159f1d052821007aff1a1beb7873eacf1a9f
patch
-
git.kernel.org
/stable/c/ec85bcff4ed09260243d8f39faba99e1041718ba
patch
-
git.kernel.org
/stable/c/40d2a7e278e2e7c0a5fd7e997e7eb63945bf93f7
patch
-
git.kernel.org
/stable/c/7a2021b896de1ad559d33b5c5cdd20b982242088
patch
-
git.kernel.org
/stable/c/199acd8c110e3ae62833c24f632b0bb1c9f012a9
patch
-
git.kernel.org
/stable/c/33d7a470730dfe7c9bfc8da84575cf2cedd60d00
patch
-
git.kernel.org
/stable/c/278484ae93297b1bb1ce755f9d3b6d95a48c7d47
patch
-
git.kernel.org
/stable/c/06ac746d57e6d32b062e220415c607b7e2e0fa50
patch
-
git.kernel.org
/stable/c/a23461c47482fc232ffc9b819539d1f837adf2b1
patch
Sources
- CVE List CVE-2021-47475
- NVD CVE-2021-47475
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.