CVE-2021-42778
published 2022-04-18CVE-2021-42778: A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.
PriorityP426medium5.3CVSS 3.1
AVNACLPRNUINSUCNINAL
EPSS
2.09%
79.6th percentile
A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.
Affected
11 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | opensc | < opensc 0.22.0-1 (bookworm) | opensc 0.22.0-1 (bookworm) |
| fedoraproject | fedora | — | — |
| msrc | cbl2_opensc_0.22.0-1_on_cbl_mariner_2.0 | — | — |
| opensc_project | opensc | < 0.22.0 | 0.22.0 |
| opensc_project | opensc | — | — |
| opensc_project | opensc | >= 0 < 0.21.0-1+deb11u1 | 0.21.0-1+deb11u1 |
| opensc_project | opensc | >= 0 < 0.22.0-1 | 0.22.0-1 |
| opensc_project | opensc | >= 0 < 0.22.0-1 | 0.22.0-1 |
| opensc_project | opensc | >= 0 < 0.22.0-1 | 0.22.0-1 |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux | — | — |
CVSS provenance
nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv5.3MEDIUM
vendor_debian5.3MEDIUM
vendor_msrc5.3MEDIUM
vendor_redhat5.3MEDIUM
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-rh37-88v6-qm47: A heap double free issue was found in Opensc before version 0
ghsa_unreviewed·2022-04-19
CVE-2021-42778 [MEDIUM] CWE-415 GHSA-rh37-88v6-qm47: A heap double free issue was found in Opensc before version 0
A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.
OSV
CVE-2021-42778: A heap double free issue was found in Opensc before version 0
osv·2022-04-18·CVSS 5.3
CVE-2021-42778 [MEDIUM] CVE-2021-42778: A heap double free issue was found in Opensc before version 0
A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.
Microsoft
A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.
vendor_msrc·2022-04-12·CVSS 5.3
CVE-2021-42778 [MEDIUM] CWE-415 A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.
A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
redhat: redhat
Customer Action Required: Yes
Remediation: CBL-
Red Hat
opensc: Heap double free in sc_pkcs15_free_tokeninfo
vendor_redhat·2021-01-04·CVSS 5.3
CVE-2021-42778 [MEDIUM] CWE-415 opensc: Heap double free in sc_pkcs15_free_tokeninfo
opensc: Heap double free in sc_pkcs15_free_tokeninfo
A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.
Package: opensc (Red Hat Enterprise Linux 7) - Out of support scope
Package: opensc (Red Hat Enterprise Linux 8) - Fix deferred
Package: opensc (Red Hat Enterprise Linux 9) - Not affected
Debian
CVE-2021-42778: opensc - A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_...
vendor_debian·2021·CVSS 5.3
CVE-2021-42778 [MEDIUM] CVE-2021-42778: opensc - A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_...
A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.
Scope: local
bookworm: resolved (fixed in 0.22.0-1)
bullseye: resolved (fixed in 0.21.0-1+deb11u1)
forky: resolved (fixed in 0.22.0-1)
sid: resolved (fixed in 0.22.0-1)
trixie: resolved (fixed in 0.22.0-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28185https://bugzilla.redhat.com/show_bug.cgi?id=2016083https://github.com/OpenSC/OpenSC/commit/f015746dhttps://security.gentoo.org/glsa/202209-03https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28185https://bugzilla.redhat.com/show_bug.cgi?id=2016083https://github.com/OpenSC/OpenSC/commit/f015746dhttps://lists.debian.org/debian-lts-announce/2024/12/msg00026.htmlhttps://security.gentoo.org/glsa/202209-03
2022-04-18
Published