Vulnerability Details : CVE-2021-42778
A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.
Vulnerability category: Memory Corruption
Products affected by CVE-2021-42778
- cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
- cpe:2.3:a:opensc_project:opensc:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-42778
0.10%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 42 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-42778
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:N/I:N/A:P |
10.0
|
2.9
|
NIST | |
5.3
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
3.9
|
1.4
|
NIST |
CWE ids for CVE-2021-42778
-
The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations.Assigned by: nvd@nist.gov (Primary)
-
The product uses, accesses, or otherwise operates on a resource after that resource has been expired, released, or revoked.Assigned by: secalert@redhat.com (Secondary)
References for CVE-2021-42778
-
https://github.com/OpenSC/OpenSC/commit/f015746d
idprime: Use temporary variable instead of messing up the passed one · OpenSC/OpenSC@f015746 · GitHubPatch;Third Party Advisory
-
https://security.gentoo.org/glsa/202209-03
OpenSC: Multiple Vulnerabilities (GLSA 202209-03) — Gentoo securityThird Party Advisory
-
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28185
28185 - opensc:fuzz_pkcs15_reader: Heap-double-free in sc_pkcs15_free_tokeninfo - oss-fuzzIssue Tracking;Mailing List;Patch;Third Party Advisory
-
https://bugzilla.redhat.com/show_bug.cgi?id=2016083
2016083 – (CVE-2021-42778) CVE-2021-42778 opensc: Heap double free in sc_pkcs15_free_tokeninfoIssue Tracking;Patch;Third Party Advisory
Jump to