Summary
This update for opensc fixes the following issues
- CVE-2025-49010: stack-buffer-overflow via crafted smart card or USB device responses (bsc#1261214).
- CVE-2025-66037: crafted input can cause an out-of-bounds read (bsc#1261218).
- CVE-2025-66038: improper compact-TLV length validation can lead to crash or unexpected behavior (bsc#1261219).
- CVE-2025-66215: crafted smart card or USB device can cause a stack-buffer-overflow write (bsc#1261220).
- CVE-2026-10275: global buffer overflow during key pair generation tests due to missing input validation (bsc#1267246).
- CVE-2026-40528: stack and heap buffer overrun in the `do_key_value()` function due to missing length check allows for
memory corruption via a crafted profile configuration file (bsc#1266963).
Fixed packages 3
| Release | Package | Fixed in |
|---|---|---|
| SUSE · SLES 15 SP7 Linux Enterprise Module for Basesystem 15 SP7 | opensc | 0.22.0-150600.11.11.1 |
| SUSE · SLES 15 SP6 Linux Enterprise Server 15 SP6-LTSS | opensc | 0.22.0-150600.11.11.1 |
| SUSE · SLES for SAP 15 SP6 Linux Enterprise Server for SAP Applications 15 SP6 | opensc | 0.22.0-150600.11.11.1 |
Vulnerabilities 6
-
Medium 5.0
OpenSC pkcs11-tool Key Generation pkcs11-tool.c test_kpgen_certwrite buffer overflow
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…
-
Low 3.9
OpenSC: Out of Bounds vulnerability
OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, feeding a crafted input to the fuzz_pkcs15_reader harness causes OpenSC to perform an out-of-bounds heap read in the X.509/SPKI handling path. Specifically, sc_pkcs15_pubkey_fr…
-
Low 3.9
OpenSC: `sc_compacttlv_find_tag` can return out-of-bounds pointers
OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, sc_compacttlv_find_tag searches a compact-TLV buffer for a given tag. In compact-TLV, a single byte encodes the tag (high nibble) and value length (low nibble). With a 1-byte b…
-
Low 3.8
OpenSC: Stack-buffer-overflow WRITE in GET RESPONSE
OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, an attacker with physical access to the computer at the time user or administrator uses a token can cause a stack-buffer-overflow write in GET RESPONSE. The attack requires cra…
-
Low 3.8
OpenSC: Stack-buffer-overflow WRITE in card-oberthur
OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, an attacker with physical access to the computer at the time user or administrator uses a token can cause a stack-buffer-overflow WRITE in card-oberthur. The attack requires cr…
-
Low 3.8
OpenSC < 0.27.0 Buffer Overrun in do_key_value() via profile.c
OpenSC before 0.27.0, fixed in commit 0358817, contains a stack and heap buffer overrun vulnerability in the do_key_value() function in src/pkcs15init/profile.c that allows attackers to corrupt memory by supplying a crafted profile configuration file. During …
References
-
report
https://bugzilla.suse.com/1261214
-
report
https://bugzilla.suse.com/1261218
-
report
https://bugzilla.suse.com/1261219
-
report
https://bugzilla.suse.com/1261220
-
report
https://bugzilla.suse.com/1266963
-
report
https://bugzilla.suse.com/1267246
-
web
https://www.suse.com/security/cve/CVE-2025-49010
-
web
https://www.suse.com/security/cve/CVE-2025-66037
-
web
https://www.suse.com/security/cve/CVE-2025-66038
-
web
https://www.suse.com/security/cve/CVE-2025-66215
-
web
https://www.suse.com/security/cve/CVE-2026-10275
-
web
https://www.suse.com/security/cve/CVE-2026-40528