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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | gcc-avr +3 | No fix yet | — |
| Ubuntu 26.04 LTS | gcc-avr +3 | No fix yet | — |
| Ubuntu 25.10 | gcc-avr +3 | No fix yet | — |
| Ubuntu 24.04 LTS | gcc-3.3 +4 | No fix yet | — |
| Ubuntu 22.04 LTS | gcc-3.3 +6 | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | gcc-3.3 +6 | No fix yet | — |
| Ubuntu 18.04 LTS | gcc-3.3 +7 | No fix yet | — |
| Ubuntu 16.04 LTS | gcc-3.3 +19 | No fix yet | — |
| Ubuntu 14.04 LTS | gcc-3.3 +4 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | gcc-5 | 5.4.0-6ubuntu1~16.04.12+esm2 | USN-5770-1 |
| Ubuntu Pro 16.04 LTS | gccgo-6 | 6.0.1-0ubuntu1+esm1 | USN-5770-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | cpp +38 | 4.8.5-28.el7 | RHSA-2018:0849 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | gcc48 +2 | 4.8.5-31.3.1 | SUSE-SU-2017:2526-1 |
| SLES 12 SP2 | gcc48 +2 | 4.8.5-31.3.1 | SUSE-SU-2017:2526-1 |
| SLES 12 SP1 | gcc48 | 4.8.5-31.3.1 | SUSE-SU-2017:2526-1 |
| SLES 12 | gcc48 | 4.8.5-31.3.1 | SUSE-SU-2017:2526-1 |
| SLES 11 SP4 | gcc48 | 4.8.5-5.3.1 | SUSE-SU-2017:2380-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP3 | gcc48 | 4.8.5-31.3.1 | SUSE-SU-2017:2526-1 |
| SLES for SAP 12 SP2 | gcc48 | 4.8.5-31.3.1 | SUSE-SU-2017:2526-1 |
| SLES for SAP 12 SP1 | gcc48 | 4.8.5-31.3.1 | SUSE-SU-2017:2526-1 |
| SUSE OpenStack Cloud 6 | gcc48 | 4.8.5-31.3.1 | SUSE-SU-2017:2526-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | cpp +38 | 4.8.5-28.0.1.el7 | ELSA-2018-0849 |
Advisories 5
- RHSA-2018:0849 Red Hat Security Advisory: gcc security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-5770-1 gcc-5, gccgo-6 vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- SUSE-SU-2017:2380-1 Security update for gcc48 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:2526-1 Security update for gcc48 SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2018-0849 Low: gcc security, bug fix, and enhancement update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Apr 16, 2018