Linux Kernel up to 4.6.3 IOCTL Call hiddev.c hiddev_ioctl_usage memory corruption
CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
---|---|---|
7.6 | $0-$5k | 0.00 |
A vulnerability was found in Linux Kernel up to 4.6.3 (Operating System). It has been rated as critical. This issue affects the function hiddev_ioctl_usage
of the file drivers/hid/usbhid/hiddev.c of the component IOCTL Call Handler. The manipulation with an unknown input leads to a memory corruption vulnerability. Using CWE to declare the problem leads to CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. Impacted is confidentiality, integrity, and availability. The summary by CVE is:
Multiple heap-based buffer overflows in the hiddev_ioctl_usage function in drivers/hid/usbhid/hiddev.c in the Linux kernel through 4.6.3 allow local users to cause a denial of service or possibly have unspecified other impact via a crafted (1) HIDIOCGUSAGES or (2) HIDIOCSUSAGES ioctl call.
The weakness was shared 06/27/2016 (oss-sec). It is possible to read the advisory at openwall.com. The identification of this vulnerability is CVE-2016-5829 since 06/23/2016. The exploitation is known to be easy. Attacking locally is a requirement. A simple authentication is needed for exploitation. Technical details of the vulnerability are known, but there is no available exploit. The following code is the reason for this vulnerability:
else if ((cmd == HIDIOCGUSAGES || cmd == HIDIOCSUSAGES) && (uref_multi->num_values > HID_MAX_MULTI_USAGES || uref->usage_index + uref_multi->num_values > field->report_count)) goto inval;
The vulnerability scanner Nessus provides a plugin with the ID 91927 (Debian DSA-3616-1 : linux - security update), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 157314 (Oracle Enterprise Linux Security Update for kernel (ELSA-2016-2574)-Deprecated).
Applying a patch is able to eliminate this problem. The bugfix is ready for download at github.com. A possible mitigation has been published 1 weeks after the disclosure of the vulnerability. The vulnerability will be addressed with the following lines of code:
if ((cmd == HIDIOCGUSAGES || cmd == HIDIOCSUSAGES) && (uref_multi->num_values > HID_MAX_MULTI_USAGES || uref->usage_index + uref_multi->num_values > field->report_count)) goto inval;
The vulnerability is also documented in the vulnerability database at Tenable (91927).
Product
Type
Vendor
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB CVSS-B Score: 🔍VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.8VulDB Meta Temp Score: 7.6
VulDB Base Score: 7.8
VulDB Temp Score: 7.5
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 7.8
NVD Vector: 🔍
CVSSv2
AV | AC | Au | C | I | A |
---|---|---|---|---|---|
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
---|---|---|---|---|---|
unlock | unlock | unlock | unlock | unlock | unlock |
unlock | unlock | unlock | unlock | unlock | unlock |
unlock | unlock | unlock | unlock | unlock | unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Memory corruptionCWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍
Local: Yes
Remote: No
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
0-Day | unlock | unlock | unlock | unlock |
---|---|---|---|---|
Today | unlock | unlock | unlock | unlock |
Nessus ID: 91927
Nessus Name: Debian DSA-3616-1 : linux - security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
OpenVAS ID: 863279
OpenVAS Name: RedHat Update for kernel RHSA-2016:2574-02
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Patch: github.com
Timeline
06/23/2016 🔍06/27/2016 🔍
06/27/2016 🔍
06/29/2016 🔍
07/04/2016 🔍
07/05/2016 🔍
08/25/2022 🔍
Sources
Vendor: kernel.orgAdvisory: USN-3070-1
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2016-5829 (🔍)
OVAL: 🔍
SecurityFocus: 91450
Entry
Created: 06/29/2016 11:22Updated: 08/25/2022 13:21
Changes: 06/29/2016 11:22 (73), 02/12/2019 11:00 (10), 08/25/2022 13:16 (3), 08/25/2022 13:21 (1)
Complete: 🔍
Cache ID: 3:3A3:103
No comments yet. Languages: en.
Please log in to comment.