CVE-2023-4535Opensc: out-of-bounds read in myeid driver handling encryption using symmetric keys
An out-of-bounds read vulnerability was found in OpenSC packages within the MyEID driver when handling symmetric key encryption. Exploiting this flaw requires an attacker to have physical access to the computer and a specially crafted USB device or smart card. This flaw allows the attacker to manipulate APDU responses and potentially gain unauthorized access to sensitive data, compromising the system's security.
What to do
Fixed builds are available from AlmaLinux, Alpine, 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 16.04 | opensc | Fix pending | ||
| Ubuntu 14.04 | opensc | Fix pending | ||
| Debian 14 | opensc | Fixed | 0.23.0-2 | DEBIAN-CVE-2023-4535 |
| Debian 13 | opensc | Fixed | 0.23.0-2 | DEBIAN-CVE-2023-4535 |
| Debian 12 | opensc | Fixed | 0.23.0-0.3+deb12u1 | DEBIAN-CVE-2023-4535 |
| Red Hat Enterprise Linux 9 | opensc | Fixed | 0:0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux 8 | opensc | Not affected | ||
| Red Hat Enterprise Linux 7 | opensc | Not affected | ||
| AlmaLinux 9 | opensc | Fixed | 0.23.0-3.el9_3 | ALSA-2023:7879 |
| Alpine Linux 3.24 | opensc | Fixed | 0.24.0-r0 | ALPINE-CVE-2023-4535 |
| Alpine Linux 3.23 | opensc | Fixed | 0.24.0-r0 | ALPINE-CVE-2023-4535 |
| Alpine Linux 3.22 | opensc | Fixed | 0.24.0-r0 | ALPINE-CVE-2023-4535 |
| Alpine Linux 3.21 | opensc | Fixed | 0.24.0-r0 | ALPINE-CVE-2023-4535 |
| Alpine Linux 3.20 | opensc | Fixed | 0.24.0-r0 | ALPINE-CVE-2023-4535 |
| Alpine Linux 3.19 | opensc | Fixed | 0.24.0-r0 | ALPINE-CVE-2023-4535 |
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.
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2023:7879 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2023:7879
- https://access.redhat.com/security/cve/CVE-2023-4535
- https://bugzilla.redhat.com/show_bug.cgi?id=2240914
- https://github.com/OpenSC/OpenSC/commit/f1993dc4e0b33050b8f72a3558ee88b24c4063b2
- https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651
- https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1
- https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories
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.