Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-42778

A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-42778
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:21 UTC · Revision 1

Source evidence

CVE-2021-42778

core-osv · Original source

Published 18 Apr 2022, 17:15 UTC

A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.

osv:CVE-2021-42778
Complete source record
{
  "id": "156c20c2c7aa23d419125d331b72756f5f9514e6a20ce4a51b2326c04f8cafc5",
  "url": "https://osv.dev/vulnerability/CVE-2021-42778",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-42778",
    "summary": "A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.",
    "evidence": "osv:CVE-2021-42778",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-42778",
      "aliases": [
        "CVE-2021-42778"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/opensc/opensc",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c902e1992195e00ada12d71beb1029287cd72037"
                },
                {
                  "fixed": "f015746d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:opensc_project:opensc:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.22.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f015746d"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.22.0-rc2",
            "0.22.0-rc1",
            "0.21.0",
            "0.21.0-rc2",
            "0.21.0-rc1",
            "0.20.0",
            "0.20.0-rc4",
            "0.20.0-rc3",
            "0.20.0-rc2",
            "0.20.0-rc1",
            "0.19.0",
            "0.19.0-rc1",
            "0.18.0",
            "0.18.0-rc2",
            "0.18.0-rc1",
            "0.17.0",
            "0.17.0-rc2",
            "0.17.0-rc1",
            "0.16.0",
            "v0.16.0-pre1",
            "0.15.0",
            "0.14.0",
            "0.14.0rtm",
            "0.14.0rc2",
            "0.13.0",
            "0.13.0rc1",
            "0.13.0pre1",
            "v0.12.2",
            "0.12.2",
            "0.12.2-rc1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-42778.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:06.222453701Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html",
        "https://security.gentoo.org/glsa/202209-03",
        "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28185",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2016083",
        "https://github.com/OpenSC/OpenSC/commit/f015746d"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "33"
                  },
                  {
                    "last_affected": "33"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-42778",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384862,
  "published_at": "2022-04-18T17:15:16.103+00:00"
}