Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) Affecting gcc package, versions <0:4.8.5-28.el7


Severity

Recommended
low

Based on CentOS security rating.

Threat Intelligence

EPSS
0.16% (54th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CENTOS7-GCC-2099547
  • published26 Jul 2021
  • disclosed25 Mar 2017

Introduced: 25 Mar 2017

CVE-2017-11671  (opens in a new tab)
CWE-338  (opens in a new tab)

How to fix?

Upgrade Centos:7 gcc to version 0:4.8.5-28.el7 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream gcc package and not the gcc package as distributed by Centos. See How to fix? for Centos:7 relevant fixed versions and status.

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.