An issue was discovered in the _send_secure_msg() function of yubihsm-shell through 2.0.2. The function does not validate the embedded length field of a message received from the device. This could lead to an oversized memcpy() call that will crash the running process. This could be used by an attacker to cause a denial of service.
Source: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-24388
Reference (s):
- FEDORA:FEDORA-2020-8afd443d46
- URL: https://lists.fedoraproject.org/archives/list/[email protected]/message/Y77KQJW76M3PFOBFLBT6DLH2NWHYRNZO/
- https://blog.inhq.net/posts/yubico-libyubihsm-vuln/
- https://developers.yubico.com/yubihsm-shell/
- https://github.com/Yubico/yubihsm-shell

