Linux Kernel up to 4.6.3 IOCTL Call hiddev.c hiddev_ioctl_usage memory corruption

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
7.6$0-$5k0.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).

Productinfo

Type

Vendor

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB CVSS-B Score: 🔍
VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.8
VulDB 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: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Memory corruption
CWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Local: Yes
Remote: No

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-Dayunlockunlockunlockunlock
Todayunlockunlockunlockunlock

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 Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Patch: github.com

Timelineinfo

06/23/2016 🔍
06/27/2016 +4 days 🔍
06/27/2016 +0 days 🔍
06/29/2016 +2 days 🔍
07/04/2016 +5 days 🔍
07/05/2016 +1 days 🔍
08/25/2022 +2242 days 🔍

Sourcesinfo

Vendor: kernel.org

Advisory: USN-3070-1
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2016-5829 (🔍)
OVAL: 🔍

SecurityFocus: 91450

Entryinfo

Created: 06/29/2016 11:22
Updated: 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

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!