Out-of-bounds read in OpenSC - CVE-2019-19479
Published: December 30, 2019
Vulnerability details
The vulnerability allows a local user to gain access to potentially sensitive information.
The vulnerability exists due to a boundary condition when parsing SETCOS file attribute in libopensc/card-setcos.c. A local user can pass specially crafted file to the application, trigger out-of-bounds read error and read contents of memory on the system.
Affected software
Arch Linux
Debian Linux
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
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 (Debian package)
opensc
opensc-debuginfo
opensc-debugsource
opensc (Red Hat package)
How to mitigate CVE-2019-19479
opensc (Alpine package) - update to 0.20.0-r0
opensc (Debian package) - addressed in versions 0.16.0-3+deb8u2, 0.16.0-3+deb9u2
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
- http://www.openwall.com/lists/oss-security/2019/12/29/1
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18693
- https://bugzilla.redhat.com/show_bug.cgi?id=1782521
- https://github.com/OpenSC/OpenSC/commit/c3f23b836e5a1766c36617fe1da30d22f7b63de2
- https://lists.debian.org/debian-lts-announce/2019/12/msg00031.html
- https://github.com/OpenSC/OpenSC/releases/tag/0.20.0
Related Security Bulletins
- Multiple vulnerabilities in OpenSC
- Arch Linux update for opensc
- Out-of-bounds read in opensc (Alpine package)
- Red Hat Enterprise Linux 8 update for opensc
- SUSE update for opensc
- SUSE update for opensc
- SUSE update for opensc
- Fedora 31 update for opensc
- Debian update for opensc
- Debian update for opensc