AIX OpenSSL Advisory - #14 and counting
Written by Michael Felt   
I missed #13 - my apologies - from last April. However, I had mentioned the new ones covered in Advisory #14.
So what was in Advisory #13 and what has been patched in the files available via Advisory #14

Advisory #13 Details

    1. CVE-2015-0209

        OpenSSL could allow remote attackers to cause a denial of service (memory corruption and application crash) via a malformed Elliptic Curve (EC) private-key file that is improperly handled during import

    2. CVE-2015-0286

    OpenSSL could allow remote attackers to cause a denial of service (invalid read operation and application crash) via a crafted X.509 certificate to an endpoint that uses the certificate-verification feature

    3. CVE-2015-0287

        OpenSSL could allow remote attackers can cause a Denial of Service (invalid write operation and memory corruption) by leveraging an application that relies on ASN.1 structure reuse

    4. CVE-2015-0288

        OpenSSL could allow remote attackers to cause a Denial of Service (NULL pointer dereference and application crash) via an invalid certificate key

    5. CVE-2015-0289

        OpenSSL could allows remote attackers to cause a Denial of Service (NULL pointer dereference and application crash) by leveraging an application that processes arbitrary PKCS#7 data and providing malformed data with ASN.1 encoding

    6. CVE-2015-0292

        OpenSSL could allow remote attackers to cause a Denial of Service (memory corruption) via crafted base64 data that triggers a buffer overflow.

    7. CVE-2015-0293

    OpenSSL could allow remote attackers to cause a Denial of Service (assertion failure and daemon exit) via crafted CLIENT-MASTER-KEY message.

Advisory #14 Details

    1. CVE-2015-4000

       A vulnerability in the TLS protocol allows a man-in-the-middle attacker to downgrade vulnerable TLS connections using ephemeral Diffie-Hellman key exchange to 512-bit export-grade cryptography.This vulnerability is known as Logjam.

    2. CVE-2015-1788

    When processing an ECParameters structure OpenSSL enters an infinite loop if the curve specified is over a specially malformed binary polynomial field.

    3. CVE-2015-1789

    X509_cmp_time does not properly check the length of the ASN1_TIME string and can read a few bytes out of bounds. In addition, X509_cmp_time accepts an arbitrary number of fractional seconds in the time string.

    4. CVE-2015-1790

    The PKCS#7 parsing code does not handle missing inner EncryptedContent correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with missing content and trigger a NULL pointer dereference on parsing.

    5. CVE-2015-1791

    If a NewSessionTicket is received by a multi-threaded client when attempting to reuse a previous ticket then a race condition can occur potentially leading to a double free of the ticket data.


    6. CVE-2015-1792

    When verifying a signedData message the CMS code can enter an infinite loop if presented with an unknown hash function OID.

    7. CVE-2014-8176

    If a DTLS peer receives application data between the ChangeCipherSpec and Finished messages, buffering of such data may cause an invalid free,resulting in a segmentation fault or potentially, memory corruption.

