Double Free in OpenSC - CVE-2018-16425

 

Double Free in OpenSC - CVE-2018-16425

Published: September 4, 2018 / Updated: July 28, 2020


Vulnerability identifier: #VU32032
CSH Severity: Medium
CVSS v4: 7 [CVSS:4.0/AV:P/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-16425
CWE-ID: CWE-415
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local authenticated user to execute arbitrary code.

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.


Affected software

OpenSC
opensc (Alpine package)
opensc
Opensuse
Fedora

How to mitigate CVE-2018-16425

Install update from vendor's website.

OpenSC - update to 0.19.0 rc1
opensc (Alpine package) - update to 0.19.0-r0
opensc - addressed in versions 0.19.0-1.fc28, 0.19.0-1.fc29

External References

Related Security Bulletins