Bug 1890205 (CVE-2020-24388) - CVE-2020-24388 yubihsm-shell: _send_secure_msg() does not validate the embedded length field of a message which could result in DoS
Summary: CVE-2020-24388 yubihsm-shell: _send_secure_msg() does not validate the embed...
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2020-24388
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1890206
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-21 16:55 UTC by Michael Kaplan
Modified: 2020-10-21 20:21 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-21 20:21:18 UTC
Embargoed:


Attachments (Terms of Use)

Description Michael Kaplan 2020-10-21 16:55:24 UTC
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.

References:

https://blog.inhq.net/posts/yubico-libyubihsm-vuln/
https://developers.yubico.com/yubihsm-shell/
https://github.com/Yubico/yubihsm-shell
https://www.yubico.com/support/security-advisories/ysa-2020-06/

Comment 1 Michael Kaplan 2020-10-21 16:55:41 UTC
Created yubihsm-shell tracking bugs for this issue:

Affects: fedora-all [bug 1890206]

Comment 2 Product Security DevOps Team 2020-10-21 20:21:18 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


Note You need to log in before you can comment on or make changes to this bug.