Bug 2211088 (CVE-2023-2977)

Summary: CVE-2023-2977 opensc: buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package
Product: [Other] Security Response Reporter: Sandipan Roy <saroy>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
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:
A vulnerability was found in OpenSC. This issue causes a buffer overrun in the pkcs15 cardos_have_verifyrc_package. This flaw allows an attacker to supply a smart card package with a malformed ASN1 context. The cardos_have_verifyrc_package function scans the ASN1 buffer for two tags, where the remaining length is wrongly calculated due to a moved starting pointer, leading to a possible heap-based buffer out-of-bounds read. In cases where ASN is enabled while compiling, this problem causes a crash, and further information leaks or more damage is likely.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2211090, 2211091, 2211092, 2211093    
Bug Blocks: 2211089    

Description Sandipan Roy 2023-05-30 13:28:46 UTC
Buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package
https://github.com/OpenSC/OpenSC/issues/2785

Comment 1 Sandipan Roy 2023-05-30 13:32:58 UTC
Created opensc tracking bugs for this issue:

Affects: fedora-37 [bug 2211091]
Affects: fedora-38 [bug 2211092]

Comment 6 errata-xmlrpc 2023-11-07 08:19:47 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:6587 https://access.redhat.com/errata/RHSA-2023:6587

Comment 7 errata-xmlrpc 2023-11-14 15:22:07 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:7160 https://access.redhat.com/errata/RHSA-2023:7160