CVE-2023-40660 Opensc: potential pin bypass when card tracks its own login state
MediumCVSS 6.6
EPSS 1.0%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
16 packages: 15 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/opensc(Alpine v3.19) | < 0.24.0-r0 | 0.24.0-r0 | Fixed |
| alpine/opensc(Alpine v3.20) | < 0.24.0-r0 | 0.24.0-r0 | Fixed |
| alpine/opensc(Alpine v3.21) | < 0.24.0-r0 | 0.24.0-r0 | Fixed |
| alpine/opensc(Alpine v3.22) | < 0.24.0-r0 | 0.24.0-r0 | Fixed |
| alpine/opensc(Alpine v3.23) | < 0.24.0-r0 | 0.24.0-r0 | Fixed |
| alpine/opensc(Alpine v3.24) | < 0.24.0-r0 | 0.24.0-r0 | Fixed |
| debian/opensc(Debian 12) | < 0.23.0-0.3+deb12u1; = 0.23.0-0.3 | 0.23.0-0.3+deb12u1 | Fixed |
| debian/opensc(Debian 13) | < 0.23.0-2 | 0.23.0-2 | Fixed |
| debian/opensc(Debian 14) | < 0.23.0-2 | 0.23.0-2 | Fixed |
| OpenSC | >= 0.17.0, < 0.24.0 | 0.24.0 | Fixed |
| opensc project opensc | <= 0.23.0 | after 0.23.0 | Fixed |
| redhat enterprise linux | < 0:0.20.0-7.el8_9; < 0:0.23.0-3.el9_3; = 8.0; = 9.0 | 0:0.20.0-7.el8_9, 0:0.23.0-3.el9_3 | Fixed |
| ubuntu/opensc(Ubuntu 22.04) | < 0.22.0-1ubuntu2+esm1 | 0.22.0-1ubuntu2+esm1 | Fixed |
| ubuntu/opensc(Ubuntu Pro 20.04) | < 0.20.0-3ubuntu0.1~esm4; = 0.19.0-2; = 0.20.0-1; = 0.20.0-2 +4 more | 0.20.0-3ubuntu0.1~esm4 | Fixed |
| ubuntu/opensc(Ubuntu Pro 22.04) | < 0.22.0-1ubuntu2+esm1; = 0.21.0-1ubuntu1; = 0.22.0-1ubuntu2 | 0.22.0-1ubuntu2+esm1 | Fixed |
| redhat rhel els | = 7 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/opensc(Debian:12) | < 0.23.0-0.3+deb12u1 | 0.23.0-0.3+deb12u1 |
| debian/opensc(Debian:12) | = 0.23.0-0.3 | No fix listed |
| debian/opensc(Debian:13) | < 0.23.0-2 | 0.23.0-2 |
| debian/opensc(Debian:14) | < 0.23.0-2 | 0.23.0-2 |
| OpenSC | >= 0.17.0, < 0.24.0 | 0.24.0 |
| redhat enterprise linux | < 0:0.20.0-7.el8_9 | 0:0.20.0-7.el8_9 |
| redhat enterprise linux | < 0:0.23.0-3.el9_3 | 0:0.23.0-3.el9_3 |
| redhat rhel els | = 7 | No fix listed |
| ubuntu/opensc(Ubuntu:22.04) | < 0.22.0-1ubuntu2+esm1 | 0.22.0-1ubuntu2+esm1 |
| alpine/opensc(Alpine:v3.19) | < 0.24.0-r0 | 0.24.0-r0 |
| alpine/opensc(Alpine:v3.20) | < 0.24.0-r0 | 0.24.0-r0 |
| alpine/opensc(Alpine:v3.21) | < 0.24.0-r0 | 0.24.0-r0 |
| alpine/opensc(Alpine:v3.22) | < 0.24.0-r0 | 0.24.0-r0 |
| alpine/opensc(Alpine:v3.23) | < 0.24.0-r0 | 0.24.0-r0 |
| alpine/opensc(Alpine:v3.24) | < 0.24.0-r0 | 0.24.0-r0 |
| opensc project opensc | <= 0.23.0 | No fix listed |
| redhat enterprise linux | = 8.0 | No fix listed |
| redhat enterprise linux | = 9.0 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:20.04) | < 0.20.0-3ubuntu0.1~esm4 | 0.20.0-3ubuntu0.1~esm4 |
| ubuntu/opensc(Ubuntu:Pro:20.04) | = 0.19.0-2 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:20.04) | = 0.20.0-1 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:20.04) | = 0.20.0-2 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:20.04) | = 0.20.0-3 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:20.04) | = 0.20.0-3ubuntu0.1~esm1 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:20.04) | = 0.20.0-3ubuntu0.1~esm2 | No fix listed |
Show 4 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/opensc(Ubuntu:Pro:20.04) | = 0.20.0-3ubuntu0.1~esm3 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:22.04) | < 0.22.0-1ubuntu2+esm1 | 0.22.0-1ubuntu2+esm1 |
| ubuntu/opensc(Ubuntu:Pro:22.04) | = 0.21.0-1ubuntu1 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:22.04) | = 0.22.0-1ubuntu2 | No fix listed |
References
- Debian Security Tracker CVE-2023-40660 vendor-advisory
- RHSA-2023:7876 vendor-advisory
- RHSA-2023:7879 vendor-advisory
- access.redhat.com issue-tracking third-party-advisory vdb-entry
- RHBZ#2240912 issue-tracking
- github.com issue-tracking
- github.com release-notes
- github.com vendor-advisory
- www.openwall.com
- lists.debian.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.debian.org
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-7346-1 vendor-advisory
- USN-7346-3 vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2023-45216 third-party-advisory