Cloudanix VulnDB

CVE-2024-45619

Medium · 4.3

CVSS

4.3

EPSS

0.3%

Published

Sep 3, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in smart card software could let someone with physical access to a computer leak some information or cause problems by using a specially made card or device.

Exploitation
Physical Access
Attacker needs
Physical Access
Complexity
High
Impact
Data Exposure
Component
Library
Class
Information Disclosure
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability allows an attacker with physical access to a crafted USB device or smart card to cause the OpenSC library to access uninitialized or incorrectly handled buffer contents during APDU response processing, potentially leading to information disclosure or limited integrity/availability impacts.

Why it matters to the business

Organizations relying on smart card authentication may face risks of data leakage or system instability if an attacker gains physical access to insert a malicious device, though remote exploitation is not possible.

How an attack unfolds

An attacker crafts a USB device or smart card that responds to APDU commands with specially formatted data that partially fills buffers. This leads to the OpenSC PKCS#11 module or minidriver incorrectly accessing initialized parts of the buffer.

How to fix it

Update OpenSC to the fixed commit fe857cc4c68da4873071f168c9aaf9860040ff4e or later versions that address the buffer handling in APDU responses.

How to confirm the fix worked

Verify the installed OpenSC version includes the commit fe857cc4c68da4873071f168c9aaf9860040ff4e and test with known good smart cards.

Typical attack path

  1. Gain physical access to the target system
  2. Insert crafted USB/smart card
  3. Trigger APDU exchanges via OpenSC tools or applications
  4. Exploit buffer mishandling to access unintended data

How to detect it

Review system logs for unusual smart card interactions or errors in OpenSC during APDU processing; check for unexpected data access patterns in applications using PKCS#11.

What your security team should do

  • Apply the patch immediately if using OpenSC with smart cards
  • Restrict physical access to systems using smart card readers
  • Monitor for any physical security incidents

The record

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. When buffers are partially filled with data, initialized parts of the buffer can be incorrectly accessed.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 opensc 0 No fix
Debian:11 opensc 0 0.21.0-1+deb11u1
Debian:12 opensc 0 No fix
Debian:13 opensc 0 No fix
Mageia:9 opensc 0 0.25.0-1.1.mga9
SUSE:Linux Enterprise Micro 5.1 opensc 0 0.19.0-150100.3.31.1
SUSE:Linux Enterprise Micro 5.2 opensc 0 0.19.0-150100.3.31.1
SUSE:Linux Enterprise Micro 5.3 opensc 0 0.22.0-150400.3.12.1
SUSE:Linux Enterprise Micro 5.4 opensc 0 0.22.0-150400.3.12.1
SUSE:Linux Enterprise Micro 5.5 opensc 0 0.22.0-150400.3.12.1
SUSE:Linux Enterprise Module for Basesystem 15 SP5 opensc 0 0.22.0-150400.3.12.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 opensc 0 0.22.0-150600.11.3.1
SUSE:Linux Enterprise Server 12 SP5 opensc 0 0.13.0-3.31.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 opensc 0 0.13.0-3.31.1
Ubuntu:20.04:LTS opensc 0 No fix
Ubuntu:22.04:LTS opensc 0 No fix
Ubuntu:24.04:LTS opensc 0 No fix
Ubuntu:24.10 opensc 0 No fix
Ubuntu:Pro:16.04:LTS opensc 0 No fix
Ubuntu:Pro:18.04:LTS opensc 0 No fix
Ubuntu:Pro:22.04:LTS opensc 0 0.22.0-1ubuntu2+esm1
Ubuntu:Pro:24.04:LTS opensc 0 0.25.0~rc1-1ubuntu0.1~esm1
openSUSE:Leap 15.5 opensc 0 0.22.0-150400.3.12.1
openSUSE:Leap 15.6 opensc 0 0.22.0-150600.11.3.1
openSUSE:Leap Micro 5.5 opensc 0 0.22.0-150400.3.12.1
openSUSE:Tumbleweed opensc 0 0.25.1-2.1

Related vulnerabilities