-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2019.2978
             opensc security, bug fix, and enhancement update
                               8 August 2019

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           opensc
Publisher:         Red Hat
Operating System:  Red Hat Enterprise Linux Server 7
                   Red Hat Enterprise Linux Server 8
Impact/Access:     Execute Arbitrary Code/Commands -- Console/Physical
                   Denial of Service               -- Console/Physical
Resolution:        Patch/Upgrade
CVE Names:         CVE-2018-16427 CVE-2018-16426 CVE-2018-16423
                   CVE-2018-16422 CVE-2018-16421 CVE-2018-16420
                   CVE-2018-16419 CVE-2018-16418 CVE-2018-16393
                   CVE-2018-16392 CVE-2018-16391 

Reference:         ESB-2018.3470.2

Original Bulletin: 
   https://access.redhat.com/errata/RHSA-2019:2154

- --------------------------BEGIN INCLUDED TEXT--------------------

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

=====================================================================
                   Red Hat Security Advisory

Synopsis:          Moderate: opensc security, bug fix, and enhancement update
Advisory ID:       RHSA-2019:2154-01
Product:           Red Hat Enterprise Linux
Advisory URL:      https://access.redhat.com/errata/RHSA-2019:2154
Issue date:        2019-08-06
CVE Names:         CVE-2018-16391 CVE-2018-16392 CVE-2018-16393 
                   CVE-2018-16418 CVE-2018-16419 CVE-2018-16420 
                   CVE-2018-16421 CVE-2018-16422 CVE-2018-16423 
                   CVE-2018-16426 CVE-2018-16427 
=====================================================================

1. Summary:

An update for opensc is now available for Red Hat Enterprise Linux 7.

Red Hat Product Security has rated this update as having a security impact
of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which
gives a detailed severity rating, is available for each vulnerability from
the CVE link(s) in the References section.

2. Relevant releases/architectures:

Red Hat Enterprise Linux Client (v. 7) - x86_64
Red Hat Enterprise Linux ComputeNode Optional (v. 7) - x86_64
Red Hat Enterprise Linux Server (v. 7) - ppc64, ppc64le, x86_64
Red Hat Enterprise Linux Workstation (v. 7) - x86_64

3. Description:

The OpenSC set of libraries and utilities provides support for working with
smart cards. OpenSC focuses on cards that support cryptographic operations
and enables their use for authentication, mail encryption, or digital
signatures.

