Skip to content
OpenAdvisories
Medium · 6.6 CVE-2023-40660 EUVD-2023-45216GHSA-7635-x5f9-5458

Opensc: potential pin bypass when card tracks its own login state

Published Nov 6, 2023 · Updated Nov 6, 2026 · Assigned by redhat

Description

A flaw was found in OpenSC packages that allow a potential PIN bypass. When a token/card is authenticated by one process, it can perform cryptographic operations in other processes when an empty zero-length pin is passed. This issue poses a security risk, particularly for OS logon/screen unlock and for small, permanently connected tokens to computers. Additionally, the token can internally track login status. This flaw allows an attacker to gain unauthorized access, carry out malicious actions, or compromise the system without the user's awareness.

Affected products

VendorProductAffectedFixed
— OpenSC 0.17.0 – < 0.24.0 0.24.0
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 7 — —

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-2 —
Debian 13 opensc 0.23.0-2 —
Debian 12 opensc 0.23.0-0.3+deb12u1 —
Debian 11 opensc 0.21.0-1+deb11u1 DLA-4004-1
Debian 10 opensc 0.19.0-1+deb10u3 DLA-3668-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-3.el9_3 RHSA-2023:7879
RHEL 8 opensc 0.20.0-7.el8_9 RHSA-2023:7876

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 opensc 0.23.0-3.el9_3 ALSA-2023:7879
AlmaLinux 8 opensc 0.20.0-7.el8_9 ALSA-2023:7876
ReleasePackageFixed inAdvisory
SLES 15 SP5 opensc 0.22.0-150400.3.6.1 SUSE-SU-2023:4089-1
SLES 15 SP4 opensc 0.22.0-150400.3.6.1 SUSE-SU-2023:4089-1
SLES 15 SP3 opensc 0.19.0-150100.3.25.1 SUSE-SU-2023:4104-1
SLES 15 SP2 opensc 0.19.0-150100.3.25.1 SUSE-SU-2023:4104-1
SLES 15 SP1 opensc 0.19.0-150100.3.25.1 SUSE-SU-2023:4104-1
Show 14 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 opensc 0.19.0-150100.3.25.1 SUSE-SU-2023:4104-1
SLES for SAP 15 SP2 opensc 0.19.0-150100.3.25.1 SUSE-SU-2023:4104-1
SLES for SAP 15 SP1 opensc 0.19.0-150100.3.25.1 SUSE-SU-2023:4104-1
SLE Micro 5.5 opensc 0.22.0-150400.3.6.1 SUSE-SU-2023:4089-1
SLE Micro 5.4 opensc 0.22.0-150400.3.6.1 SUSE-SU-2023:4089-1
SLE Micro 5.3 opensc 0.22.0-150400.3.6.1 SUSE-SU-2023:4089-1
SLE Micro 5.2 opensc 0.19.0-150100.3.25.1 SUSE-SU-2023:4104-1
SLE Micro 5.1 opensc 0.19.0-150100.3.25.1 SUSE-SU-2023:4104-1
SLE HPC 15 SP3 opensc 0.19.0-150100.3.25.1 SUSE-SU-2023:4104-1
SLE HPC 15 SP2 opensc 0.19.0-150100.3.25.1 SUSE-SU-2023:4104-1
SLE HPC 15 SP1 opensc 0.19.0-150100.3.25.1 SUSE-SU-2023:4104-1
SUSE Manager Server 4.2 opensc 0.19.0-150100.3.25.1 SUSE-SU-2023:4104-1
SUSE Manager Proxy 4.2 opensc 0.19.0-150100.3.25.1 SUSE-SU-2023:4104-1
SUSE Enterprise Storage 7.1 opensc 0.19.0-150100.3.25.1 SUSE-SU-2023:4104-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed opensc 0.23.0-3.1 openSUSE-SU-2024:13314-1
ReleasePackageFixed inAdvisory
Alpine v3.24 opensc 0.24.0-r0 —
Alpine v3.23 opensc 0.24.0-r0 —
Alpine v3.22 opensc 0.24.0-r0 —
Alpine v3.21 opensc 0.24.0-r0 —
Alpine v3.20 opensc 0.24.0-r0 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 opensc 0.24.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 opensc 0.23.0-3.amzn2023.0.2 ALAS2023-2023-417
Amazon Linux 2 opensc 0.19.0-5.amzn2.0.2 ALAS2-2023-2323

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 opensc 0.25.1-3 —
Azure Linux 2 (CBL-Mariner) opensc 0.23.0-4 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 opensc 0.23.0-3.el9_3 ELSA-2023-7879
Oracle Linux 8 opensc 0.20.0-7.el8_9 ELSA-2023-7876

Advisories 16

References