CVE-2021-46906
MediumIn 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().
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness type
CWE-668CVE-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.
References
8 total-
Patch
-
Patch
-
Patch
-
Patch
-
Patch
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.