Buffer overflow in OpenSC - CVE-2018-16421
Published: August 8, 2019
Vulnerability details
The vulnerability allows a local attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error when handling responses from a CAC Card in cac_get_serial_nr_from_CUID in libopensc/card-cac.c. A local attacker can create a specially crafted smartcards, 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
opensc (Alpine package)
opensc
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for Scientific Computing
Opensuse
Fedora
How to mitigate CVE-2018-16421
opensc (Alpine package) - update to 0.19.0-r0
opensc - addressed in versions 0.19.0-1.fc28, 0.19.0-1.fc29