CVE-2019-20792
published 2020-04-29CVE-2019-20792: 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.
PriorityP424medium6.8CVSS 3.1
AVPACLPRNUINSUCHIHAH
EPSS
0.70%
49.4th percentile
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.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | opensc | < opensc 0.20.0-1 (bookworm) | opensc 0.20.0-1 (bookworm) |
| opensc_project | opensc | < 0.20.0 | 0.20.0 |
| opensc_project | opensc | >= 0 < 0.20.0-1 | 0.20.0-1 |
| opensc_project | opensc | >= 0 < 0.20.0-1 | 0.20.0-1 |
| opensc_project | opensc | >= 0 < 0.20.0-1 | 0.20.0-1 |
| opensc_project | opensc | >= 0 < 0.20.0-1 | 0.20.0-1 |
CVSS provenance
nvdv3.16.8MEDIUMCVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.04.6MEDIUMAV:L/AC:L/Au:N/C:P/I:P/A:P
osv6.8MEDIUM
vendor_debian6.8LOW
vendor_redhat6.8MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-m2w8-wqfw-qchx: OpenSC before 0
ghsa_unreviewed·2022-05-24
CVE-2019-20792 [HIGH] GHSA-m2w8-wqfw-qchx: OpenSC before 0
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.
OSV
CVE-2019-20792: OpenSC before 0
osv·2020-04-29·CVSS 6.8
CVE-2019-20792 [MEDIUM] CVE-2019-20792: OpenSC before 0
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.
Red Hat
opensc: Double free in coolkey_free_private_data in libopensc/card-coolkey.c
vendor_redhat·2020-01-04·CVSS 6.8
CVE-2019-20792 [MEDIUM] CWE-416 opensc: Double free in coolkey_free_private_data in libopensc/card-coolkey.c
opensc: Double free in coolkey_free_private_data in libopensc/card-coolkey.c
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.
A use-after-free vulnerability was discovered in OpenSC while disconnecting a smart card. This flaw allows a physical attacker to exploit this vulnerability by inserting and removing a malicious smart card, handled by the coolkey driver, that could potentially execute code on the target system, with privileges that depend on the particular configuration and system that makes use of the OpenSC library.
Mitigation: If the coolkey driver is not necessary for the configuration and system in use, it is possible to disable it by not listing it in the /etc/opensc.conf fil
Debian
CVE-2019-20792: opensc - OpenSC before 0.20.0 has a double free in coolkey_free_private_data because cool...
vendor_debian·2019·CVSS 6.8
CVE-2019-20792 [MEDIUM] CVE-2019-20792: opensc - OpenSC before 0.20.0 has a double free in coolkey_free_private_data because cool...
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.
Scope: local
bookworm: resolved (fixed in 0.20.0-1)
bullseye: resolved (fixed in 0.20.0-1)
forky: resolved (fixed in 0.20.0-1)
sid: resolved (fixed in 0.20.0-1)
trixie: resolved (fixed in 0.20.0-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-20792 opensc: Double free in coolkey_free_private_data in libopensc/card-coolkey.c
bugzilla·2020-05-20·CVSS 6.8
CVE-2019-20792 [MEDIUM] CVE-2019-20792 opensc: Double free in coolkey_free_private_data in libopensc/card-coolkey.c
CVE-2019-20792 opensc: Double free in coolkey_free_private_data in libopensc/card-coolkey.c
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.
Discussion:
Created opensc tracking bugs for this issue:
Affects: fedora-30 [bug 1837948]
---
Upstream commit:
https://github.com/OpenSC/OpenSC/commit/c246f6f69a749d4f68626b40795a4f69168008f4
---
Created opensc tracking bugs for this issue:
Affects: epel-all [bug 1838182]
---
Function coolkey_free_private_data() iterates over all elements in coolkey_private_data_t.objects_list, freeing the `data` field. However, it may happen that two items in the list have the same `data` value, thus causing the double free when the second element is freed.
Bugzilla
CVE-2019-20792 opensc: double free in coolkey_free_private_data in libopensc/card-coolkey.c [fedora-30]
bugzilla·2020-05-20·CVSS 6.8
CVE-2019-20792 [MEDIUM] CVE-2019-20792 opensc: double free in coolkey_free_private_data in libopensc/card-coolkey.c [fedora-30]
CVE-2019-20792 opensc: double free in coolkey_free_private_data in libopensc/card-coolkey.c [fedora-30]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-30.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Discussion:
Use the follow
Bugzilla
CVE-2019-20792 opensc: double free in coolkey_free_private_data in libopensc/card-coolkey.c [epel-all]
bugzilla·2020-05-20·CVSS 6.8
CVE-2019-20792 [MEDIUM] CVE-2019-20792 opensc: double free in coolkey_free_private_data in libopensc/card-coolkey.c [epel-all]
CVE-2019-20792 opensc: double free in coolkey_free_private_data in libopensc/card-coolkey.c [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects mult
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19208https://github.com/OpenSC/OpenSC/commit/c246f6f69a749d4f68626b40795a4f69168008f4https://github.com/OpenSC/OpenSC/compare/0.19.0...0.20.0https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19208https://github.com/OpenSC/OpenSC/commit/c246f6f69a749d4f68626b40795a4f69168008f4https://github.com/OpenSC/OpenSC/compare/0.19.0...0.20.0
2020-04-29
Published