CVE-2018-16426
Description
Endless recursion when handling responses from an IAS-ECC card in iasecc_select_file in libopensc/card-iasecc.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to hang or crash the opensc library using programs.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Endless recursion in OpenSC's IAS-ECC card handling allows denial of service via crafted smartcard.
Vulnerability
The vulnerability is an endless recursion in iasecc_select_file() in libopensc/card-iasecc.c in OpenSC before version 0.19.0-rc1 [1][3]. When processing a crafted response from an IAS-ECC smartcard, the function recursively selects the MF without checking the path type, leading to infinite recursion [4].
Exploitation
An attacker with physical access supplies a malicious smartcard that returns a malformed response to an APDU command. The OpenSC library, when handling the response, enters an infinite loop in iasecc_select_file(). No authentication or special privileges are required [1][2].
Impact
Successful exploitation causes a denial of service (DoS) by hanging or crashing the OpenSC library. Applications using the library (e.g., for authentication or encryption) become unavailable. No data is compromised [1].
Mitigation
The fix was included in OpenSC 0.19.0-rc1 [3]. Red Hat Enterprise Linux users can apply RHSA-2019:2154 [1]. No workaround exists for unpatched versions.
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
9- Range: <0.19.0-rc1
- osv-coords8 versionspkg:rpm/opensuse/opensc&distro=openSUSE%20Tumbleweedpkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP3pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP4pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4
< 0.21.0-2.2+ 7 more
- (no CPE)range: < 0.21.0-2.2
- (no CPE)range: < 0.13.0-3.3.2
- (no CPE)range: < 0.13.0-3.3.2
- (no CPE)range: < 0.18.0-3.8.1
- (no CPE)range: < 0.13.0-3.3.2
- (no CPE)range: < 0.13.0-3.3.2
- (no CPE)range: < 0.13.0-3.3.2
- (no CPE)range: < 0.13.0-3.3.2
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- access.redhat.com/errata/RHSA-2019:2154mitrevendor-advisoryx_refsource_REDHAT
- github.com/OpenSC/OpenSC/commit/03628449b75a93787eb2359412a3980365dda49bmitrex_refsource_MISC
- github.com/OpenSC/OpenSC/releases/tag/0.19.0-rc1mitrex_refsource_MISC
- lists.debian.org/debian-lts-announce/2019/09/msg00009.htmlmitremailing-listx_refsource_MLIST
- www.x41-dsec.de/lab/advisories/x41-2018-002-OpenSC/mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.