CVE Vulnerabilities

CVE-2021-42779

Use After Free

Published: Apr 18, 2022 | Modified: Nov 21, 2024
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 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

Name Vendor Start Version End Version
Opensc Opensc_project * 0.22.0 (excluding)
Opensc Ubuntu bionic *
Opensc Ubuntu esm-apps/bionic *
Opensc Ubuntu esm-apps/focal *
Opensc Ubuntu esm-apps/xenial *
Opensc Ubuntu focal *
Opensc Ubuntu hirsute *
Opensc Ubuntu impish *
Opensc Ubuntu kinetic *
Opensc Ubuntu lunar *
Opensc Ubuntu mantic *
Opensc Ubuntu trusty *
Opensc Ubuntu upstream *
Opensc Ubuntu xenial *

Potential Mitigations

References