Out-of-bounds read in OpenSC - CVE-2019-15945

 

Out-of-bounds read in OpenSC - CVE-2019-15945

Published: December 30, 2019


Vulnerability identifier: #VU23845
CSH Severity: Low
CVSS v4: 2.4 [CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-15945
CWE-ID: CWE-125
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to gain access to potentially sensitive information.

The vulnerability exists due to a boundary condition when processing ASN.1 Bitstring within the decode_bit_string() function in libopensc/asn1.c. A local user can pass specially crafted data to the application, trigger out-of-bounds read error and read contents of memory on the system.


Affected software

OpenSC
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
Fedora
opensc (Alpine package)
opensc
opensc-debuginfo
opensc-debugsource
opensc (Red Hat package)

How to mitigate CVE-2019-15945

Install updates from vendor's website.

OpenSC - update to 0.20.0
opensc (Alpine package) - update to 0.20.0-r0
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 (Red Hat package) - update to 0.20.0-2.el8
opensc - update to 0.20.0-3.fc31

External References

Related Security Bulletins