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 befor
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.
- Published
- Jul 26, 2017
- Updated
- Jun 16, 2026
- EPSS
- 0.4% · 36th percentile
- CWE
- CWE-338
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
16
Monitor
Low priority for now.
- CVSS
- 16 / 40 · 4.0 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.4%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| gnu | gcc | cpe:2.3:a:gnu:gcc |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- gnu gcc4.6
- gnu gcc4.7
- gnu gcc4.8
- gnu gcc4.9
- gnu gcc5.0
- gnu gcc5.1
- gnu gcc5.2
- gnu gcc5.3
- gnu gcc5.4
- gnu gcc6.0
- gnu gcc6.1
- gnu gcc6.2
- gnu gcc6.3
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Red Hat:enterprise_linux:7::client | cpp | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | gcc | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | gcc-base-debuginfo | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | gcc-c++ | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | gcc-debuginfo | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | gcc-gfortran | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | gcc-gnat | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | gcc-go | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | gcc-objc | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | gcc-objc++ | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | gcc-plugin-devel | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | libasan | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | libasan-static | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | libatomic | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | libatomic-static | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | libgcc | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | libgfortran | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | libgfortran-static | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | libgnat | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | libgnat-devel | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | libgnat-static | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | libgo | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | libgo-devel | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
| Red Hat:enterprise_linux:7::client | libgo-static | before 0:4.8.5-28.el7 | 0:4.8.5-28.el7 |
+21
Same product
gnu: all recordsOther highest-scoring records for the same primary product.
- CVE-2018-12886stack_protect_prologue in cfgexpand.c and stack_protect_epilogue in function.c in GNU Compiler Collection (GCC) 4.1 through 8 (under certain33Monitor
- CVE-2002-2439Integer overflow in the new[] operator in gcc before 4.8.0 allows attackers to have unspecified impacts.31Monitor
- CVE-2019-15847The POWER9 backend in GNU Compiler Collection (GCC) before version 10 could optimize multiple calls of the __builtin_darn intrinsic into a s31Monitor
- CVE-2008-1367gcc 4.3.x does not generate a cld instruction while compiling functions used for string manipulation such as memcpy and memmove on x86 and i31Monitor
- CVE-2008-1685gcc 4.2.0 through 4.3.0 in GNU Compiler Collection, when casts are not used, considers the sum of a pointer and an int to be greater than or27Monitor
- CVE-2021-3826Heap/stack buffer overflow in the dlang_lname function in d-demangle.c in libiberty allows attackers to potentially cause a denial of servic26Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| red hat:cpp | 0:4.8.5-28.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:gcc | 0:4.8.5-28.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:gcc-base-debuginfo | 0:4.8.5-28.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:gcc-c++ | 0:4.8.5-28.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:gcc-debuginfo | 0:4.8.5-28.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libatomic | 0:4.8.5-28.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libgcc | 0:4.8.5-28.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libgfortran | 0:4.8.5-28.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libgomp | 0:4.8.5-28.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libitm | 0:4.8.5-28.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libquadmath | 0:4.8.5-28.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libstdc++ | 0:4.8.5-28.el7 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| suse:gcc48 | 4.8.5-5.3.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4 | Package registry (OSV) |
| suse:libffi48 | 4.8.5-31.3.1 · SUSE:Linux Enterprise Software Development Kit 12 SP2 | Package registry (OSV) |
| suse:libgcj48 | 4.8.5-31.3.1 · SUSE:Linux Enterprise Desktop 12 SP2 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- Low
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-338 · Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)CVSS vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- openwall.com/lists/oss-security/2017/07/27/2
- www.securityfocus.com/bid/100018
- access.redhat.com/errata/RHSA-2018:0849
- gcc.gnu.org/bugzilla/show_bug.cgi?id=80180
- gcc.gnu.org/ml/gcc-patches/2017-03/msg01349.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.