CVE-2021-46906

HID: usbhid: fix info leak in hid_submit_ctrl

MEDIUM
5.5
CVSS Score
Published: February 26, 2024 at 05:20 PM UTC
Updated: June 17, 2026 at 04:15 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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().

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.4.2742.6.12 ≤ v < 4.14.2382.6.12 ≤ v < 4.19.1962.6.12 ≤ v < 4.4.2742.6.12 ≤ v < 4.9.2742.6.12 ≤ v < 5.10.452.6.12 ≤ v < 5.12.122.6.12 ≤ v < 5.132.6.12 ≤ v < 5.4.1274.10.0 ≤ v < 4.14.2384.15.0 ≤ v < 4.19.1964.20.0 ≤ v < 5.4.1274.5.0 ≤ v < 4.9.2745.11.0 ≤ v < 5.12.125.5.0 ≤ v < 5.10.451da177e4c3f41524e886b7f1b8a0c1fc7321cac22.6.12
Vendor states this is fixed in 0e280502be1b003c3483ae03fc60dea554fcfa82 (fixed)
Vendor states this is fixed in 21883bff0fd854e07429a773ff18f1e9658f50e8 (fixed)
Vendor states this is fixed in 41b1e71a2c57366b08dcca1a28b0d45ca69429ce (fixed)
Vendor states this is fixed in 6be388f4a35d2ce5ef7dbf635a8964a5da7f799f (fixed)
Vendor states this is fixed in 7f5a4b24cdbd7372770a02f23e347d7d9a9ac8f1 (fixed)
Vendor states this is fixed in 8c064eece9a51856f3f275104520c7e3017fc5c0 (fixed)
Vendor states this is fixed in b1e3596416d74ce95cc0b7b38472329a3818f8a9 (fixed)
Vendor states this is fixed in c5d3c142f2d57d40c55e65d5622d319125a45366 (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 4.14.238 (unaffected)
Vendor states this is fixed in 4.19.196 (unaffected)
Vendor states this is fixed in 4.4.274 (unaffected)
Vendor states this is fixed in 4.9.274 (unaffected)
Vendor states this is fixed in 5.10.45 (unaffected)
Vendor states this is fixed in 5.12.12 (unaffected)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.4.127 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0e280502be1b003c3483ae03fc60dea554fcfa82
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/21883bff0fd854e07429a773ff18f1e9658f50e8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/41b1e71a2c57366b08dcca1a28b0d45ca69429ce
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6be388f4a35d2ce5ef7dbf635a8964a5da7f799f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7f5a4b24cdbd7372770a02f23e347d7d9a9ac8f1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8c064eece9a51856f3f275104520c7e3017fc5c0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b1e3596416d74ce95cc0b7b38472329a3818f8a9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c5d3c142f2d57d40c55e65d5622d319125a45366

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-668

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card