OpenSC up to 0.18.x HSM Card pkcs15-sc-hsm.c sc_pkcs15emu_sc_hsm_init double free

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

Summaryinfo

A vulnerability classified as problematic has been found in OpenSC up to 0.18.x. This affects the function sc_pkcs15emu_sc_hsm_init of the file libopensc/pkcs15-sc-hsm.c of the component HSM Card Handler. Performing a manipulation results in double free. This vulnerability is cataloged as CVE-2018-16425. The attack may be carried out on the physical device. There is no exploit available. It is recommended to upgrade the affected component.

Detailsinfo

A vulnerability was found in OpenSC up to 0.18.x. It has been classified as problematic. This affects the function sc_pkcs15emu_sc_hsm_init of the file libopensc/pkcs15-sc-hsm.c of the component HSM Card Handler. The manipulation with an unknown input leads to a double free vulnerability. CWE is classifying the issue as CWE-415. The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations. This is going to have an impact on availability. The summary by CVE is:

A double free when handling responses from an HSM Card in sc_pkcs15emu_sc_hsm_init in libopensc/pkcs15-sc-hsm.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

The bug was discovered 08/14/2018. The weakness was shared 09/04/2018 (Website). The advisory is shared at github.com. This vulnerability is uniquely identified as CVE-2018-16425 since 09/03/2018. The exploitability is told to be easy. An attack has to be approached locally. No form of authentication is needed for exploitation. Technical details are known, but no exploit is available.

The vulnerability was handled as a non-public zero-day exploit for at least 20 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 118881 (openSUSE Security Update : opensc (openSUSE-2018-1385)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family SuSE Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 277562 (Fedora Security Update for opensc (FEDORA-2018-d0dff2abaa)).

Upgrading to version 0.19.0-rc1 eliminates this vulnerability. A possible mitigation has been published 3 months after the disclosure of the vulnerability.

The vulnerability is also documented in the vulnerability database at Tenable (118881). The entries VDB-123545 and VDB-123548 are related to this item. If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Productinfo

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 4.3
VulDB Meta Temp Score: 4.3

VulDB Base Score: 2.1
VulDB Temp Score: 2.0
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 6.6
NVD Vector: 🔍

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Double free
CWE: CWE-415 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: Yes
Local: Yes
Remote: No

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 118881
Nessus Name: openSUSE Security Update : opensc (openSUSE-2018-1385)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

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

Upgrade: OpenSC 0.19.0-rc1
Patch: github.com

Timelineinfo

08/14/2018 🔍
09/03/2018 +19 days 🔍
09/03/2018 +0 days 🔍
09/04/2018 +1 days 🔍
09/04/2018 +0 days 🔍
11/09/2018 +66 days 🔍
11/10/2018 +1 days 🔍
05/06/2023 +1638 days 🔍

Sourcesinfo

Product: github.com

Advisory: 360e95d45ac4123255a4c796db96337f332160ad
Status: Confirmed

CVE: CVE-2018-16425 (🔍)
GCVE (CVE): GCVE-0-2018-16425
GCVE (VulDB): GCVE-100-123549
See also: 🔍

Entryinfo

Created: 09/04/2018 15:45
Updated: 05/06/2023 19:18
Changes: 09/04/2018 15:45 (74), 03/20/2020 11:59 (2), 05/06/2023 19:11 (5), 05/06/2023 19:18 (1)
Complete: 🔍
Cache ID: 216::103

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!