CVE-2021-42780 json
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 l…
published 2022-04-18 4 y ago modified 2026-06-17 4 mo ago also EUVD-2021-29736
- cvss
- 5.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.2%
- EPSS 2.2% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- opensc_project opensc 0.22.0
- opensc Debian 14, Debian 13, Debian 12 0.22.0-1
debian advisories DEBIAN-CVE-2021-42780
- opensc Ubuntu Pro 16.04 LTS 0.15.0-1ubuntu1+esm2
- opensc Ubuntu Pro 18.04 LTS 0.17.0-3ubuntu0.1~esm2
- opensc Ubuntu Pro 20.04 LTS 0.20.0-3ubuntu0.1~esm4
ubuntu advisories UBUNTU-CVE-2021-42780
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- opensc SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLES 15 SP1-BCL +7 more 0.19.0-150100.3.16.1
- opensc SLES for SAP 15, SLES 15-LTSS, SLE High Performance Computing 15-LTSS +1 more 0.18.0-150000.3.23.1
- opensc SLES 11 SP4-LTSS, SLE Point of Sale 11 SP3 0.11.6-5.27.14.1
- opensc SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +10 more 0.13.0-3.19.1
suse advisories SUSE-SU-2022:1156-1SUSE-SU-2022:1041-1SUSE-SU-2021:14835-1SUSE-SU-2021:3582-1
- opensc openSUSE Tumbleweed 0.22.0-1.1
opensuse advisories openSUSE-SU-2024:11613-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-42780 updated cvss 2.0
opensc: Use after return in insert_pin function
-
Red Hat Enterprise Linux 7 openscaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 openscaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 9 openscnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.16% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected products
- n/a opensc
Classification
- Weakness
-
- CWE-252 Unchecked Return Value
References
-
github.com
/OpenSC/OpenSC/commit/5df913b7
patch, third-party-advisory
-
bugs.chromium.org
/p/oss-fuzz/issues/detail?id=28383
issue-tracking, mailing-list, patch, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2016139
issue-tracking, patch, third-party-advisory
-
security.gentoo.org
/glsa/202209-03
vendor-advisory, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2023/06/msg00025.html
mailing-list
- lists.debian.org /debian-lts-announce/2024/12/msg00026.html
Sources
- CVE List CVE-2021-42780
- NVD CVE-2021-42780
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.