Bug 1509169 (CVE-2017-3736)

Summary: CVE-2017-3736 openssl: bn_sqrx8x_internal carry bug on x86_64
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: apmukher, bmaxwell, bmcclain, cdewolf, cfergeau, chazlett, csutherl, darran.lofthouse, dblechte, dimitris, dosoudil, eedri, erik-fedora, extras-orphan, fgavrilo, gzaronik, jamieligon, jawilson, jclere, jondruse, jorton, jshepherd, ktietz, lersek, lgao, lsurette, marcandre.lureau, mbabacek, mgoldboi, michal.skrivanek, mturk, myarboro, pgier, pjurak, ppalaga, psakar, pslavice, rh-spice-bugs, rjones, rnetuka, rstancel, rsvoboda, sherold, slawomir, srevivo, tmraz, twalsh, vtunka, weli, ykaul, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: openssl 1.1.0g, openssl 1.0.2m Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:30:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1486146, 1486147, 1509854, 1509905, 1509906, 1618719, 1618720, 1618721, 1624844, 1624845    
Bug Blocks: 1498774, 1509173    

Description Andrej Nemec 2017-11-03 09:20:59 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.

This only affects processors that support the BMI1, BMI2 and ADX extensions like
Intel Broadwell (5th generation) and later or AMD Ryzen.

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

External References:

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

Comment 1 Andrej Nemec 2017-11-03 09:22:01 UTC
Created mingw-openssl tracking bugs for this issue:

Affects: fedora-all [bug 1486147]


Created openssl tracking bugs for this issue:

Affects: fedora-all [bug 1486146]

Comment 2 Huzaifa S. Sidhpurwala 2017-11-06 05:21:06 UTC
Upstream commit:

https://github.com/openssl/openssl/commit/668a709a8d7ea374ee72ad2d43ac72ec60a80eee

Comment 5 errata-xmlrpc 2018-04-10 08:39:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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

Comment 6 errata-xmlrpc 2018-07-12 16:05:49 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 7 errata-xmlrpc 2018-07-12 16:15:33 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 8 errata-xmlrpc 2018-07-12 16:17:40 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 10 errata-xmlrpc 2018-08-27 14:20:16 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 11 errata-xmlrpc 2018-08-28 19:18:45 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 13 errata-xmlrpc 2018-09-17 14:53:52 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