Description
A flaw has been found in OpenSC up to 0.26.1. This affects the function test_kpgen_certwrite of the file src/tools/pkcs11-tool.c of the component pkcs11-tool Key Generation Module. This manipulation causes buffer overflow. The attack is possible to be carried out remotely. The complexity of an attack is rather high. It is indicated that the exploitability is difficult. The exploit has been published and may be used. Patch name: 814f745b3b6d100295f65f1935edd33d520d33ab. It is recommended to apply a patch to fix this issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | OpenSC | 0.26.0, 0.26.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | opensc | 0.27.1-2 | — |
| Debian 13 | opensc | No fix yet | — |
| Debian 12 | opensc | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | opensc | No fix yet | — |
| Ubuntu 26.04 LTS | opensc | No fix yet | — |
| Ubuntu 25.10 | opensc | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | opensc | No fix yet | — |
| Ubuntu Pro 22.04 LTS | opensc | No fix yet | — |
| Ubuntu Pro 20.04 LTS | opensc | No fix yet | — |
| Ubuntu Pro 18.04 LTS | opensc | No fix yet | — |
| Ubuntu Pro 16.04 LTS | opensc | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | opensc | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SLES 15 SP6 | opensc | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SLES 15 SP5 | opensc | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SLES 15 SP4 | opensc | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SLES 12 SP5 | opensc | 0.13.0-3.36.1 | SUSE-SU-2026:2678-1 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP6 | opensc | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SLES for SAP 15 SP5 | opensc | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SLES for SAP 15 SP4 | opensc | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SLE Micro 6.1 | opensc | 0.24.0-slfo.1.1_4.1 | SUSE-SU-2026:22139-1 |
| SLE Micro 6.0 | opensc | 0.24.0-6.1 | SUSE-SU-2026:22103-1 |
| SLE Micro 5.5 | opensc | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SLE Micro 5.4 | opensc | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SLE Micro 5.3 | opensc | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SLE HPC 15 SP5 | opensc | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SLE HPC 15 SP4 | opensc | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | opensc | 0.27.1-2.1 | openSUSE-SU-2026:11022-1 |
| openSUSE Leap 16.0 | opensc | 0.26.1-160000.5.1 | openSUSE-SU-2026:21873-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | opensc | 0.24.0-1.amzn2023.0.5 | ALAS2023-2026-1898 |
| Amazon Linux 2 | opensc | 0.19.0-6.amzn2.0.3 | ALAS2-2026-3492 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | opensc | 0.27.1-2 | — |
Advisories 10
- openSUSE-SU-2026:21873-1 Security update for opensc SUSE / openSUSE Security Updates · Sep 25, 2026
- WID-SEC-2026-1769 OpenSC: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Sep 24, 2026
- ALAS2-2026-3492 Moderate: opensc security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jul 7, 2026
- ALAS2023-2026-1898 Moderate: opensc security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jul 7, 2026
- SUSE-SU-2026:2697-1 Security update for opensc SUSE / openSUSE Security Updates · Jul 1, 2026
- SUSE-SU-2026:2678-1 Security update for opensc SUSE / openSUSE Security Updates · Jun 30, 2026
- SUSE-SU-2026:2657-1 Security update for opensc SUSE / openSUSE Security Updates · Jun 27, 2026
- SUSE-SU-2026:22139-1 Security update for opensc SUSE / openSUSE Security Updates · Jun 18, 2026
- SUSE-SU-2026:22103-1 Security update for opensc SUSE / openSUSE Security Updates · Jun 17, 2026
- openSUSE-SU-2026:11022-1 opensc-0.27.1-2.1 on GA media SUSE / openSUSE Security Updates · Jun 14, 2026
References
- VDB-367568 | OpenSC pkcs11-tool Key Generation pkcs11-tool.c test_kpgen_certwrite buffer overflow vdb-entry technical-description
- VDB-367568 | CTI Indicators (IOB, IOC, IOA) signature permissions-required
- CVE-2026-10275 | CVE Analysis and Report third-party-advisory
- Submit #825403 | OpenSC OpenSC 0.26.1 and earlier Buffer Overflow third-party-advisory
- https://github.com/OpenSC/OpenSC/issues/3682 issue-tracking
- https://github.com/OpenSC/OpenSC/pull/3684 issue-tracking patch
- https://pan.baidu.com/s/1nrZPKDz2eAcCpsaFiIRlrg exploit
- https://github.com/OpenSC/OpenSC/commit/814f745b3b6d100295f65f1935edd33d520d33ab patch
- https://github.com/OpenSC/OpenSC/ product