The following packages have been upgraded to a later upstream version:
opensc (0.19.0). (BZ#1656791)

Security Fix(es):

* opensc: Buffer overflows handling responses from Muscle Cards in
card-muscle.c:muscle_list_files() (CVE-2018-16391)

* opensc: Buffer overflows handling responses from TCOS Cards in
card-tcos.c:tcos_select_file() (CVE-2018-16392)

* opensc: Buffer overflows handling responses from Gemsafe V1 Smartcards in
pkcs15-gemsafeV1.c:gemsafe_get_cert_len() (CVE-2018-16393)

* opensc: Buffer overflow handling string concatention in
tools/util.c:util_acl_to_str() (CVE-2018-16418)

* opensc: Buffer overflow handling responses from Cryptoflex cards in
cryptoflex-tool.c:read_public_key() (CVE-2018-16419)

* opensc: Buffer overflows handling responses from ePass 2003 Cards in
card-epass2003.c:decrypt_response() (CVE-2018-16420)

* opensc: Buffer overflows handling responses from CAC Cards in
card-cac.c:cac_get_serial_nr_from_CUID() (CVE-2018-16421)

* opensc: Buffer overflow handling responses from esteid cards in
pkcs15-esteid.c:sc_pkcs15emu_esteid_init() (CVE-2018-16422)

* opensc: Double free handling responses from smartcards in
libopensc/sc.c:sc_file_set_sec_attr() (CVE-2018-16423)

* opensc: Out of bounds reads handling responses from smartcards
(CVE-2018-16427)

* opensc: Infinite recusrion handling responses from IAS-ECC cards in
card-iasecc.c:iasecc_select_file() (CVE-2018-16426)

For more details about the security issue(s), including the impact, a CVSS
score, acknowledgments, and other related information, refer to the CVE
page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the Red Hat
Enterprise Linux 7.7 Release Notes linked from the References section.

4. Solution:

For details on how to apply this update, which includes the changes
described in this advisory, refer to:

https://access.redhat.com/articles/11258

5. Bugs fixed (https://bugzilla.redhat.com/):

1627998 - CVE-2018-16391 opensc: Buffer overflows handling responses from Muscle Cards in card-muscle.c:muscle_list_files()
1628002 - CVE-2018-16392 opensc: Buffer overflows handling responses from TCOS Cards in card-tcos.c:tcos_select_file()
1628006 - CVE-2018-16393 opensc: Buffer overflows handling responses from Gemsafe V1 Smartcards in pkcs15-gemsafeV1.c:gemsafe_get_cert_len()
1628010 - CVE-2018-16418 opensc: Buffer overflow handling string concatention in tools/util.c:util_acl_to_str()
1628013 - CVE-2018-16419 opensc: Buffer overflow handling responses from Cryptoflex cards in cryptoflex-tool.c:read_public_key()
1628016 - CVE-2018-16422 opensc: Buffer overflow handling responses from esteid cards in pkcs15-esteid.c:sc_pkcs15emu_esteid_init()
1628020 - CVE-2018-16423 opensc: Double free handling responses from smartcards in libopensc/sc.c:sc_file_set_sec_attr()
1628026 - CVE-2018-16420 opensc: Buffer overflows handling responses from ePass 2003 Cards in card-epass2003.c:decrypt_response()
1628034 - CVE-2018-16421 opensc: Buffer overflows handling responses from CAC Cards in card-cac.c:cac_get_serial_nr_from_CUID()
1628044 - CVE-2018-16426 opensc: Infinite recusrion handling responses from IAS-ECC cards in card-iasecc.c:iasecc_select_file()
1628052 - CVE-2018-16427 opensc: Out of bounds reads handling responses from smartcards
1656791 - Rebase to latest OpenSC 0.19.0
1672898 - CKR_KEY_TYPE_INCONSISTENT while doing ssh using sssd smart card

6. Package List:

Red Hat Enterprise Linux Client (v. 7):

Source:
opensc-0.19.0-3.el7.src.rpm

x86_64:
opensc-0.19.0-3.el7.i686.rpm
opensc-0.19.0-3.el7.x86_64.rpm
opensc-debuginfo-0.19.0-3.el7.i686.rpm
opensc-debuginfo-0.19.0-3.el7.x86_64.rpm

Red Hat Enterprise Linux ComputeNode Optional (v. 7):

Source:
opensc-0.19.0-3.el7.src.rpm

x86_64:
opensc-0.19.0-3.el7.i686.rpm
opensc-0.19.0-3.el7.x86_64.rpm
opensc-debuginfo-0.19.0-3.el7.i686.rpm
opensc-debuginfo-0.19.0-3.el7.x86_64.rpm

Red Hat Enterprise Linux Server (v. 7):

Source:
opensc-0.19.0-3.el7.src.rpm

ppc64:
opensc-0.19.0-3.el7.ppc.rpm
opensc-0.19.0-3.el7.ppc64.rpm
opensc-debuginfo-0.19.0-3.el7.ppc.rpm
opensc-debuginfo-0.19.0-3.el7.ppc64.rpm

ppc64le:
opensc-0.19.0-3.el7.ppc64le.rpm
opensc-debuginfo-0.19.0-3.el7.ppc64le.rpm

x86_64:
opensc-0.19.0-3.el7.i686.rpm
opensc-0.19.0-3.el7.x86_64.rpm
opensc-debuginfo-0.19.0-3.el7.i686.rpm
opensc-debuginfo-0.19.0-3.el7.x86_64.rpm

Red Hat Enterprise Linux Workstation (v. 7):

Source:
opensc-0.19.0-3.el7.src.rpm

x86_64:
opensc-0.19.0-3.el7.i686.rpm
opensc-0.19.0-3.el7.x86_64.rpm
opensc-debuginfo-0.19.0-3.el7.i686.rpm
opensc-debuginfo-0.19.0-3.el7.x86_64.rpm

These packages are GPG signed by Red Hat for security.  Our key and
details on how to verify the signature are available from
https://access.redhat.com/security/team/key/

7. References:

https://access.redhat.com/security/cve/CVE-2018-16391
https://access.redhat.com/security/cve/CVE-2018-16392
https://access.redhat.com/security/cve/CVE-2018-16393
https://access.redhat.com/security/cve/CVE-2018-16418
https://access.redhat.com/security/cve/CVE-2018-16419
https://access.redhat.com/security/cve/CVE-2018-16420
https://access.redhat.com/security/cve/CVE-2018-16421
https://access.redhat.com/security/cve/CVE-2018-16422
https://access.redhat.com/security/cve/CVE-2018-16423
https://access.redhat.com/security/cve/CVE-2018-16426
https://access.redhat.com/security/cve/CVE-2018-16427
https://access.redhat.com/security/updates/classification/#moderate
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.7_release_notes/index

8. Contact:

The Red Hat security contact is <secalert@redhat.com>. More contact
details at https://access.redhat.com/security/team/contact/

Copyright 2019 Red Hat, Inc.
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBXUl3dtzjgjWX9erEAQgFdw/8CfIhte2zVv7vstBWpx2XCf2eJH+iu3m1
lvN3/A4hMH51d/9nKmOJiMXHABD713At1kv3iXl/8CgL2NG6G/flTNkjt/e7HiCN
JVtA3tz04tMGzqF5eIPbso5hGGZhqBe/M6lhEe98LiDCklRS/SpLQcPFJyLtHAc/
uwhPyPyFjmz/GUAMkcHBTYk3yRo/SJlUE6Mx+ZtSTqyNMEXW4Qf9dvC1Qb+8h5pn
icu6KFZ2TlNbhBD+xtiYJ34Ln0fZEu6GGYSQwpx/04vBbII0pTpcjWXxG66wlu8N
a4JofTPm7b0FfRt1Mt6vAK/KR6DzYVrBbVAaL+WWjX6hDZ3N3Kxexs0vt7hAg/gH
FcNvGFR59zmVWPBWZoVcoyZ/5LWoYo4HjuxnN6SQQK/VYiMJRQtyGVVENhmZ0tPu
7pzNdQdPrJTpI/MhMockotpHbodhtY5I+JImLxr5KKoopD7UpON2YktoIxvupPcE
bV21dhsif/H0Le2iLSIhS/rFfpjZjnWJsIu2P5aWdH7dlCqyebCAa0tOOuDlejn7
Q3Cs2a3ZWNAVsKwOovsyygTWoAxQuSkH5qNQOQYRN+3YjLwRW2LJYZwYBgatK4nx
oyTI58SPsy6rt2DyhfQTOaFSA/xEC/hetV0l9Xt2M3YLrnV5AiYEbb9RRDBX4EoW
rlGXc41UCgw=
=Ot1p
- -----END PGP SIGNATURE-----

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBXUtlq2aOgq3Tt24GAQi6vA//Se5BCiSxtXFcAcGCWDfvslnEltew+KCA
FOTdramH8bK1Ry+/qGlxxkD/bc2s2fkdMSaFv8cFtPw/XtWdMlfrpO5wVmeBjeL4
EfGtZppxOZiuDr+D4r6bmXnFp4Myc6gg8uhIz5U7xBLjLZgo3SSGWlrUX+Ij+kpp
IT2sUthxZMe3sUy7pQecR1vbLwJM9d1W0cpxYpcBhFelsC5roNuOzPGXIkFoeAJ9
f4OefHA930pvhRzd/oAOJU5Y1xtnJn5ig5T7qRvwrYhdHD9DsRIHUA0i20yzyYsp
kthsTLnSAzzJ6Zge+2kgeWs7X98jgZpR7RrYovxiRZjlVXtMUJxWV5VBPUBSIJH4
Uqo2q54zytKR82Nl9Mg6/I9o5IkHQStW4vXlsnpydDxYJMMOaLX2ZvNKMfBcUxfo
2YNyI26WFJZYg1izfIcZKBfh2msOY/thOyrxQQ8Bt9QYZdstj5W6YlgCx1u57Ydp
vmLCttTQXe/WA9Ebbd0G3pjVFx/dL2UIIHKkNtS3O1A/KLVqpwt5cwEpJdlGuc+x
jR5qLRNpoppG/bwRJ24a8wFNQwM9zAw5WYN9Ky5HDdlM71KuqRhhP4F/RVyvkybO
jx+wyMr7ezRxJlJMCObVPW0yy66OFtSJ3g5vZVMQZcUY8XFPd1MlmuZvPHhjz7gx
A21AMoGGW80=
=SJT3
-----END PGP SIGNATURE-----