Buffer overflow in OpenSC - CVE-2019-19481
Published: December 30, 2019
Vulnerability details
The vulnerability allows a local user to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error when processing CAC certificates in libopensc/card-cac1.c. A local user can pass specially crafted certificate to the application, trigger memory corruption 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 High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
Fedora
opensc (Alpine package)
opensc
opensc-debuginfo
opensc-debugsource
opensc (Red Hat package)
How to mitigate CVE-2019-19481
opensc (Alpine package) - update to 0.20.0-r0
opensc - update to 0.18.0-150000.3.23.1
opensc-debuginfo - update to 0.18.0-150000.3.23.1
opensc-debugsource - update to 0.18.0-150000.3.23.1
opensc (Red Hat package) - update to 0.20.0-2.el8
opensc - update to 0.20.0-3.fc31