CVE-2021-42780Unchecked Return Value in Project Opensc

Severity
5.3MEDIUMNVD
EPSS
0.1%
top 81.80%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedApr 18
Latest updateApr 9

Description

A use after return issue was found in Opensc before version 0.22.0 in insert_pin function that could potentially crash programs using the library.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitability: 3.9 | Impact: 1.4

Affected Packages4 packages

NVDopensc_project/opensc< 0.22.0
Debianopensc_project/opensc< 0.21.0-1+deb11u1+3
Ubuntuopensc_project/opensc< 0.15.0-1ubuntu1+esm2+4
CVEListV5opensc_project/openscopensc 0.22.0

Also affects: Fedora 33, Enterprise Linux 7.0

Patches

🔴Vulnerability Details

6
OSV
opensc vulnerabilities2025-04-09
OSV
opensc regression2025-03-28
OSV
opensc vulnerabilities2025-03-12
GHSA
GHSA-7wjg-mhwg-m2rc: A use after return issue was found in Opensc before version 02022-04-19
OSV
CVE-2021-42780: A use after return issue was found in Opensc before version 02022-04-18

📋Vendor Advisories

5
Ubuntu
OpenSC vulnerabilities2025-04-09
Ubuntu
OpenSC vulnerabilities2025-03-12
Microsoft
A use after return issue was found in Opensc before version 0.22.0 in insert_pin function that could potentially crash programs using the library.2022-04-12
Red Hat
opensc: Use after return in insert_pin function2021-01-09
Debian
CVE-2021-42780: opensc - A use after return issue was found in Opensc before version 0.22.0 in insert_pin...2021
CVE-2021-42780 — Unchecked Return Value | cvebase