CVE-2019-20792
OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in...
CVE-2019-20792 is a medium vulnerability (CVSS 6.8) in Opensc Project Opensc, published April 29, 2020. 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.20.0-1.
OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.
Attack profile
How easy it is to exploit
- Attack vector
- Physical
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.8
OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.
- Record
CVE-2019-20792- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:P/AC:L/PR:N/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
OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.
- Record
CVE-2019-20792- Updated
- 2026-11-02
EUVDEUVD-2019-11329 No score
OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.
- Record
EUVD-2019-11329- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-m2w8-wqfw-qchx No score
OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in...
OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.
- Record
GHSA-m2w8-wqfw-qchx- Updated
- 2026-11-02
OSV
6.8
OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.
- Record
CVE-2019-20792- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2019-20792
6.8
OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.
- Record
DEBIAN-CVE-2019-20792- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 6 moreShow less
OSVRHSA-2020:4483
6.4
Red Hat Security Advisory: opensc security, bug fix, and enhancement update
- Record
RHSA-2020:4483- CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2019-20792
6.8
OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.
- Record
UBUNTU-CVE-2019-20792- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2021:0565-1 No score
Security update for opensc
This update for opensc fixes the following issues:
- CVE-2019-15945: Fixed an out-of-bounds access of an ASN.1 Bitstring in decode_bit_string (bsc#1149746).
- CVE-2019-15946: Fixed an out-of-bounds access of an ASN.1 Octet string in asn1_decode_entry (bsc#1149747)
- CVE-2019-19479: Fixed an incorrect read operation during parsing of a SETCOS file attribute (bsc#1158256)
- CVE-2019-19480: Fixed an improper free operation in sc_pkcs15_decode_prkdf_entry (bsc#1158307).
- CVE-2019-20792: Fixed a double free in coolkey_free_private_data (bsc#1170809).
- CVE-2020-26570: Fixed a buffer overflow in sc_oberthur_read_file (bsc#1177364).
- CVE-2020-26571: Fixed a stack-based buffer overflow in gemsafe GPK smart card software driver (bsc#1177380)
- CVE-2020-26572: Fixed a stack-based buffer overflow in tcos_decipher (bsc#1177378).
This update was imported from the SUSE:SLE-15-SP1:Update update project.
- Record
openSUSE-SU-2021:0565-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11643-1 No score
opensc-0.22.0-3.1 on GA media
These are all security issues fixed in the opensc-0.22.0-3.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11643-1- Updated
- 2026-11-02
OSVSUSE-SU-2021:1168-1 No score
Security update for opensc
This update for opensc fixes the following issues:
- CVE-2019-15945: Fixed an out-of-bounds access of an ASN.1 Bitstring in decode_bit_string (bsc#1149746).
- CVE-2019-15946: Fixed an out-of-bounds access of an ASN.1 Octet string in asn1_decode_entry (bsc#1149747)
- CVE-2019-19479: Fixed an incorrect read operation during parsing of a SETCOS file attribute (bsc#1158256)
- CVE-2019-19480: Fixed an improper free operation in sc_pkcs15_decode_prkdf_entry (bsc#1158307).
- CVE-2019-20792: Fixed a double free in coolkey_free_private_data (bsc#1170809).
- CVE-2020-26570: Fixed a buffer overflow in sc_oberthur_read_file (bsc#1177364).
- CVE-2020-26571: Fixed a stack-based buffer overflow in gemsafe GPK smart card software driver (bsc#1177380)
- CVE-2020-26572: Fixed a stack-based buffer overflow in tcos_decipher (bsc#1177378).
- Record
SUSE-SU-2021:1168-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:1041-1 No score
Security update for opensc
This update for opensc fixes the following issues:
Security issues fixed:
- CVE-2021-42780: Fixed use after return in insert_pin() (bsc#1192005).
- CVE-2021-42779: Fixed use after free in sc_file_valid() (bsc#1191992).
- CVE-2021-42781: Fixed multiple heap buffer overflows in pkcs15-oberthur.c (bsc#1192000).
- CVE-2021-42782: Stack buffer overflow issues in various places (bsc#1191957).
- CVE-2019-6502: Fixed a memory leak in sc_context_create() (bsc#1122756).
- CVE-2020-26570: Fixed a heap based buffer overflow in sc_oberthur_read_file (bsc#1177364).
- CVE-2020-26572: Prevent out of bounds write (bsc#1177378)
- CVE-2020-26571: gemsafe GPK smart card software driver stack-based buffer overflow (bsc#1177380)
- CVE-2019-15946: out-of-bounds access of an ASN.1 Octet string in asn1_decode_entry (bsc#1149747)
- CVE-2019-19479: incorrect read operation during parsing of a SETCOS file attribute (bsc#1158256)
- CVE-2019-15945: Fixed an out-of-bounds access of an ASN.1 Bitstring in decode_bit_string (bsc#1149746).
- CVE-2019-19481: Fixed an improper handling of buffer limits for CAC certificates (bsc#1158305).
- CVE-2019-20792: Fixed a double free in coolkey_free_private_data (bsc#1170809).
Non-security issues fixed:
- Fixes segmentation fault in 'pkcs11-tool.c'. (bsc#1114649)
- Record
SUSE-SU-2022:1041-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
openscDebian:12 |
before 0.20.0-1 | 0.20.0-1 |
openscDebian:13 |
before 0.20.0-1 | 0.20.0-1 |
openscDebian:14 |
before 0.20.0-1 | 0.20.0-1 |
openscRed Hat:enterprise_linux:8::baseos |
before 0:0.20.0-2.el8 | 0:0.20.0-2.el8 |
opensc-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:0.20.0-2.el8 | 0:0.20.0-2.el8 |
opensc-debugsourceRed Hat:enterprise_linux:8::baseos |
before 0:0.20.0-2.el8 | 0:0.20.0-2.el8 |
openscSUSE:Linux Enterprise Module for Basesystem 15 SP2 |
before 0.19.0-3.7.1 | 0.19.0-3.7.1 |
openscSUSE:Linux Enterprise High Performance Computing 15-ESPOS |
before 0.18.0-150000.3.23.1 | 0.18.0-150000.3.23.1 |
openscSUSE:Linux Enterprise High Performance Computing 15-LTSS |
before 0.18.0-150000.3.23.1 | 0.18.0-150000.3.23.1 |
openscSUSE:Linux Enterprise Server 15-LTSS |
before 0.18.0-150000.3.23.1 | 0.18.0-150000.3.23.1 |
Show 4 moreShow less
| Package | Affected | Fixed |
|---|---|---|
openscSUSE:Linux Enterprise Server for SAP Applications 15 |
before 0.18.0-150000.3.23.1 | 0.18.0-150000.3.23.1 |
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:Leap 15.2 |
before 0.19.0-lp152.3.3.1 | 0.19.0-lp152.3.3.1 |
openscopenSUSE:Tumbleweed |
before 0.22.0-3.1 | 0.22.0-3.1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
bugs.chromium.org/p/oss-fuzz/issues/detail?id=19208
github.com/OpenSC/OpenSC/commit/c246f6f69a749d4f68626b40795a4f69168008f4
github.com/OpenSC/OpenSC/compare/0.19.0...0.20.0
nvd.nist.gov/vuln/detail/CVE-2019-20792
github.com/advisories/GHSA-m2w8-wqfw-qchx
security-tracker.debian.org/tracker/CVE-2019-20792
Show 58 moreShow less
access.redhat.com/errata/RHSA-2020:4483
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.3_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=1765222
bugzilla.redhat.com/show_bug.cgi?id=1765229
bugzilla.redhat.com/show_bug.cgi?id=1782519
bugzilla.redhat.com/show_bug.cgi?id=1782955
bugzilla.redhat.com/show_bug.cgi?id=1810660
bugzilla.redhat.com/show_bug.cgi?id=1830856
bugzilla.redhat.com/show_bug.cgi?id=1837946
security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_4483.json
access.redhat.com/security/cve/CVE-2019-15945
cve.org/CVERecord?id=CVE-2019-15945
nvd.nist.gov/vuln/detail/CVE-2019-15945
access.redhat.com/security/cve/CVE-2019-15946
cve.org/CVERecord?id=CVE-2019-15946
nvd.nist.gov/vuln/detail/CVE-2019-15946
access.redhat.com/security/cve/CVE-2019-19479
cve.org/CVERecord?id=CVE-2019-19479
nvd.nist.gov/vuln/detail/CVE-2019-19479
access.redhat.com/security/cve/CVE-2019-19481
cve.org/CVERecord?id=CVE-2019-19481
nvd.nist.gov/vuln/detail/CVE-2019-19481
access.redhat.com/security/cve/CVE-2019-20792
cve.org/CVERecord?id=CVE-2019-20792
suse.com/support/update/announcement/2021/suse-su-20211168-1
bugzilla.suse.com/1149746
bugzilla.suse.com/1149747
bugzilla.suse.com/1158256
bugzilla.suse.com/1158307
bugzilla.suse.com/1170809
bugzilla.suse.com/1177364
bugzilla.suse.com/1177378
bugzilla.suse.com/1177380
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-20792
suse.com/security/cve/CVE-2020-26570
suse.com/security/cve/CVE-2020-26571
suse.com/security/cve/CVE-2020-26572
suse.com/support/update/announcement/2022/suse-su-20221041-1
bugzilla.suse.com/1114649
bugzilla.suse.com/1122756
bugzilla.suse.com/1158305
bugzilla.suse.com/1191957
bugzilla.suse.com/1191992
bugzilla.suse.com/1192000
bugzilla.suse.com/1192005
suse.com/security/cve/CVE-2019-19481
suse.com/security/cve/CVE-2019-6502
suse.com/security/cve/CVE-2021-42779
suse.com/security/cve/CVE-2021-42780
suse.com/security/cve/CVE-2021-42781
suse.com/security/cve/CVE-2021-42782
ubuntu.com/security/CVE-2019-20792
lists.opensuse.org/archives/list/[email protected]/thread/JELZKRVEJGYE74DM3GTNHNTVZBQHK5DJ