VYPR
Unrated severityNVD Advisory· Published Sep 3, 2018· Updated Aug 5, 2024

CVE-2018-16392

CVE-2018-16392

Description

Several buffer overflows when handling responses from a TCOS Card in tcos_select_file in libopensc/card-tcos.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Buffer overflows in OpenSC's tcos_select_file allow attackers with crafted smartcards to cause denial of service or possibly other impacts.

Vulnerability

In OpenSC before 0.19.0-rc1, the function tcos_select_file in libopensc/card-tcos.c contains several buffer overflows when processing responses from a TCOS card. The vulnerability is triggered when the smartcard returns malformed data, leading to out-of-bounds write. Affected versions include up to 0.18.0 and possibly earlier, fixed in 0.19.0-rc1 [4].

Exploitation

An attacker must supply a crafted smartcard that sends malicious responses to APDU commands. No authentication is required; the attacker only needs the victim to insert the malicious card into a system using OpenSC. The vulnerability is triggered automatically when OpenSC handles the card's response via the tcos_select_file function.

Impact

Successful exploitation could lead to a denial of service (application crash) due to memory corruption. The description also mentions "possibly have unspecified other impact", which may include arbitrary code execution, though this is not confirmed publicly [2].

Mitigation

Update to OpenSC version 0.19.0-rc1 or later, released on September 3, 2018 [4]. Users unable to update should avoid using untrusted smartcards. Red Hat Enterprise Linux users can apply RHSA-2019:2154 [1]. No workaround is available beyond upgrading.

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

12

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

5

News mentions

0

No linked articles in our index yet.