Back

MEDIUM

gcc: GCC generates incorrect code for RDRAND/RDSEED intrinsics

Published Jul 26, 2017

Description

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. This could potentially lead to less randomness in random number generation.

Affected products

Remediation

No remediation recorded yet.

Metrics

Weaknesses (1)

References (9)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner mitre
Published Jul 26, 2017
Updated Aug 5, 2024
Reserved Jul 26, 2017
NVD
Status Modified
Modified Jun 17, 2026
Red Hat
Severity Low
Public date Mar 25, 2017