Stack-based buffer overflow - CVE-2020-26571

 

Stack-based buffer overflow - CVE-2020-26571

Published: October 6, 2020 / Updated: November 27, 2020


Vulnerability identifier: #VU48688
CSH Severity: Medium
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-26571
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in sc_pkcs15emu_gemsafeGPK_init. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Arch Linux
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
SUSE Linux Enterprise Server
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Server for SAP
openEuler
Fedora
opensc (Alpine package)
opensc (Red Hat package)
opensc
opensc-debuginfo
opensc-debugsource
opensc-help

How to mitigate CVE-2020-26571

Install update from vendor's website.

opensc (Alpine package) - update to 0.21.0-r0
opensc (Red Hat package) - update to 0.20.0-4.el8
opensc - addressed in versions 0.13.0-3.11.1, 0.18.0-150000.3.23.1, 0.19.0-3.7.1
opensc-debuginfo - addressed in versions 0.13.0-3.11.1, 0.18.0-150000.3.23.1, 0.19.0-3.7.1
opensc-debugsource - addressed in versions 0.13.0-3.11.1, 0.18.0-150000.3.23.1, 0.19.0-3.7.1
opensc - update to 0.20.0-6
opensc-debuginfo - update to 0.20.0-6
opensc-debugsource - update to 0.20.0-6
opensc-help - update to 0.20.0-6
opensc - update to 0.21.0-1.fc33

External References

Related Security Bulletins