Summary
This update for opensc fixes the following issues:
Security issues fixed:
- CVE-2021-42780: Fixed use after return in insert_pin() (bsc#1192005).
- CVE-2021-42779: Fixed use after free in sc_file_valid() (bsc#1191992).
- CVE-2021-42781: Fixed multiple heap buffer overflows in pkcs15-oberthur.c (bsc#1192000).
- CVE-2021-42782: Stack buffer overflow issues in various places (bsc#1191957).
- CVE-2019-6502: Fixed a memory leak in sc_context_create() (bsc#1122756).
- CVE-2020-26570: Fixed a heap based buffer overflow in sc_oberthur_read_file (bsc#1177364).
- CVE-2020-26572: Prevent out of bounds write (bsc#1177378)
- CVE-2020-26571: gemsafe GPK smart card software driver stack-based buffer overflow (bsc#1177380)
- CVE-2019-15946: out-of-bounds access of an ASN.1 Octet string in asn1_decode_entry (bsc#1149747)
- CVE-2019-19479: incorrect read operation during parsing of a SETCOS file attribute (bsc#1158256)
- CVE-2019-15945: Fixed an out-of-bounds access of an ASN.1 Bitstring in decode_bit_string (bsc#1149746).
- CVE-2019-19481: Fixed an improper handling of buffer limits for CAC certificates (bsc#1158305).
- CVE-2019-20792: Fixed a double free in coolkey_free_private_data (bsc#1170809).
Non-security issues fixed:
- Fixes segmentation fault in 'pkcs11-tool.c'. (bsc#1114649)
Fixed packages 4
| Release | Package | Fixed in |
|---|---|---|
| SUSE · SLE HPC 15 Linux Enterprise High Performance Computing 15-ESPOS | opensc | 0.18.0-150000.3.23.1 |
| SUSE · SLE HPC 15 Linux Enterprise High Performance Computing 15-LTSS | opensc | 0.18.0-150000.3.23.1 |
| SUSE · SLES 15 Linux Enterprise Server 15-LTSS | opensc | 0.18.0-150000.3.23.1 |
| SUSE · SLES for SAP 15 Linux Enterprise Server for SAP Applications 15 | opensc | 0.18.0-150000.3.23.1 |
Vulnerabilities 13
-
Unscored —
OpenSC before 0.20.0-rc1 has an out-of-bounds access of an ASN.1 Bitstring in decode_bit_string in libopensc/asn1.c.
-
Unscored —
OpenSC before 0.20.0-rc1 has an out-of-bounds access of an ASN.1 Octet string in asn1_decode_entry in libopensc/asn1.c.
-
Unscored —
An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/card-setcos.c has an incorrec…
-
Unscored —
An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/card-cac1.c mishandles buffer…
-
Unscored —
OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolke…
-
Unscored —
sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.
-
Unscored —
The Oberthur smart card software driver in OpenSC before 0.21.0-rc1 has a heap-based buffer overflow in sc_oberthur_rea…
-
Unscored —
The gemsafe GPK smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in sc_pkcs15em…
-
Unscored —
The TCOS smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in tcos_decipher.
-
Unscored —
A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.
-
Unscored —
A use after return issue was found in Opensc before version 0.22.0 in insert_pin function that could potentially crash …
-
Unscored —
Heap buffer overflow issues were found in Opensc before version 0.22.0 in pkcs15-oberthur.c that could potentially cras…
-
Unscored —
Stack buffer overflow issues were found in Opensc before version 0.22.0 in various places that could potentially crash …
References
-
report
https://bugzilla.suse.com/1114649
-
report
https://bugzilla.suse.com/1122756
-
report
https://bugzilla.suse.com/1149746
-
report
https://bugzilla.suse.com/1149747
-
report
https://bugzilla.suse.com/1158256
-
report
https://bugzilla.suse.com/1158305
-
report
https://bugzilla.suse.com/1170809
-
report
https://bugzilla.suse.com/1177364
-
report
https://bugzilla.suse.com/1177378
-
report
https://bugzilla.suse.com/1177380
-
report
https://bugzilla.suse.com/1191957
-
report
https://bugzilla.suse.com/1191992
-
report
https://bugzilla.suse.com/1192000
-
report
https://bugzilla.suse.com/1192005
-
web
https://www.suse.com/security/cve/CVE-2019-15945
-
web
https://www.suse.com/security/cve/CVE-2019-15946
-
web
https://www.suse.com/security/cve/CVE-2019-19479
-
web
https://www.suse.com/security/cve/CVE-2019-19481
-
web
https://www.suse.com/security/cve/CVE-2019-20792
-
web
https://www.suse.com/security/cve/CVE-2019-6502
-
web
https://www.suse.com/security/cve/CVE-2020-26570
-
web
https://www.suse.com/security/cve/CVE-2020-26571
-
web
https://www.suse.com/security/cve/CVE-2020-26572
-
web
https://www.suse.com/security/cve/CVE-2021-42779
-
web
https://www.suse.com/security/cve/CVE-2021-42780
-
web
https://www.suse.com/security/cve/CVE-2021-42781
-
web
https://www.suse.com/security/cve/CVE-2021-42782