Skip to content
OpenAdvisories
High · 7.1 CVE-2023-2977 EUVD-2023-34418GHSA-p22r-5f28-437x

A vulnerbility was found in OpenSC. This security flaw cause a buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package. The att…

Published Jun 1, 2023 · Updated Nov 3, 2025 · Assigned by redhat

Description

A vulnerbility was found in OpenSC. This security flaw cause a buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package. The attacker can supply a smart card package with malformed ASN1 context. The cardos_have_verifyrc_package function scans the ASN1 buffer for 2 tags, where remaining length is wrongly caculated due to moved starting pointer. This leads to possible heap-based buffer oob read. In cases where ASAN is enabled while compiling this causes a crash. Further info leak or more damage is possible.

Affected products

VendorProductAffectedFixed
— OpenSC opensc-0.23.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.23.0-0.3 —
Debian 13 opensc 0.23.0-0.3 —
Debian 12 opensc 0.23.0-0.3 —
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
RHEL 9 opensc 0.23.0-2.el9 RHSA-2023:6587
RHEL 8 opensc 0.20.0-6.el8 RHSA-2023:7160

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 opensc 0.23.0-2.el9 ALSA-2023:6587
AlmaLinux 8 opensc 0.20.0-6.el8 ALSA-2023:7160
ReleasePackageFixed inAdvisory
SLES 15 SP5 opensc 0.22.0-150400.3.3.1 SUSE-SU-2023:2516-1
SLES 15 SP4 opensc 0.22.0-150400.3.3.1 SUSE-SU-2023:2516-1
SLES 12 SP5 opensc 0.13.0-3.22.1 SUSE-SU-2023:2466-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 opensc 0.13.0-3.22.1 SUSE-SU-2023:2466-1
SLE Real Time 15 SP3 opensc 0.19.0-150100.3.22.1 SUSE-SU-2023:2508-1
SLE Micro 5.4 opensc 0.22.0-150400.3.3.1 SUSE-SU-2023:2516-1
SLE Micro 5.3 opensc 0.22.0-150400.3.3.1 SUSE-SU-2023:2516-1
SLE Micro 5.2 opensc 0.19.0-150100.3.22.1 SUSE-SU-2023:2508-1
SLE Micro 5.1 opensc 0.19.0-150100.3.22.1 SUSE-SU-2023:2508-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed opensc 0.23.0-2.1 openSUSE-SU-2024:12968-1
openSUSE Leap 15.5 opensc 0.22.0-150400.3.3.1 SUSE-SU-2023:2516-1
openSUSE Leap 15.4 opensc 0.22.0-150400.3.3.1 SUSE-SU-2023:2516-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.3 opensc 0.22.0-150400.3.3.1 SUSE-SU-2023:2516-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 opensc 0.23.0-3.amzn2023.0.1 ALAS2023-2023-207
Amazon Linux 2 opensc 0.19.0-5.amzn2 ALAS2-2023-2102

Azure Linux

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

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 opensc 0.23.0-2.el9 ELSA-2023-6587
Oracle Linux 8 opensc 0.20.0-6.el8 ELSA-2023-7160

Advisories 17

References