Bug 2309285 (CVE-2024-45615)

Summary: CVE-2024-45615 libopensc: pkcs15init: Usage of uninitialized values in libopensc and pkcs15init
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A vulnerability was found in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK. The problem is missing initialization of variables expected to be initialized (as arguments to other functions, etc.).
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:

Description OSIDB Bzimport 2024-09-02 18:36:42 UTC
The reported issues are part of the libopensc library, which makes them
accessible from OpenSC tools, PKCS#11 module, minidriver, or CTK. One is
only relevant to handling the card enrollment using the pkcs15-init tool.
The attack requires a crafted USB device or smart card that would present
the system with specially crafted responses to the APDUs, so they are
considered high complexity and low severity.

The problem is missing initialization of variables expected to be
initialized (as arguments to other functions, etc.).
The uninitialized variables were reflected in the following functions:

- cac_read_file
- piv_get_challenge
- sc_asn1_decode_object_id
- sc_pkcs15emu_sc_hsm_decode_cvc
- do_init_app, sc_pkcs15init_create_pin

Originally reported by Matteo Marini (Sapienza University of Rome)