CVE-2021-46906

HID: usbhid: fix info leak in hid_submit_ctrl

No CVSS score yet EPSS 0.25%

Published 26 Feb 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2021-46906

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-46906 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:

HID: usbhid: fix info leak in hid_submit_ctrl

In hid_submit_ctrl(), the way of calculating the report length doesn't take into account that report->size can be zero. When running the syzkaller reproducer, a report of size 0 causes hid_submit_ctrl) to calculate transfer_buffer_length as 16384. When this urb is passed to the usb core layer, KMSAN reports an info leak of 16384 bytes.

To fix this, first modify hid_report_len() to account for the zero report size case by using DIV_ROUND_UP for the division. Then, call it from hid_submit_ctrl().

Exploitation

EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.8% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 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 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before c5d3c142f2d57d40c55e65d5622d319125a45366
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 41b1e71a2c57366b08dcca1a28b0d45ca69429ce
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 8c064eece9a51856f3f275104520c7e3017fc5c0
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 0e280502be1b003c3483ae03fc60dea554fcfa82
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 7f5a4b24cdbd7372770a02f23e347d7d9a9ac8f1
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before b1e3596416d74ce95cc0b7b38472329a3818f8a9
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 21883bff0fd854e07429a773ff18f1e9658f50e8
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 6be388f4a35d2ce5ef7dbf635a8964a5da7f799f
Other versions: unaffected
Linux
affected 2.6.12
unaffected before 2.6.12
unaffected from 4.4.274 up to and including 4.4.*
unaffected from 4.9.274 up to and including 4.9.*
unaffected from 4.14.238 up to and including 4.14.*
unaffected from 4.19.196 up to and including 4.19.*
unaffected from 5.4.127 up to and including 5.4.*
unaffected from 5.10.45 up to and including 5.10.*
unaffected from 5.12.12 up to and including 5.12.*
unaffected 5.13 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-46906 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-46906

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

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