CVE-2019-20792
opensc: Double free in coolkey_free_private_data in libopensc/card-coolkey.c
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · January 4, 2020
Updated · November 22, 2025
Description
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.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
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 file. For example:
app default {
card_drivers = cac, cac1, PIV-II;
}
CVSS / CWE
CVSS 3.1 · 6.4CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE-416 · Use After Free