CVE-2018-14779

libykpiv1: A buffer overflow issue was discovered in the Yubico-Piv 1.5.0 smartcard driver

CVE-2018-14779 is fixed in 3 products on 1 platform, first by libykpiv1 1.4.2-2ubuntu0.1, released August 15, 2018. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
n/a
High
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0049
42nd percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
libykpiv1 · Ubuntu 18.04.6 LTS (bionic) 1.4.2-2ubuntu0.1 libykpiv1 1.4.2-2ubuntu0.1 Aug 15, 2018
ykcs11 · Ubuntu 18.04.6 LTS (bionic) 1.4.2-2ubuntu0.1 ykcs11 1.4.2-2ubuntu0.1 Aug 15, 2018
yubico-piv-tool · Ubuntu 18.04.6 LTS (bionic) 1.4.2-2ubuntu0.1 yubico-piv-tool 1.4.2-2ubuntu0.1 Aug 15, 2018

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.