Bug 2309290 (CVE-2024-45616) - CVE-2024-45616 libopensc: Uninitialized values after incorrect check or usage of APDU response values in libopensc
Summary: CVE-2024-45616 libopensc: Uninitialized values after incorrect check or usage...
Keywords:
Status: NEW
Alias: CVE-2024-45616
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-09-02 18:38 UTC by OSIDB Bzimport
Modified: 2024-09-04 17:38 UTC (History)
0 users

Fixed In Version:
Doc Type: ---
Doc Text:
A vulnerability was found in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK. An attacker could use a crafted USB Device or Smart Card, which would present the system with a specially crafted response to APDUs. The following problems were caused by insufficient control of the response APDU buffer and its length when communicating with the card.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-09-02 18:38:16 UTC
The reported issues are part of the libopensc library, which makes them
accessible from OpenSC tools, PKCS#11 module, minidriver, or CTK.
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 following problems were caused by insufficient control of the response
APDU buffer and its length when communicating with the card.
The uninitialized variables were reflected in these functions:

- cardos_match_card
- _itoa_word, called from sc_hex_dump
- sc_bin_to_hex
- strcmp, called from sc_asn1_read_tag
- asn1_decode
- process_fcp
- dnie_process_fci
- iso7816_process_fci
- sc_pkcs15init_parse_info, msc_extract_rsa_public_key
- sc_bin_to_hex
- gids_read_masterfile
- sc_bin_to_hex

Originally reported by Matteo Marini (Sapienza University of Rome)


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