Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
N/A
Vulnerability 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.
CVSS Information
N/A
Vulnerability Type
N/A
Vulnerability Title
Yubico-Piv 缓冲区错误漏洞
Vulnerability Description
Yubico-Piv是一款用于对YubiKey的身份卡(PIV)应用程序进行交互的工具。 Yubico-Piv 1.5.0版本中的lib/ykpiv.c文件的‘ykpiv_transfer_data()’函数存在缓冲区溢出漏洞,该漏洞源于程序缺少错误处理机制。攻击者可借助来自智能卡的恶意数据利用该漏洞执行任意代码。
CVSS Information
N/A
Vulnerability Type
N/A