Bug 2211088 (CVE-2023-2977) - CVE-2023-2977 opensc: buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package
Summary: CVE-2023-2977 opensc: buffer overrun vulnerability in pkcs15 cardos_have_veri...
Keywords:
Status: NEW
Alias: CVE-2023-2977
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2211090 2211091 2211092 2211093
Blocks: 2211089
TreeView+ depends on / blocked
 
Reported: 2023-05-30 13:28 UTC by Sandipan Roy
Modified: 2023-11-14 15:22 UTC (History)
1 user (show)

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.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:6587 0 None None None 2023-11-07 08:19:48 UTC
Red Hat Product Errata RHSA-2023:7160 0 None None None 2023-11-14 15:22:08 UTC

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


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