CVE-2023-2977
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | opensc | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | opensc | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | opensc | Fix pending | 0.22.0-1ubuntu2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-2977 |
| Ubuntu 20.04 | opensc | Fix pending | 0.20.0-3ubuntu0.1~esm4 (Ubuntu Pro) | UBUNTU-CVE-2023-2977 |
| Ubuntu 18.04 | opensc | Fix pending | 0.17.0-3ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2023-2977 |
| Ubuntu 16.04 | opensc | Fix pending | 0.15.0-1ubuntu1+esm2 (Ubuntu Pro) | UBUNTU-CVE-2023-2977 |
| Ubuntu 14.04 | opensc | Fix pending | ||
| Debian 14 | opensc | Fixed | 0.23.0-0.3 | DEBIAN-CVE-2023-2977 |
| Debian 13 | opensc | Fixed | 0.23.0-0.3 | DEBIAN-CVE-2023-2977 |
| Debian 12 | opensc | Fixed | 0.23.0-0.3 | DEBIAN-CVE-2023-2977 |
| Red Hat Enterprise Linux 9 | opensc | Fixed | 0:0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux 8 | opensc | Fixed | 0:0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux 7 | opensc | Will not fix Out of support scope | ||
| AlmaLinux 9 | opensc | Fixed | 0.23.0-2.el9 | ALSA-2023:6587 |
| AlmaLinux 8 | opensc | Fixed | 0.20.0-6.el8 | ALSA-2023:7160 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenSC: affected: opensc-0.23.0
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://access.redhat.com/security/cve/CVE-2023-2977
- https://bugzilla.redhat.com/show_bug.cgi?id=2211088
- https://github.com/OpenSC/OpenSC/issues/2785
- https://github.com/OpenSC/OpenSC/pull/2787
- https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LAR54OV6EHA56B4XJF6RNPQ4HJ2ITU66/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJD4Q4AJSGE5UIJI7OUYZY4HGGCVYQNI/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.