CVE-2018-14779
Summary
| CVE | CVE-2018-14779 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2018-08-15 18:29:00 UTC |
| Updated | 2020-02-25 04:15:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-119 | CWE-787
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Yubico | Piv Manager | All | All | All | All |
| Application | Yubico | Piv Manager | 1.4.2 | All | All | All |
| Application | Yubico | Piv Manager | 1.4.2b | All | All | All |
| Application | Yubico | Piv Manager | 1.4.2c | All | All | All |
| Application | Yubico | Piv Manager | 1.4.2d | All | All | All |
| Application | Yubico | Piv Manager | 1.4.2e | All | All | All |
| Application | Yubico | Piv Manager | 1.4.2f | All | All | All |
| Application | Yubico | Piv Manager | 1.4.2g | All | All | All |
| Application | Yubico | Piv Manager | All | All | All | All |
| Application | Yubico | Piv Manager | 1.4.2b | All | All | All |
| Application | Yubico | Piv Manager | 1.4.2c | All | All | All |
| Application | Yubico | Piv Manager | 1.4.2d | All | All | All |
| Application | Yubico | Piv Manager | 1.4.2e | All | All | All |
| Application | Yubico | Piv Manager | 1.4.2f | All | All | All |
| Application | Yubico | Piv Manager | 1.4.2g | All | All | All |
| Application | Yubico | Piv Tool | All | All | All | All |
| Application | Yubico | Piv Tool | All | All | All | All |
| Application | Yubico | Smart Card Minidriver | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Security advisory YSA-2018-03 - Yubico | CONFIRM | www.yubico.com | Vendor Advisory |
| USN-4276-1: Yubico PIV Tool vulnerabilities | Ubuntu security notices | Ubuntu | UBUNTU | usn.ubuntu.com | |
| oss-security - X41 D-Sec GmbH Security Advisory X41-2018-001: Multiple Vulnerabilities in Yubico Piv | MLIST | www.openwall.com | Mailing List, Third Party Advisory |
| Advisory X41-2018-001: Multiple Vulnerabilities in Yubico-Piv | X41 D-SEC GmbH | MISC | www.x41-dsec.de | Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.