Search covers the description text, product and vendor names and weakness types (also partial words).
This vulnerability can be exploited with physical access to the device, without logging in, without any user interaction.
A successful attack has high impact: reading confidential data, modifying data, crashing the system or making it unavailable.
Weakness type: Buffer bounds violation.
After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.
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.
Weakness: CWE-119 – Buffer bounds violation, CWE-787 – Out-of-bounds write
| 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 |