CVE-2018-14780
Last modified
CVE-2018-14780 is a vulnerability of currently unknown severity. An out-of-bounds read 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_fetch_object()`: {% highlight c %} if(sw == SW_SUCCESS) { size_t outlen; int offs = _ykpiv_get_length(data + 1, &outlen); if(offs == 0) { return YKPIV_SIZE_ERROR; } memmove(data, data + 1 + offs, outlen); *len = outlen; return YKPIV_OK; } else { return YKPIV_GENERIC_ERROR; } {% endhighlight %} -- in the end, a `memmove()` occurs with a length retrieved from APDU data. EPSS estimates a 0.45% chance of exploitation in the next 30 days.
Description
An out-of-bounds read 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_fetch_object()`: {% highlight c %} if(sw == SW_SUCCESS) { size_t outlen; int offs = _ykpiv_get_length(data + 1, &outlen); if(offs == 0) { return YKPIV_SIZE_ERROR; } memmove(data, data + 1 + offs, outlen); *len = outlen; return YKPIV_OK; } else { return YKPIV_GENERIC_ERROR; } {% endhighlight %} -- in the end, a `memmove()` occurs with a length retrieved from APDU data. This length is not checked for whether it is outside of the APDU data retrieved. Therefore the `memmove()` could copy bytes behind the allocated data buffer into this buffer.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Yubico | Piv Manager | < 1.4.2 |
| Yubico | Piv Manager | 1.4.2 |
| Yubico | Piv Manager | 1.4.2b |
| Yubico | Piv Manager | 1.4.2c |
| Yubico | Piv Manager | 1.4.2d |
| Yubico | Piv Manager | 1.4.2e |
| Yubico | Piv Manager | 1.4.2f |
| Yubico | Piv Manager | 1.4.2g |
| Yubico | Piv Tool | < 1.6.0 |
| Yubico | Smart Card Minidriver | <= 3.7.3.160 |
References
- http://www.openwall.com/lists/oss-security/2018/08/14/2Mailing List, Third Party Advisory
- https://www.x41-dsec.de/lab/advisories/x41-2018-001-Yubico-Piv/Third Party Advisory
- http://www.openwall.com/lists/oss-security/2018/08/14/2Mailing List, Third Party Advisory
- https://www.x41-dsec.de/lab/advisories/x41-2018-001-Yubico-Piv/Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2018-14780?
How severe is CVE-2018-14780?
How do I fix CVE-2018-14780?
Are you affected by CVE-2018-14780?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
