Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in Gnu Compiler Collection - CVE-2019-15847

 

Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in Gnu Compiler Collection - CVE-2019-15847

Published: May 26, 2020


Vulnerability identifier: #VU28259
CSH Severity: Low
CVSS v4: 4.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-15847
CWE-ID: CWE-338
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an attacker to bypass implemented security restrictions.

The vulnerability exists due to the POWER9 backend in GNU Compiler Collection (GCC) can optimize multiple calls of the __builtin_darn intrinsic into a single call, thus reducing the entropy of the random number generator. This vulnerability may weaken security features that rely on random number generator.


Affected software

Gnu Compiler Collection
Gentoo Linux
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for IBM z Systems
Opensuse
devtoolset-9-gcc (Red Hat package)
devtoolset-8-gcc (Red Hat package)
gcc (Red Hat package)
sys-devel/gcc

How to mitigate CVE-2019-15847

Install updates from vendor's website.

Gnu Compiler Collection - addressed in versions 8.4.0, 9.3.0
devtoolset-9-gcc (Red Hat package) - update to 9.3.1-2.el7
devtoolset-8-gcc (Red Hat package) - addressed in versions 8.3.1-3.2.el6, 8.3.1-3.2.el7
gcc (Red Hat package) - update to 8.3.1-5.el8
sys-devel/gcc - update to 10.0

External References

Related Security Bulletins