Patches

        Fix is available.  The fix can be downloaded from:
       
     ftp://aix.software.ibm.com/aix/efixes/security/openssl_fix14.tar
    https://aix.software.ibm.com/aix/efixes/security/openssl_fix14.tar

        The link above is to a tar file containing this signed
        advisory, fix packages, and OpenSSL signatures for each package.
        The fixes below include prerequisite checking. This will
        enforce the correct mapping between the fixes and AIX
        releases.

    Note that the tar file contains Interim fixes that are based on OpenSSL version
        as given below -

        Note: You must be on the 'prereq for installation' level before applying the interim fix. 
        This may require installing a new level(prereq version) first.


        AIX Level      Interim Fix (*.Z)            Fileset Name(prereq for installation)
        ---------------------------------------------------------------------------------
        5.3, 6.1, 7.1   IV74809s9a.150710.epkg.Z    openssl.base(1.0.1.514 version)
        5.3, 6.1, 7.1   IV74809s9b.150710.epkg.Z    openssl.base(0.9.8.2505 version)
        5.3, 6.1, 7.1   IV74809s9c.150710.epkg.Z    openssl.base(12.9.8.2505 version)

        VIOS Level     Interim Fix (*.Z)        Fileset Name(prereq for installation)
        ---------------------------------------------------------------------------------
        2.2.*              IV74809s9a.150710.epkg.Z    openssl.base(1.0.1.514 version)
        2.2.*              IV74809s9b.150710.epkg.Z    openssl.base(0.9.8.2505 version)
        2.2.*              IV74809s9c.150710.epkg.Z    openssl.base(12.9.8.2505 version)


        To extract the fix from the tar file:

        tar xvf openssl_fix14.tar
        cd openssl_fix14

        Verify you have retrieved the fix intact:

        The checksums below were generated using the
        "openssl dgst -sha256 file" command is the followng:

        openssl dgst -sha256                                 filename     
        ----------------------------------------------------------------------------------------------
        d99db3c726bcc26cf8a7233725bc47125c15d68844d08a8ab598440d8a2912cf        IV74809s9a.150710.epkg.Z
        b33daadfecd61c2b0f03b3b9b87a3fcb3435a7aa52c29c18445f79579265bf67        IV74809s9b.150710.epkg.Z
        b5a0396ad25278547da61349cdf008fc424836ed0c7087dbc0e554af86d8974f        IV74809s9c.150710.epkg.Z
       
        These sums should match exactly. The OpenSSL signatures in the tarfile
    and on this advisory can also be used to verify the integrity of the fixes. 
    If the sums or signatures cannot be confirmed, contact IBM AIX Security at
        This e-mail address is being protected from spam bots, you need JavaScript enabled to view it and describe the discrepancy.
           
        Published advisory OpenSSL signature file location:

        http://aix.software.ibm.com/aix/efixes/security/openssl_advisory14.asc.sig
        https://aix.software.ibm.com/aix/efixes/security/openssl_advisory14.asc.sig
        ftp://aix.software.ibm.com/aix/efixes/security/openssl_advisory14.asc.sig      

    openssl dgst -sha1 -verify <pubkey_file> -signature <advisory_file>.sig <advisory_file>

        openssl dgst -sha1 -verify <pubkey_file> -signature <ifix_file>.sig <ifix_file>


        NOTE -
        1.for CVE-2015-4000: As the length of the server default DH key group size has been increased
        from 512 to 768 bits, the amount of CPU required for full TLS/SSL handshake can significantly
        increase. Please carefully test and assess the impact to your CPU requirements to ensure
        sufficient CPU resources, otherwise the system availability may be impacted.

        2.For CVE-2015-4000: IBM recommends that you review your entire environment to identify
        other areas where you have enabled the Diffie-Hellman key-exchange protocol used in TLS and
        take appropriate mitigation and remediation actions.
           
    B. FIX AND INTERIM FIX INSTALLATION

        IMPORTANT: If possible, it is recommended that a mksysb backup
        of the system be created.  Verify it is both bootable and
        readable before proceeding.

        To preview a fix installation:

        installp -a -d fix_name -p all  # where fix_name is the name of the
                                        # fix package being previewed.
        To install a fix package:

        installp -a -d fix_name -X all  # where fix_name is the name of the
                                        # fix package being installed.

        Interim fixes have had limited functional and regression
        testing but not the full regression testing that takes place
        for Service Packs; however, IBM does fully support them.

        Interim fix management documentation can be found at:

        http://www14.software.ibm.com/webapp/set2/sas/f/aix.efixmgmt/home.html

        To preview an interim fix installation:

        emgr -e ipkg_name -p         # where ipkg_name is the name of the
                                     # interim fix package being previewed.

        To install an interim fix package:

        emgr -e ipkg_name -X         # where ipkg_name is the name of the
                                     # interim fix package being installed.


WORKAROUNDS

 
   No Workarounds.