<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">Security update for bouncycastle</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>openSUSE-SU-2018:1689-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2018-06-14T05:39:30Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2018-06-14T05:39:30Z</InitialReleaseDate>
    <CurrentReleaseDate>2018-06-14T05:39:30Z</CurrentReleaseDate>
    <Generator>
      <Engine>cve-database/bin/generate-cvrf.pl</Engine>
      <Date>2017-02-24T01:00:00Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">Security update for bouncycastle</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for bouncycastle to version 1.59 fixes the following issues:

These security issues were fixed:

- CVE-2017-13098: BouncyCastle, when configured to use the JCE (Java
  Cryptography Extension) for cryptographic functions, provided a weak
  Bleichenbacher oracle when any TLS cipher suite using RSA key exchange was
  negotiated. An attacker can recover the private key from a vulnerable
  application. This vulnerability is referred to as 'ROBOT' (bsc#1072697).
- CVE-2016-1000338: Ensure full validation of ASN.1 encoding of signature on
  verification. It was possible to inject extra elements in the sequence making
  up the signature and still have it validate, which in some cases may have
  allowed the introduction of 'invisible' data into a signed structure
  (bsc#1095722).
- CVE-2016-1000339: Prevent AESEngine key information leak via lookup table
  accesses (boo#1095853).
- CVE-2016-1000340: Preventcarry propagation bugs in the implementation of
  squaring for several raw math classes (boo#1095854).
- CVE-2016-1000341: Fix DSA signature generation vulnerability to timing attack
  (boo#1095852).
- CVE-2016-1000341: DSA signature generation was vulnerable to timing attack.
  Where timings can be closely observed for the generation of signatures may have
  allowed an attacker to gain information about the signature's k value and
  ultimately the private value as well (bsc#1095852).
- CVE-2016-1000342: Ensure that ECDSA does fully validate ASN.1 encoding of
  signature on verification. It was possible to inject extra elements in the
  sequence making up the signature and still have it validate, which in some
  cases may have allowed the introduction of 'invisible' data into a signed
  structure (bsc#1095850).
- CVE-2016-1000343: Prevent weak default settings for private DSA key pair
  generation (boo#1095849).
- CVE-2016-1000344: Removed DHIES from the provider to disable the unsafe usage
  of ECB mode (boo#1096026).
- CVE-2016-1000345: The DHIES/ECIES CBC mode was vulnerable to padding oracle
  attack. In an environment where timings can be easily observed, it was possible
  with enough observations to identify when the decryption is failing due to
  padding (bsc#1096025).
- CVE-2016-1000346: The other party DH public key was not fully validated. This
  could have caused issues as invalid keys could be used to reveal details about
  the other party's private key where static Diffie-Hellman is in use
  (bsc#1096024).
- CVE-2016-1000352: Remove ECIES from the provider to disable the unsafe usage
  of ECB mode (boo#1096022).
</Note>
    <Note Title="Terms of Use" Type="Legal Disclaimer" Ordinal="3" xml:lang="en">The CVRF data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright SUSE LLC under the Creative Commons License 4.0 with Attribution (CC-BY-4.0)</DocumentDistribution>
  <DocumentReferences>
    <Reference Type="Self">
      <URL>https://lists.opensuse.org/opensuse-security-announce/2018-06/msg00025.html</URL>
      <Description>E-Mail link for openSUSE-SU-2018:1689-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="openSUSE Leap 42.3">
      <Branch Type="Product Name" Name="openSUSE Leap 42.3">
        <FullProductName ProductID="openSUSE Leap 42.3">openSUSE Leap 42.3</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="bouncycastle-1.59-23.3.1">
      <FullProductName ProductID="bouncycastle-1.59-23.3.1">bouncycastle-1.59-23.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="bouncycastle-javadoc-1.59-23.3.1">
      <FullProductName ProductID="bouncycastle-javadoc-1.59-23.3.1">bouncycastle-javadoc-1.59-23.3.1</FullProductName>
    </Branch>
    <Relationship ProductReference="bouncycastle-1.59-23.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:bouncycastle-1.59-23.3.1">bouncycastle-1.59-23.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="bouncycastle-javadoc-1.59-23.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:bouncycastle-javadoc-1.59-23.3.1">bouncycastle-javadoc-1.59-23.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
  </ProductTree>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="1">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">In Bouncy Castle JCE Provider version 1.55 and earlier the DSA does not fully validate ASN.1 encoding of signature on verification. It is possible to inject extra elements in the sequence making up the signature and still have it validate, which in some cases may allow the introduction of 'invisible' data into a signed structure.</Note>
    </Notes>
    <CVE>CVE-2016-1000338</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:bouncycastle-1.59-23.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:bouncycastle-javadoc-1.59-23.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-06/msg00025.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2016-1000338.html</URL>
        <Description>CVE-2016-1000338</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1095722</URL>
        <Description>SUSE Bug 1095722</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="2">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">In the Bouncy Castle JCE Provider version 1.55 and earlier the primary engine class used for AES was AESFastEngine. Due to the highly table driven approach used in the algorithm it turns out that if the data channel on the CPU can be monitored the lookup table accesses are sufficient to leak information on the AES key being used. There was also a leak in AESEngine although it was substantially less. AESEngine has been modified to remove any signs of leakage (testing carried out on Intel X86-64) and is now the primary AES class for the BC JCE provider from 1.56. Use of AESFastEngine is now only recommended where otherwise deemed appropriate.</Note>
    </Notes>
    <CVE>CVE-2016-1000339</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:bouncycastle-1.59-23.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:bouncycastle-javadoc-1.59-23.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-06/msg00025.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2016-1000339.html</URL>
        <Description>CVE-2016-1000339</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1095853</URL>
        <Description>SUSE Bug 1095853</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="3">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">In the Bouncy Castle JCE Provider versions 1.51 to 1.55, a carry propagation bug was introduced in the implementation of squaring for several raw math classes have been fixed (org.bouncycastle.math.raw.Nat???). These classes are used by our custom elliptic curve implementations (org.bouncycastle.math.ec.custom.**), so there was the possibility of rare (in general usage) spurious calculations for elliptic curve scalar multiplications. Such errors would have been detected with high probability by the output validation for our scalar multipliers.</Note>
    </Notes>
    <CVE>CVE-2016-1000340</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:bouncycastle-1.59-23.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:bouncycastle-javadoc-1.59-23.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-06/msg00025.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2016-1000340.html</URL>
        <Description>CVE-2016-1000340</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1095854</URL>
        <Description>SUSE Bug 1095854</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="4">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">In the Bouncy Castle JCE Provider version 1.55 and earlier DSA signature generation is vulnerable to timing attack. Where timings can be closely observed for the generation of signatures, the lack of blinding in 1.55, or earlier, may allow an attacker to gain information about the signature's k value and ultimately the private value as well.</Note>
    </Notes>
    <CVE>CVE-2016-1000341</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:bouncycastle-1.59-23.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:bouncycastle-javadoc-1.59-23.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-06/msg00025.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2016-1000341.html</URL>
        <Description>CVE-2016-1000341</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1095852</URL>
        <Description>SUSE Bug 1095852</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="5">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">In the Bouncy Castle JCE Provider version 1.55 and earlier ECDSA does not fully validate ASN.1 encoding of signature on verification. It is possible to inject extra elements in the sequence making up the signature and still have it validate, which in some cases may allow the introduction of 'invisible' data into a signed structure.</Note>
    </Notes>
    <CVE>CVE-2016-1000342</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:bouncycastle-1.59-23.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:bouncycastle-javadoc-1.59-23.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-06/msg00025.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2016-1000342.html</URL>
        <Description>CVE-2016-1000342</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1095850</URL>
        <Description>SUSE Bug 1095850</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="6">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">In the Bouncy Castle JCE Provider version 1.55 and earlier the DSA key pair generator generates a weak private key if used with default values. If the JCA key pair generator is not explicitly initialised with DSA parameters, 1.55 and earlier generates a private value assuming a 1024 bit key size. In earlier releases this can be dealt with by explicitly passing parameters to the key pair generator.</Note>
    </Notes>
    <CVE>CVE-2016-1000343</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:bouncycastle-1.59-23.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:bouncycastle-javadoc-1.59-23.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-06/msg00025.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2016-1000343.html</URL>
        <Description>CVE-2016-1000343</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1095849</URL>
        <Description>SUSE Bug 1095849</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="7">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">In the Bouncy Castle JCE Provider version 1.55 and earlier the DHIES implementation allowed the use of ECB mode. This mode is regarded as unsafe and support for it has been removed from the provider.</Note>
    </Notes>
    <CVE>CVE-2016-1000344</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:bouncycastle-1.59-23.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:bouncycastle-javadoc-1.59-23.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-06/msg00025.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2016-1000344.html</URL>
        <Description>CVE-2016-1000344</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1096026</URL>
        <Description>SUSE Bug 1096026</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="8">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">In the Bouncy Castle JCE Provider version 1.55 and earlier the DHIES/ECIES CBC mode vulnerable to padding oracle attack. For BC 1.55 and older, in an environment where timings can be easily observed, it is possible with enough observations to identify when the decryption is failing due to padding.</Note>
    </Notes>
    <CVE>CVE-2016-1000345</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:bouncycastle-1.59-23.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:bouncycastle-javadoc-1.59-23.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-06/msg00025.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2016-1000345.html</URL>
        <Description>CVE-2016-1000345</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1096025</URL>
        <Description>SUSE Bug 1096025</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="9">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">In the Bouncy Castle JCE Provider version 1.55 and earlier the other party DH public key is not fully validated. This can cause issues as invalid keys can be used to reveal details about the other party's private key where static Diffie-Hellman is in use. As of release 1.56 the key parameters are checked on agreement calculation.</Note>
    </Notes>
    <CVE>CVE-2016-1000346</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:bouncycastle-1.59-23.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:bouncycastle-javadoc-1.59-23.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-06/msg00025.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2016-1000346.html</URL>
        <Description>CVE-2016-1000346</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1096024</URL>
        <Description>SUSE Bug 1096024</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="10">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">In the Bouncy Castle JCE Provider version 1.55 and earlier the ECIES implementation allowed the use of ECB mode. This mode is regarded as unsafe and support for it has been removed from the provider.</Note>
    </Notes>
    <CVE>CVE-2016-1000352</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:bouncycastle-1.59-23.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:bouncycastle-javadoc-1.59-23.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-06/msg00025.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2016-1000352.html</URL>
        <Description>CVE-2016-1000352</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1096022</URL>
        <Description>SUSE Bug 1096022</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="11">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">BouncyCastle TLS prior to version 1.0.3, when configured to use the JCE (Java Cryptography Extension) for cryptographic functions, provides a weak Bleichenbacher oracle when any TLS cipher suite using RSA key exchange is negotiated. An attacker can recover the private key from a vulnerable application. This vulnerability is referred to as "ROBOT."</Note>
    </Notes>
    <CVE>CVE-2017-13098</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:bouncycastle-1.59-23.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:bouncycastle-javadoc-1.59-23.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-06/msg00025.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2017-13098.html</URL>
        <Description>CVE-2017-13098</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1072697</URL>
        <Description>SUSE Bug 1072697</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
