Skip to content
OpenAdvisories
Unscored CVE-2021-42780 EUVD-2021-29736GHSA-7wjg-mhwg-m2rc

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 Apr 18, 2022 · Updated Nov 3, 2025 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
— opensc opensc 0.22.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 opensc 0.22.0-1 —
Debian 13 opensc 0.22.0-1 —
Debian 12 opensc 0.22.0-1 —
Debian 11 opensc 0.21.0-1+deb11u1 DLA-4004-1
Debian 10 opensc 0.19.0-1+deb10u2 DLA-3463-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS opensc 0.25.0~rc1-1ubuntu0.1~esm1 USN-7346-1
Ubuntu Pro 22.04 LTS opensc 0.22.0-1ubuntu2+esm1 USN-7346-1
Ubuntu Pro 20.04 LTS opensc 0.20.0-3ubuntu0.1~esm4 USN-7346-3, USN-7346-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS opensc 0.17.0-3ubuntu0.1~esm2 USN-7346-1
Ubuntu Pro 16.04 LTS opensc 0.15.0-1ubuntu1+esm2 USN-7346-1
ReleasePackageFixed inAdvisory
SLES 15 SP3 opensc 0.19.0-150100.3.16.1 SUSE-SU-2022:1156-1
SLES 15 SP1 opensc 0.19.0-150100.3.16.1 SUSE-SU-2022:1156-1
SLES 15 opensc 0.18.0-150000.3.23.1 SUSE-SU-2022:1041-1
SLES 12 SP5 opensc 0.13.0-3.19.1 SUSE-SU-2021:3582-1
SLES 12 SP4 opensc 0.13.0-3.19.1 SUSE-SU-2021:3582-1
Show 19 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP3 opensc 0.13.0-3.19.1 SUSE-SU-2021:3582-1
SLES 12 SP2 opensc 0.13.0-3.19.1 SUSE-SU-2021:3582-1
SLES 11 SP4 opensc 0.11.6-5.27.14.1 SUSE-SU-2021:14835-1
SLES for SAP 15 SP1 opensc 0.19.0-150100.3.16.1 SUSE-SU-2022:1156-1
SLES for SAP 15 opensc 0.18.0-150000.3.23.1 SUSE-SU-2022:1041-1
SLES for SAP 12 SP5 opensc 0.13.0-3.19.1 SUSE-SU-2021:3582-1
SLES for SAP 12 SP4 opensc 0.13.0-3.19.1 SUSE-SU-2021:3582-1
SLES for SAP 12 SP3 opensc 0.13.0-3.19.1 SUSE-SU-2021:3582-1
SLE Real Time 15 SP2 opensc 0.19.0-150100.3.16.1 SUSE-SU-2022:1156-1
SLE Micro 5.1 opensc 0.19.0-150100.3.16.1 SUSE-SU-2022:1156-1
SLE HPC 15 SP1 opensc 0.19.0-150100.3.16.1 SUSE-SU-2022:1156-1
SLE HPC 15 opensc 0.18.0-150000.3.23.1 SUSE-SU-2022:1041-1
SUSE OpenStack Cloud Crowbar 9 opensc 0.13.0-3.19.1 SUSE-SU-2021:3582-1
SUSE OpenStack Cloud Crowbar 8 opensc 0.13.0-3.19.1 SUSE-SU-2021:3582-1
SUSE OpenStack Cloud 9 opensc 0.13.0-3.19.1 SUSE-SU-2021:3582-1
SUSE OpenStack Cloud 8 opensc 0.13.0-3.19.1 SUSE-SU-2021:3582-1
SUSE Linux Enterprise Point of Sale 11 SP3 opensc 0.11.6-5.27.14.1 SUSE-SU-2021:14835-1
SUSE HPE Helion OpenStack 8 opensc 0.13.0-3.19.1 SUSE-SU-2021:3582-1
SUSE Enterprise Storage 6 opensc 0.19.0-150100.3.16.1 SUSE-SU-2022:1156-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed opensc 0.22.0-1.1 openSUSE-SU-2024:11613-1
openSUSE Leap 15.3 opensc 0.19.0-150100.3.16.1 SUSE-SU-2022:1156-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 opensc 0.19.0-5.amzn2 ALAS2-2023-2102

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) opensc 0.22.0-1 —

Advisories 11

References