CVE-2021-46906
Vulnerability Summary
Timeline
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().
CVSS Metrics
- v3.1•MEDIUM•Score: 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS Trends
Current EPSS score: 0.24%• Percentile: 16%
Techniques & Countermeasures
- CWE-668•Exposure of Resource to Wrong Sphere
The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.
Affected Systems
- debian•linux
< 5.10.46-1 | < 5.14.6-1 | < 5.14.6-1 | < 5.14.6-1
- ubuntu•linux
all | < 4.4.0-258.292 | < 4.15.0-156.163 | < 5.4.0-81.91
- ubuntu•linux-allwinner-5.19
all
- ubuntu•linux-aws
< 4.4.0-1135.141 | < 4.4.0-1173.188 | < 4.15.0-1111.118 | < 5.4.0-1055.58
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.11
all
- ubuntu•linux-aws-5.13
all
- ubuntu•linux-aws-5.19
all
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1055.58~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-6.2
all
- ubuntu•linux-aws-fips
< 4.15.0-2053.55 | all | < 5.4.0-1069.73+fips2
- ubuntu•linux-aws-hwe
< 4.15.0-1111.118~16.04.1
- ubuntu•linux-azure
< 4.15.0-1123.136~14.04.1 | < 4.15.0-1123.136~16.04.1 | all | < 5.4.0-1056.58
- ubuntu•linux-azure-4.15
< 4.15.0-1123.136
- ubuntu•linux-azure-5.11
all
- ubuntu•linux-azure-5.13
all
- ubuntu•linux-azure-5.19
all
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1056.58~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-6.2
all
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fde
all
- ubuntu•linux-azure-fde-5.15
< 5.15.0-1114.123~20.04.1
- ubuntu•linux-azure-fde-5.19
all
- ubuntu•linux-azure-fde-6.2
all
- ubuntu•linux-azure-fips
< 4.15.0-2035.39 | all | < 5.4.0-1073.76+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1019.22
- ubuntu•linux-fips
< 4.4.0-1104.111 | all | < 4.15.0-1069.78 | < 5.4.0-1032.37
- ubuntu•linux-gcp
< 4.15.0-1108.122~16.04.1 | all | < 5.4.0-1051.55
- ubuntu•linux-gcp-4.15
< 4.15.0-1108.122
- ubuntu•linux-gcp-5.11
all
- ubuntu•linux-gcp-5.13
all
- ubuntu•linux-gcp-5.19
all
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1051.55~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-6.2
all
- ubuntu•linux-gcp-fips
< 4.15.0-2018.20 | all | < 5.4.0-1067.71~20.04.1
- ubuntu•linux-gke
all
- ubuntu•linux-gke-4.15
all
- ubuntu•linux-gke-5.15
all
- ubuntu•linux-gke-5.4
all
- ubuntu•linux-gkeop
< 5.4.0-1022.23
- ubuntu•linux-gkeop-5.4
all
- ubuntu•linux-hwe
< 4.15.0-156.163~16.04.1 | all
- ubuntu•linux-hwe-5.11
all
- ubuntu•linux-hwe-5.13
all
Showing first 50 affected entries in server-rendered view.
References (13)
- https://git.kernel.org/stable/c/c5d3c142f2d57d40c55e65d5622d319125a45366
- https://git.kernel.org/stable/c/41b1e71a2c57366b08dcca1a28b0d45ca69429ce
- https://git.kernel.org/stable/c/8c064eece9a51856f3f275104520c7e3017fc5c0
- https://git.kernel.org/stable/c/0e280502be1b003c3483ae03fc60dea554fcfa82
- https://git.kernel.org/stable/c/7f5a4b24cdbd7372770a02f23e347d7d9a9ac8f1
- https://git.kernel.org/stable/c/b1e3596416d74ce95cc0b7b38472329a3818f8a9
- https://git.kernel.org/stable/c/21883bff0fd854e07429a773ff18f1e9658f50e8
- https://git.kernel.org/stable/c/6be388f4a35d2ce5ef7dbf635a8964a5da7f799f
- https://ubuntu.com/security/CVE-2021-46906
- https://git.kernel.org/linus/6be388f4a35d2ce5ef7dbf635a8964a5da7f799f
- https://www.cve.org/CVERecord?id=CVE-2021-46906
- https://ubuntu.com/security/notices/USN-6976-1
- https://security-tracker.debian.org/tracker/CVE-2021-46906