Upstream information

CVE-2018-14779 at MITRE

Description

A buffer overflow issue was discovered in the Yubico-Piv 1.5.0 smartcard driver. The file lib/ykpiv.c contains the following code in the function `ykpiv_transfer_data()`: {% highlight c %} if(*out_len + recv_len - 2 > max_out) { fprintf(stderr, "Output buffer to small, wanted to write %lu, max was %lu.", *out_len + recv_len - 2, max_out); } if(out_data) { memcpy(out_data, data, recv_len - 2); out_data += recv_len - 2; *out_len += recv_len - 2; } {% endhighlight %} -- it is clearly checked whether the buffer is big enough to hold the data copied using `memcpy()`, but no error handling happens to avoid the `memcpy()` in such cases. This code path can be triggered with malicious data coming from a smartcard.

SUSE information

Overall state of this security issue: Running

This issue is currently rated as having important severity.

CVSS v3 Scores
  SUSE
Base Score 7.1
Vector AV:P/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Access Vector Physical
Access Complexity High
Privileges Required None
User Interaction None
Scope Changed
Confidentiality Impact High
Integrity Impact High
Availability Impact High
SUSE Bugzilla entry: 1104809 [IN_PROGRESS]

SUSE Security Advisories:

List of released packages

Product(s) Fixed package version(s) References
openSUSE Leap 42.3
  • libykpiv-devel >= 0.1.6-7.3.1
  • libykpiv1 >= 0.1.6-7.3.1
  • libykpiv1-debuginfo >= 0.1.6-7.3.1
  • yubico-piv-tool >= 0.1.6-7.3.1
  • yubico-piv-tool-debuginfo >= 0.1.6-7.3.1
  • yubico-piv-tool-debugsource >= 0.1.6-7.3.1
Patchnames:
openSUSE-2018-969


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification.

Product(s) Source package State
SUSE Linux Enterprise Module for Basesystem 15 GA yubico-piv-tool In progress