QEMU dev-smartcard-reader.c emulated_apdu_from_guest input validation

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.
4.5$0-$5k0.00

Summaryinfo

A vulnerability marked as problematic has been reported in QEMU. This impacts the function emulated_apdu_from_guest of the file usb/dev-smartcard-reader.c. Performing a manipulation results in input validation. This vulnerability is identified as CVE-2017-5898. The attack is only possible with local access. There is not any exploit available. It is recommended to apply a patch to fix this issue.

Detailsinfo

A vulnerability was found in QEMU (Virtualization Software) (the affected version is unknown). It has been classified as problematic. This affects the function emulated_apdu_from_guest of the file usb/dev-smartcard-reader.c. The manipulation with an unknown input leads to a input validation vulnerability. CWE is classifying the issue as CWE-20. The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. This is going to have an impact on availability. The summary by CVE is:

Integer overflow in the emulated_apdu_from_guest function in usb/dev-smartcard-reader.c in Quick Emulator (Qemu), when built with the CCID Card device emulator support, allows local users to cause a denial of service (application crash) via a large Application Protocol Data Units (APDU) unit.

The bug was discovered 02/07/2017. The weakness was released 03/15/2017 by Li Qiang with 360.cn Inc. (oss-sec). It is possible to read the advisory at openwall.com. This vulnerability is uniquely identified as CVE-2017-5898 since 02/07/2017. The exploitability is told to be easy. Attacking locally is a requirement. No form of authentication is needed for exploitation. Technical details of the vulnerability are known, but there is no available exploit.

The vulnerability was handled as a non-public zero-day exploit for at least 14 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 97271 (GLSA-201702-28 : QEMU: Multiple vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Gentoo Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 169803 (SUSE Enterprise Linux Security Update for xen (SUSE-SU-2017:0647-1)).

Applying a patch is able to eliminate this problem. The bugfix is ready for download at git.qemu-project.org. A possible mitigation has been published even before and not after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Tenable (97271) and SecurityFocus (BID 96112†). Entries connected to this vulnerability are available at VDB-98123, VDB-98146, VDB-98147 and VDB-98148. Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Type

Name

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 4.7
VulDB Meta Temp Score: 4.6

VulDB Base Score: 4.0
VulDB Temp Score: 3.8
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 5.5
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

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

NVD Base Score: 🔍

Exploitinginfo

Class: Input validation
CWE: CWE-20
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: No

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 97271
Nessus Name: GLSA-201702-28 : QEMU: Multiple vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 867773
OpenVAS Name: Fedora Update for qemu FEDORA-2017-62ac1230f7
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Patch
Status: 🔍

0-Day Time: 🔍

Patch: git.qemu-project.org

Timelineinfo

02/03/2017 🔍
02/07/2017 +4 days 🔍
02/07/2017 +0 days 🔍
02/21/2017 +14 days 🔍
02/21/2017 +0 days 🔍
03/15/2017 +22 days 🔍
03/15/2017 +0 days 🔍
03/16/2017 +1 days 🔍
09/08/2020 +1272 days 🔍

Sourcesinfo

Product: qemu.org

Advisory: openwall.com
Researcher: Li Qiang
Organization: 360.cn Inc.
Status: Not defined
Confirmation: 🔍

CVE: CVE-2017-5898 (🔍)
GCVE (CVE): GCVE-0-2017-5898
GCVE (VulDB): GCVE-100-98151
SecurityFocus: 96112 - QEMU 'hw/usb/dev-smartcard-reader.c' Integer Overflow Vulnerability
OSVDB: - CVE-2017-5898 - QEMU - Integer Overflow Issue

See also: 🔍

Entryinfo

Created: 03/16/2017 11:15
Updated: 09/08/2020 16:11
Changes: 03/16/2017 11:15 (79), 09/08/2020 16:11 (3)
Complete: 🔍
Cache ID: 216:C6C:103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!