CVE-2021-47475

comedi: vmk80xx: fix transfer-buffer overflows

No CVSS score yet EPSS 0.26%

Published 22 May 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2021-47475

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-47475 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.

Check my servers

Description

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.

Exploitation

EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.7% 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.

ProductVersions
Linux
affected from 985cafccbf9b7f862aa1c5ee566801e18b5161fb, before 5229159f1d052821007aff1a1beb7873eacf1a9f
affected from 985cafccbf9b7f862aa1c5ee566801e18b5161fb, before ec85bcff4ed09260243d8f39faba99e1041718ba
affected from 985cafccbf9b7f862aa1c5ee566801e18b5161fb, before 40d2a7e278e2e7c0a5fd7e997e7eb63945bf93f7
affected from 985cafccbf9b7f862aa1c5ee566801e18b5161fb, before 7a2021b896de1ad559d33b5c5cdd20b982242088
affected from 985cafccbf9b7f862aa1c5ee566801e18b5161fb, before 199acd8c110e3ae62833c24f632b0bb1c9f012a9
affected from 985cafccbf9b7f862aa1c5ee566801e18b5161fb, before 33d7a470730dfe7c9bfc8da84575cf2cedd60d00
affected from 985cafccbf9b7f862aa1c5ee566801e18b5161fb, before 278484ae93297b1bb1ce755f9d3b6d95a48c7d47
affected from 985cafccbf9b7f862aa1c5ee566801e18b5161fb, before 06ac746d57e6d32b062e220415c607b7e2e0fa50
affected from 985cafccbf9b7f862aa1c5ee566801e18b5161fb, before a23461c47482fc232ffc9b819539d1f837adf2b1
Other versions: unaffected
Linux
affected 2.6.31
unaffected before 2.6.31
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-47475 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47475

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-47475
trivy image --scanners vuln IMAGE | grep CVE-2021-47475

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

Source: the record CVE-2021-47475 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.