CVE Vulnerabilities

CVE-2021-42779

Use After Free

Published: Apr 18, 2022 | Modified: Nov 03, 2025
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
root.io logo minimus.io logo echo.ai logo

A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
OpenscOpensc_project*0.22.0 (excluding)
OpenscUbuntubionic*
OpenscUbuntuesm-apps/bionic*
OpenscUbuntuesm-apps/focal*
OpenscUbuntuesm-apps/xenial*
OpenscUbuntufocal*
OpenscUbuntuhirsute*
OpenscUbuntuimpish*
OpenscUbuntukinetic*
OpenscUbuntulunar*
OpenscUbuntumantic*
OpenscUbuntutrusty*
OpenscUbuntuupstream*
OpenscUbuntuxenial*

Potential Mitigations

References