Bug 1416856 (CVE-2017-3732)

Summary: CVE-2017-3732 openssl: BN_mod_exp may produce incorrect results on x86_64
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bbaranow, bmaxwell, bmcclain, bugzilla-redhat, cdewolf, cfergeau, chazlett, csutherl, dandread, darran.lofthouse, dblechte, dimitris, dosoudil, eedri, erik-fedora, fgavrilo, fnasser, gzaronik, huwang, jawilson, jclere, jondruse, jshepherd, ktietz, lersek, lgao, lsurette, marcandre.lureau, mbabacek, mgoldboi, michal.skrivanek, mturk, myarboro, pgier, pjurak, ppalaga, psakar, pslavice, redhat-bugzilla, rh-spice-bugs, rjones, rnetuka, rstancel, rsvoboda, sardella, slawomir, srevivo, tmraz, twalsh, vtunka, weli, ykaul
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20170126,reported=20170126,source=internet,cvss3=5.9/CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N,rhel-5/openssl=notaffected,rhel-5/openssl097a=notaffected,rhel-6/openssl=notaffected,rhel-6/openssl098e=notaffected,rhel-7/openssl=notaffected,rhel-7/openssl098e=notaffected,jbcs-1/openssl=affected,jbews-1/openssl=notaffected,jbews-2/openssl=wontfix,jws-3/openssl=defer,eap-5/openssl=notaffected,eap-6/openssl=wontfix,rhev-m-3/mingw-virt-viewer=notaffected,fedora-all/openssl=affected,fedora-all/mingw-openssl=affected,epel-5/openssl101e=notaffected,epel-7/mingw-openssl=affected,rhel-7/OVMF=notaffected,rhel-6/java-1.8.0-ibm=affected,rhel-7/java-1.8.0-ibm=affected,rhn_satellite_5/java-1.8.0-ibm=affected
Fixed In Version: openssl 1.0.2k, openssl 1.1.0d Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 1416867, 1420895, 1420896, 1416864, 1416865, 1618719, 1618720, 1618721, 1624844, 1624845    
Bug Blocks: 1416858    

Description Andrej Nemec 2017-01-26 15:44:15 UTC
There is a carry propagating bug in the x86_64 Montgomery squaring procedure. No EC algorithms are affected. Analysis suggests that attacks against RSA and DSA as a result of this defect would be very difficult to perform and are not believed likely. Attacks against DH are considered just feasible (although very difficult) because most of the work necessary to deduce information about a private key may be performed offline. The amount of resources required for such an attack would be very significant and likely only accessible to a limited number of attackers. An attacker would additionally need online access to an unpatched system using the target private key in a scenario with persistent DH parameters and a private key that is shared between multiple clients. For example this can occur by default in OpenSSL DHE based SSL/TLS ciphersuites.

Note: This issue is very similar to CVE-2015-3193 but must be treated as a separate problem.

OpenSSL 1.0.2 users should upgrade to 1.0.2k

External References:

https://www.openssl.org/news/secadv/20170126.txt

Comment 1 Andrej Nemec 2017-01-26 16:08:46 UTC
Created openssl101e tracking bugs for this issue:

Affects: epel-5 [bug 1416866]

Comment 2 Andrej Nemec 2017-01-26 16:09:13 UTC
Created openssl tracking bugs for this issue:

Affects: fedora-all [bug 1416864]

Comment 3 Andrej Nemec 2017-01-26 16:09:32 UTC
Created mingw-openssl tracking bugs for this issue:

Affects: fedora-all [bug 1416865]
Affects: epel-7 [bug 1416867]

Comment 5 Tomas Hoger 2017-01-26 21:24:44 UTC
Affected code does not exist in OpenSSL 1.0.1 and earlier.  It's the same code that was affected by the CVE-2015-3193 (bug 1288317).

Comment 8 errata-xmlrpc 2018-07-12 16:05:23 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Core Services

Via RHSA-2018:2187 https://access.redhat.com/errata/RHSA-2018:2187

Comment 9 errata-xmlrpc 2018-07-12 16:15:04 UTC
This issue has been addressed in the following products:

  JBoss Core Services on RHEL 6

Via RHSA-2018:2186 https://access.redhat.com/errata/RHSA-2018:2186

Comment 10 errata-xmlrpc 2018-07-12 16:17:26 UTC
This issue has been addressed in the following products:

  JBoss Core Services on RHEL 7

Via RHSA-2018:2185 https://access.redhat.com/errata/RHSA-2018:2185

Comment 12 errata-xmlrpc 2018-08-27 14:20:14 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Supplementary

Via RHSA-2018:2568 https://access.redhat.com/errata/RHSA-2018:2568

Comment 13 errata-xmlrpc 2018-08-28 19:18:44 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6 Supplementary

Via RHSA-2018:2575 https://access.redhat.com/errata/RHSA-2018:2575

Comment 15 errata-xmlrpc 2018-09-17 14:53:34 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 5.8

Via RHSA-2018:2713 https://access.redhat.com/errata/RHSA-2018:2713