Vulnerability Name:

CVE-2021-42778 (CCN-224788)

Assigned:2021-10-21
Published:2021-10-21
Updated:2022-09-29
Summary:A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.
CVSS v3 Severity:5.3 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L)
4.6 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Low
2.0 Low (CCN CVSS v3.1 Vector: CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L)
1.8 Low (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Physical
Attack Complexity (AC): High
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Low
CVSS v2 Severity:5.0 Medium (CVSS v2 Vector: AV:N/AC:L/Au:N/C:N/I:N/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Partial
1.2 Low (CCN CVSS v2 Vector: AV:L/AC:H/Au:N/C:N/I:N/A:P)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): High
Athentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Partial
Vulnerability Type:CWE-415
Vulnerability Consequences:Denial of Service
References:Source: MITRE
Type: CNA
CVE-2021-42778

Source: MISC
Type: Issue Tracking, Mailing List, Patch, Third Party Advisory
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28185

Source: CCN
Type: Red Hat Bugzilla - Bug 2016083
(CVE-2021-42778) - CVE-2021-42778 opensc: Heap double free in sc_pkcs15_free_tokeninfo

Source: MISC
Type: Issue Tracking, Patch, Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2016083

Source: XF
Type: UNKNOWN
opensc-cve202142778-dos(224788)

Source: CCN
Type: OpenSC GIT Repository
OpenSC

Source: CCN
Type: OpenSC GIT Repository
idprime: Use temporary variable instead of messing up the passed one

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/OpenSC/OpenSC/commit/f015746d

Source: GENTOO
Type: Third Party Advisory
GLSA-202209-03

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2021-42778

Vulnerable Configuration:Configuration 1:
  • cpe:/a:opensc-project:opensc:*:*:*:*:*:*:*:* (Version < 0.22.0)

  • Configuration 2:
  • cpe:/o:fedoraproject:fedora:33:*:*:*:*:*:*:*

  • Configuration 3:
  • cpe:/o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:opensc_project:opensc:0.21.0:-:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    BACK
    opensc-project opensc *
    fedoraproject fedora 33
    redhat enterprise linux 7.0
    redhat enterprise linux 8.0
    opensc_project opensc 0.21.0 -