CVE Vulnerabilities

CVE-2021-42778

Double Free

Published: Apr 18, 2022 | Modified: Sep 29, 2022
CVSS 3.x
5.3
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
2 LOW
CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Ubuntu
MEDIUM

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

Weakness

The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations.

Affected Software

Name Vendor Start Version End Version
Opensc Opensc_project * 0.22.0 (excluding)
Opensc Ubuntu bionic *
Opensc Ubuntu hirsute *
Opensc Ubuntu impish *
Opensc Ubuntu kinetic *
Opensc Ubuntu lunar *
Opensc Ubuntu mantic *
Opensc Ubuntu trusty *
Opensc Ubuntu xenial *

Potential Mitigations

References