Bug 1890205 (CVE-2020-24388)

Summary: CVE-2020-24388 yubihsm-shell: _send_secure_msg() does not validate the embedded length field of a message which could result in DoS
Product: [Other] Security Response Reporter: Michael Kaplan <mkaplan>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jjelen
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-21 20:21:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1890206    
Bug Blocks:    

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.