CVE-2018-16425
A double free when handling responses from an HSM Card in sc_pkcs15emu_sc_hsm_init in libopensc...
CVE-2018-16425 is a medium vulnerability (CVSS 6.6) in Opensc Project Opensc, published September 4, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.66%, the 51st percentile. Fixed in opensc 0.19.0~rc1-1.
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.
Attack profile
How easy it is to exploit
- Attack vector
- Physical
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.6
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.
- Record
CVE-2018-16425- CVSS 3.0
- 6.6 Medium
CVSS:3.0/AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-415
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2018-16425- Updated
- 2026-11-02
EUVDEUVD-2018-8265 No score
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.
- Record
EUVD-2018-8265- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-634q-77fv-9cq7
6.6
A double free when handling responses from an HSM Card in sc_pkcs15emu_sc_hsm_init in libopensc...
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.
- Record
GHSA-634q-77fv-9cq7- CVSS 3.0
- 6.6 Medium
CVSS:3.0/AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-415
- Updated
- 2026-11-02
OSVBELL-CVE-2018-16425
6.6
CVE-2018-16425 does not affect BellSoft software
- Record
BELL-CVE-2018-16425- CVSS 3.0
- 6.6 Medium
CVSS:3.0/AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
6.6
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.
- Record
CVE-2018-16425- CVSS 3.0
- 6.6 Medium
CVSS:3.0/AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 5 moreShow less
OSVDEBIAN-CVE-2018-16425
6.6
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.
- Record
DEBIAN-CVE-2018-16425- CVSS 3.0
- 6.6 Medium
CVSS:3.0/AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-16425
6.6
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.
- Record
UBUNTU-CVE-2018-16425- CVSS 3.0
- 6.6 Medium
CVSS:3.0/AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2019-0019 No score
Updated opensc packages fix security vulnerabilities
Several buffer overflows when handling responses from a Muscle Card in muscle_list_files in libopensc/card-muscle.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 (CVE-2018-16391).
Several buffer overflows when handling responses from a TCOS Card in tcos_select_file in libopensc/card-tcos.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 (CVE-2018-16392).
Several buffer overflows when handling responses from a Gemsafe V1 Smartcard in gemsafe_get_cert_len in libopensc/pkcs15-gemsafeV1.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 (CVE-2018-16393).
A buffer overflow when handling string concatenation in util_acl_to_str in tools/util.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 (CVE-2018-16418).
Several buffer overflows when handling responses from a Cryptoflex card in read_public_key in tools/cryptoflex-tool.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 (CVE-2018-16419).
Several buffer overflows when handling responses from an ePass 2003 Card in decrypt_response in libopensc/card-epass2003.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 (CVE-2018-16420).
Several buffer overflows when handling responses from a CAC Card in cac_get_serial_nr_from_CUID in libopensc/card-cac.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 (CVE-2018-16421).
A single byte buffer overflow when handling responses from an esteid Card in sc_pkcs15emu_esteid_init in libopensc/pkcs15-esteid.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 (CVE-2018-16422).
A double free when handling responses from a smartcard in sc_file_set_sec_attr in libopensc/sc.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 (CVE-2018-16423).
A double free when handling responses in read_file in tools/egk-tool.c (aka the eGK card tool) 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 (CVE-2018-16424).
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 (CVE-2018-16425).
Endless recursion when handling responses from an IAS-ECC card in iasecc_select_file in libopensc/card-iasecc.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to hang or crash the opensc library using programs (CVE-2018-16426).
Various out of bounds reads when handling responses in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to potentially crash the opensc library using programs (CVE-2018-16427).
- Record
MGASA-2019-0019- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11123-1 No score
opensc-0.21.0-2.2 on GA media
These are all security issues fixed in the opensc-0.21.0-2.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11123-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:3629-1 No score
Security update for opensc
This update for opensc fixes the following security issues:
- CVE-2018-16391: Fixed a denial of service when handling responses from a Muscle Card (bsc#1106998)
- CVE-2018-16392: Fixed a denial of service when handling responses from a TCOS Card (bsc#1106999)
- CVE-2018-16393: Fixed buffer overflows when handling responses from Gemsafe V1 Smartcards (bsc#1108318)
- CVE-2018-16418: Fixed buffer overflow when handling string concatenation in util_acl_to_str (bsc#1107039)
- CVE-2018-16419: Fixed several buffer overflows when handling responses from a Cryptoflex card (bsc#1107107)
- CVE-2018-16420: Fixed buffer overflows when handling responses from an ePass 2003 Card (bsc#1107097)
- CVE-2018-16421: Fixed buffer overflows when handling responses from a CAC Card (bsc#1107049)
- CVE-2018-16422: Fixed single byte buffer overflow when handling responses from an esteid Card (bsc#1107038)
- CVE-2018-16423: Fixed double free when handling responses from a smartcard (bsc#1107037)
- CVE-2018-16424: Fixed double free when handling responses in read_file (bsc#1107036)
- CVE-2018-16425: Fixed double free when handling responses from an HSM Card (bsc#1107035)
- CVE-2018-16426: Fixed endless recursion when handling responses from an IAS-ECC card (bsc#1107034)
- CVE-2018-16427: Fixed out of bounds reads when handling responses in OpenSC (bsc#1107033)
- Record
SUSE-SU-2018:3629-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
openscDebian:12 |
before 0.19.0~rc1-1 | 0.19.0~rc1-1 |
openscDebian:13 |
before 0.19.0~rc1-1 | 0.19.0~rc1-1 |
openscDebian:14 |
before 0.19.0~rc1-1 | 0.19.0~rc1-1 |
openscDebian:8 |
before 0.16.0-3+deb8u1, plus listed versions 0.14.0-20.15.0-10.16.0-10.16.0-20.16.0-30.16.0~rc1-10.16.0~rc2-1 |
0.16.0-3+deb8u1 |
openscMageia:6 |
before 0.19.0-1.mga6 | 0.19.0-1.mga6 |
openscSUSE:Linux Enterprise Module for Basesystem 15 |
before 0.18.0-3.8.1 | 0.18.0-3.8.1 |
openscUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 0.15.0-1ubuntu10.15.0-1ubuntu1+esm10.15.0-1ubuntu1+esm20.15.0-1ubuntu1+esm3 |
None known |
openscUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 0.17.0-10.17.0-20.17.0-2build10.17.0-30.17.0-3ubuntu0.1~esm10.17.0-3ubuntu0.1~esm20.17.0-3ubuntu0.1~esm3 |
None known |
openscopenSUSE:Tumbleweed |
before 0.21.0-2.2 | 0.21.0-2.2 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
github.com/OpenSC/OpenSC/releases/tag/0.19.0-rc1
github.com/OpenSC/OpenSC/commit/360e95d45ac4123255a4c796db96337f332160ad
x41-dsec.de/lab/advisories/x41-2018-002-OpenSC
lists.debian.org/debian-lts-announce/2019/09/msg00009.html
nvd.nist.gov/vuln/detail/CVE-2018-16425
github.com/advisories/GHSA-634q-77fv-9cq7
Show 44 moreShow less
docs.bell-sw.com/security/cves/CVE-2018-16425
security-tracker.debian.org/tracker/CVE-2018-16425
advisories.mageia.org/MGASA-2019-0019.html
bugs.mageia.org/show_bug.cgi?id=23447
lists.fedoraproject.org/archives/list/[email protected]/thread/FELOINZJEHXTJ757WSU4HYL5HWENARJH
suse.com/support/update/announcement/2018/suse-su-20183629-1
bugzilla.suse.com/1104812
bugzilla.suse.com/1106998
bugzilla.suse.com/1106999
bugzilla.suse.com/1107033
bugzilla.suse.com/1107034
bugzilla.suse.com/1107035
bugzilla.suse.com/1107036
bugzilla.suse.com/1107037
bugzilla.suse.com/1107038
bugzilla.suse.com/1107039
bugzilla.suse.com/1107049
bugzilla.suse.com/1107097
bugzilla.suse.com/1107107
bugzilla.suse.com/1108318
suse.com/security/cve/CVE-2018-16391
suse.com/security/cve/CVE-2018-16392
suse.com/security/cve/CVE-2018-16393
suse.com/security/cve/CVE-2018-16418
suse.com/security/cve/CVE-2018-16419
suse.com/security/cve/CVE-2018-16420
suse.com/security/cve/CVE-2018-16421
suse.com/security/cve/CVE-2018-16422
suse.com/security/cve/CVE-2018-16423
suse.com/security/cve/CVE-2018-16424
suse.com/security/cve/CVE-2018-16425
suse.com/security/cve/CVE-2018-16426
suse.com/security/cve/CVE-2018-16427
ubuntu.com/security/CVE-2018-16425
cve.org/CVERecord?id=CVE-2018-16425
suse.com/security/cve/CVE-2008-2235
suse.com/security/cve/CVE-2019-15945
suse.com/security/cve/CVE-2019-15946
suse.com/security/cve/CVE-2019-19479
suse.com/security/cve/CVE-2019-19480
suse.com/security/cve/CVE-2019-6502
suse.com/security/cve/CVE-2020-26570
suse.com/security/cve/CVE-2020-26571
suse.com/security/cve/CVE-2020-26572