Bug 1475733 (CVE-2017-11671)

Summary: CVE-2017-11671 gcc: GCC generates incorrect code for RDRAND/RDSEED intrinsics
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: davejohansen, erik-fedora, fweimer, jakub, jwakely, klember, ktietz, law, mpolacek, ohudlick, rjones, slawomir, yselkowi
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gcc 5.5, gcc 6.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:18:55 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: 1475735, 1475736, 1475737, 1482761, 1482762    
Bug Blocks: 1475740    

Description Adam Mariš 2017-07-27 08:53:39 UTC
Under certain circumstances, the ix86_expand_builtin function in i386.c in GNU Compiler Collection (GCC) version 4.6, 4.7, 4.8, 4.9, 5 before 5.5, and 6 before 6.4 will generate instruction sequences that clobber the status flag of the RDRAND and RDSEED intrinsics before it can be read, potentially causing failures of these instructions to go unreported.

Upstream bug:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80180

Upstream patch:

https://gcc.gnu.org/ml/gcc-patches/2017-03/msg01349.html

References:

http://seclists.org/oss-sec/2017/q3/218

Comment 1 Adam Mariš 2017-07-27 08:54:20 UTC
Created gcc tracking bugs for this issue:

Affects: fedora-25 [bug 1475735]


Created mingw-gcc tracking bugs for this issue:

Affects: epel-all [bug 1475736]
Affects: fedora-25 [bug 1475737]

Comment 13 errata-xmlrpc 2018-04-10 08:25:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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