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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- MSRC Security Update Guide vendor-advisory
- github.com issue-tracking patch
- github.com patch
- www.vulncheck.com third-party-advisory
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2483280 issue-tracking
- www.cve.org
- nvd.nist.gov
- ENISA EUVD EUVD-2026-33315 third-party-advisory