Skip to content
OpenAdvisories
Unscored CVE-2018-14780 EUVD-2018-6664GHSA-xwgg-25ph-4c8p

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 th…

Published Aug 15, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 yubico-piv-tool 1.6.1-1 —
Debian 13 yubico-piv-tool 1.6.1-1 —
Debian 12 yubico-piv-tool 1.6.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS yubico-piv-tool 1.4.2-2ubuntu0.1 USN-4276-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS yubico-piv-tool 1.0.3-1ubuntu0.1~esm1 USN-4846-1
ReleasePackageFixed inAdvisory
SLES 15 yubico-piv-tool 1.5.0-3.3.33 SUSE-SU-2019:1123-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed yubico-piv-tool 2.2.0-1.5 openSUSE-SU-2024:11537-1
openSUSE Leap 15.0 yubico-piv-tool 1.5.0-lp150.2.3.1 openSUSE-SU-2019:1341-1

Advisories 5

References