Description
A flaw has been found in OpenSC up to 0.27.1. The impacted element is the function setcos_construct_fci_44 of the file src/libopensc/card-setcos.c. Executing a manipulation of the argument type_attr can lead to stack-based buffer overflow. The attack can be launched remotely. This patch is called ad730304052937c32b4eb489a06835ac6123632c. It is best practice to apply a patch to resolve this issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | OpenSC | 0.27.0, 0.27.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-3 | — |
| 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 | — |
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 | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | opensc | 0.27.1-3 | — |
Advisories 1
- WID-SEC-2026-3682 OpenSC: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Sep 30, 2026
References
- VDB-412343 | OpenSC card-setcos.c setcos_construct_fci_44 stack-based overflow vdb-entry technical-description
- VDB-412343 | CTI Indicators (IOB, IOC, IOA) signature permissions-required
- CVE-2026-103531 | CVE Analysis and Report third-party-advisory
- Submit #956910 | OpenSC >= 0.12.2 up to and including 0.27.1 (latest release, unfixed; fix approved in PR #3812, pending merge) Buffer Overflow (stack, CWE-121) third-party-advisory
- https://github.com/OpenSC/OpenSC/pull/3812 issue-tracking patch
- https://github.com/OpenSC/OpenSC/commit/ad730304052937c32b4eb489a06835ac6123632c patch
- https://github.com/OpenSC/OpenSC/ product