MGASA-2020-0026 - Updated opensc packages fix security vulnerability

Publication date: 07 Jan 2020
URL: https://advisories.mageia.org/MGASA-2020-0026.html
Type: security
Affected Mageia releases: 7
CVE: CVE-2019-6502,
     CVE-2019-15945,
     CVE-2019-15946,
     CVE-2019-19479,
     CVE-2019-19480,
     CVE-2019-19481

Updated opensc packages fix security vulnerabilities:

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory
leak, as demonstrated by a call from eidenv (CVE-2019-6502).

OpenSC before 0.20.0-rc1 has an out-of-bounds access of an ASN.1 Bitstring
in decode_bit_string in libopensc/asn1.c (CVE-2019-15945).

OpenSC before 0.20.0-rc1 has an out-of-bounds access of an ASN.1 Octet
string in asn1_decode_entry in libopensc/asn1.c (CVE-2019-15946).

An issue was discovered in OpenSC through 0.19.0 and 0.20.x through
0.20.0-rc3. libopensc/card-setcos.c has an incorrect read operation during
parsing of a SETCOS file attribute (CVE-2019-19479).

An issue was discovered in OpenSC through 0.19.0 and 0.20.x through
0.20.0-rc3. libopensc/pkcs15-prkey.c has an incorrect free operation in
sc_pkcs15_decode_prkdf_entry (CVE-2019-19480).

An issue was discovered in OpenSC through 0.19.0 and 0.20.x through
0.20.0-rc3. libopensc/card-cac1.c mishandles buffer limits for CAC
certificates (CVE-2019-19481).

The opensc package has been updated to version 0.20.0, which has fixes for
these issues and other improvements.

References:
- https://bugs.mageia.org/show_bug.cgi?id=25975
- https://github.com/OpenSC/OpenSC/releases/tag/0.20.0
- https://www.openwall.com/lists/oss-security/2019/12/29/1
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6502
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-15945
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-15946
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19479
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19480
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19481

SRPMS:
- 7/core/opensc-0.20.0-1.mga7