CVE-2021-46906

Medium

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

Package Linux Kernel
Published 2024-02-26
Last modified 2025-12-10
CVSS version 3.1
Patch available
Yes

CVSS 3.1 score

5.5

out of 10
Medium
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Weakness type

CWE-668

CVE-2021-46906 is classified as CWE-668

See CWE-668 on MITRE CWE for full details on this weakness type.

Affected versions

Linux kernel versions 2.6.12 and later are affected. Fixed in 4.4.274, 4.9.274, 4.14.238, 4.19.196, 5.4.127, 5.10.45, 5.12.12, 5.13 and their respective stable series.

Affected from
≥ 2.6.12
Fixed in
✓ 4.4.274 4.4.x ✓ 4.9.274 4.9.x ✓ 4.14.238 4.14.x ✓ 4.19.196 4.19.x ✓ 5.4.127 5.4.x ✓ 5.10.45 5.10.x ✓ 5.12.12 5.12.x ✓ 5.13

Frequently asked questions

  • What is CVE-2021-46906?

    CVE-2021-46906 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . It affects Linux kernel versions from 2.6.12 onward and has been patched in 4.4.274, 4.9.274, 4.14.238 and others. CVE-2021-46906 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • What is the CVSS score for CVE-2021-46906?

    CVE-2021-46906 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N .

  • Is there a patch available for CVE-2021-46906?

    Yes. CVE-2021-46906 has been patched. Fixed versions include 4.4.274, 4.9.274, 4.14.238 and others. If you are running Linux kernel 2.6.12 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2021-46906 actively exploited?

    No. CVE-2021-46906 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.