# CVE-2021-42778: A heap double free issue was found in Opensc before version 0.22.0 in scpkcs15freetokeninfo.

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.14%, higher than 82% of CVEs (2026-12-01)
- Published: 2022-04-18T16:20:39.000Z
- Modified: 2026-06-17T04:10:07.867Z
- Weaknesses: CWE-415, CWE-672
- Assigned by: redhat

## Description

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

(As written by CVE List.)

## Affected

- opensc: opensc 0.22.0
- opensc_project opensc: before 0.22.0
- fedoraproject fedora: 33
- redhat enterprise_linux: 7.0; 8.0

## Every score

- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28185> (issue-tracking, mailing-list, patch, third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2016083> (issue-tracking, patch, third-party-advisory)
- <https://github.com/OpenSC/OpenSC/commit/f015746d> (patch, third-party-advisory)
- <https://security.gentoo.org/glsa/202209-03> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html>

## Sources

- CVE List: [CVE-2021-42778](https://www.cve.org/CVERecord?id=CVE-2021-42778), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2021-42778](https://nvd.nist.gov/vuln/detail/CVE-2021-42778), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-42778 · Whole record: https://cve.day/CVE-2021-42778.json · Rebuilt by cve.day 2026-11-25T22:58:07.391Z
