Skip to content

CVE-2026-40510 OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c

LowCVSS 1.0 EPSS 0.29%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
Red Hat

Description

OpenSC before 0.27.0-rc1, fixed in commit 3f24f0b, contains a stack buffer overflow vulnerability in piv_process_history() in src/libopensc/card-piv.c that allows physically present attackers to trigger memory corruption by presenting a crafted PIV smart card or USB device returning a URL field longer than 118 bytes in the Key History Object ASN.1 response.

Upgrade path

7 packages: 2 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
azure linux opensc(Azure Linux 3.0) All versions No fix listed No fix yet
redhat/opensc(Red Hat enterprise_linux 10) All versions No fix listed No fix yet
redhat/opensc(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
redhat/opensc(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/opensc(Red Hat rhel_els 7) All versions No fix listed No fix yet
opensc < 0.27.0-rc1; < 3f24f0b48a481a8cf2e46059d8238a283ddc1c13 0.27.0-rc1, 3f24f0b48a481a8cf2e46059d8238a283ddc1c13 Fixed
opensc project opensc < 0.27.0 0.27.0 Fixed

Affected products

ProductAffected versionsFixed in
opensc < 0.27.0-rc1 0.27.0-rc1
opensc < 3f24f0b48a481a8cf2e46059d8238a283ddc1c13 3f24f0b48a481a8cf2e46059d8238a283ddc1c13
redhat/opensc(Red Hat:enterprise_linux:10) All versions No fix listed
redhat/opensc(Red Hat:rhel_els:7) All versions No fix listed
redhat/opensc(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/opensc(Red Hat:enterprise_linux:9) All versions No fix listed
opensc project opensc < 0.27.0 0.27.0
azure linux opensc(Azure Linux:3.0) All versions No fix listed

References