Bug 2309289 (CVE-2024-45620) - CVE-2024-45620 libopensc: Incorrect handling of the length of buffers or files in pkcs15init
Summary: CVE-2024-45620 libopensc: Incorrect handling of the length of buffers or file...
Keywords:
Status: NEW
Alias: CVE-2024-45620
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:36 UTC by OSIDB Bzimport
Modified: 2024-09-03 20:45 UTC (History)
0 users

Fixed In Version:
Doc Type: ---
Doc Text:
A vulnerability was found in the pkcs15-init tool in OpenSC. An attacker could use a crafted USB Device or Smart Card, which would present the system with a specially crafted response to APDUs. When buffers are partially filled with data, initialized parts of the buffer can be incorrectly accessed.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-09-02 18:36:46 UTC
The reported issues are part of the card enrollment process 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.

When buffers are partially filled with data, uninitialized parts of the
buffer can be incorrectly accessed.
The uninitialized variables were reflected in the following functions:

- starcos_write_pukey
- iasecc_sdo_parse
- setcos_generate_key
- sc_hsm_determine_free_id

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.