RHSA-2021:1600MediumCVSS 6.4

Red Hat Security Advisory: opensc security, bug fix, and enhancement update

Published
May 18, 2021
Last Modified
November 6, 2026

🔗 CVE IDs covered (3)

📋 Description

CVE-2020-26570 — opensc: heap-based buffer overflow in sc_oberthur_read_file CVE-2020-26571 — opensc: stack-based buffer overflow in sc_pkcs15emu_gemsafeGPK_init CVE-2020-26572 — opensc: stack-based buffer overflow in tcos_decipher

🎯 Affected products17

  • Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-0:0.20.0-4.el8.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-0:0.20.0-4.el8.i686 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-0:0.20.0-4.el8.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-0:0.20.0-4.el8.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-0:0.20.0-4.el8.src as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-0:0.20.0-4.el8.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-debuginfo-0:0.20.0-4.el8.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-debuginfo-0:0.20.0-4.el8.i686 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-debuginfo-0:0.20.0-4.el8.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-debuginfo-0:0.20.0-4.el8.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-debuginfo-0:0.20.0-4.el8.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-debugsource-0:0.20.0-4.el8.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-debugsource-0:0.20.0-4.el8.i686 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-debugsource-0:0.20.0-4.el8.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-debugsource-0:0.20.0-4.el8.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 8)
  • opensc-debugsource-0:0.20.0-4.el8.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)

✅ Remediation

For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: This flaw can be mitigated in cases where you can use opensc without the Oberthur driver enabled. In such cases, the vulnerable driver can be disabled by specifying them in /etc/opensc.conf card_drivers field in allowlist fashion. One such example: ``` app default { card_drivers = cac, cac1, PIV-II; } ``` This would only enable the cac, cac1, and PIV-II smart card drivers, and all others would be disabled, including the Oberthur driver. With the Oberthur driver disabled, this flaw is mitigated. It is important to list all drivers that you need in the card_drivers field so that they are not disabled too. Workaround: This flaw can be mitigated in cases where you can use opensc without the gemsafeGPK driver enabled. In such cases, the vulnerable driver can be disabled by specifying them in /etc/opensc.conf card_drivers field in allowlist fashion. One such example: ``` app default { card_drivers = cac, cac1, PIV-II; } ``` This would only enable the cac, cac1, and PIV-II smart card drivers, and all others would be disabled, including the gemsafeGPK driver. With the gemsafeGPK driver disabled, this flaw is mitigated. It is important to list all drivers that you need in the card_drivers field so that they are not disabled too. Workaround: This flaw can be mitigated in cases where you can use opensc without the TCOS driver enabled. In such cases, the vulnerable driver can be disabled by specifying them in /etc/opensc.conf card_drivers field in allowlist fashion. One such example: ``` app default { card_drivers = cac, cac1, PIV-II; } ``` This would only enable the cac, cac1, and PIV-II smart card drivers, and all others would be disabled, including the TCOS driver. With the TCOS driver disabled, this flaw is mitigated. It is important to list all drivers that you need in the card_drivers field so that they are not disabled too.

🔗 References (11)