Advisory

DEBIAN-CVE-2018-14780

Also known as: CVE-2018-14780

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 4.6, vector CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2018-08-15 18:29 UTC
Modified
2026-10-23 18:03 UTC

Affected packages and fixes

yubico-piv-tool

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 1.6.1-1 (ecosystem)

Fixed versions

1.6.1-1

Fix

  • Fixed version 1.6.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

yubico-piv-tool

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 1.6.1-1 (ecosystem)

Fixed versions

1.6.1-1

Fix

  • Fixed version 1.6.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

yubico-piv-tool

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 1.6.1-1 (ecosystem)

Fixed versions

1.6.1-1

Fix

  • Fixed version 1.6.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences