Description
The std::random_device class in libstdc++ in the GNU Compiler Collection (aka GCC) before 4.9.4 does not properly handle short reads from blocking sources, which makes it easier for context-dependent attackers to predict the random values via unspecified vectors.
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 22.04 LTS | gcc-msp430 | No fix yet | — |
| Ubuntu 20.04 LTS | gcc-msp430 | No fix yet | — |
| Ubuntu 18.04 LTS | gcc-4.8 +1 | No fix yet | — |
| Ubuntu 16.04 LTS | gcc-4.7 +12 | No fix yet | — |
| Ubuntu 14.04 LTS | gcc-4.7 +2 | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP1 | gcc5 +1 | 5.3.1+r233831-9.1 | SUSE-SU-2016:0963-1 |
| SLES 12 | gcc48 +2 | 4.8.5-24.1 | SUSE-SU-2015:1833-1 |
| SLES 12 | gcc5 +1 | 5.3.1+r233831-9.1 | SUSE-SU-2016:0963-1 |
| SLES 11 SP4 | MozillaFirefox | 52.2.0esr-72.5.2 | SUSE-SU-2017:2235-1 |
| SLES 11 SP4 | MozillaFirefox-branding-SLED | 52-24.3.44 | SUSE-SU-2017:2235-1 |
| SLES 11 SP4 | firefox-gcc5 +1 | 5.3.1+r233831-7.1 | SUSE-SU-2017:2235-1 |
| SLES 11 SP4 | gcc48 | 4.8.5-4.2 | SUSE-SU-2017:0379-1 |
| SLES 11 SP4 | gcc5 +1 | 5.3.1+r233831-10.1 | SUSE-SU-2016:0908-2 |
| SLES 11 SP4 | mozilla-nss | 3.29.5-47.3.2 | SUSE-SU-2017:2235-1 |
| SLES 11 SP3 | MozillaFirefox | 52.2.0esr-72.5.2 | SUSE-SU-2017:2235-1 |
| SLES 11 SP3 | MozillaFirefox-branding-SLED | 52-24.3.44 | SUSE-SU-2017:2235-1 |
| SLES 11 SP3 | firefox-gcc5 +1 | 5.3.1+r233831-7.1 | SUSE-SU-2017:2235-1 |
| SLES 11 SP3 | mozilla-nss | 3.29.5-47.3.2 | SUSE-SU-2017:2235-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP1 | gcc5 +1 | 5.3.1+r233831-9.1 | SUSE-SU-2016:0963-1 |
| SLES for SAP 12 | gcc48 +1 | 4.8.5-24.1 | SUSE-SU-2015:1833-1 |
| SLES for SAP 12 | gcc5 +1 | 5.3.1+r233831-9.1 | SUSE-SU-2016:0963-1 |
| SLES for SAP 11 SP4 | MozillaFirefox | 52.2.0esr-72.5.2 | SUSE-SU-2017:2235-1 |
| SLES for SAP 11 SP4 | MozillaFirefox-branding-SLED | 52-24.3.44 | SUSE-SU-2017:2235-1 |
| SLES for SAP 11 SP4 | firefox-gcc5 +1 | 5.3.1+r233831-7.1 | SUSE-SU-2017:2235-1 |
| SLES for SAP 11 SP4 | gcc5 +1 | 5.3.1+r233831-10.1 | SUSE-SU-2016:0908-2 |
| SLES for SAP 11 SP4 | mozilla-nss | 3.29.5-47.3.2 | SUSE-SU-2017:2235-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | MozillaFirefox | 52.2.0esr-72.5.2 | SUSE-SU-2017:2235-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | MozillaFirefox-branding-SLED | 52-24.3.44 | SUSE-SU-2017:2235-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | firefox-gcc5 +1 | 5.3.1+r233831-7.1 | SUSE-SU-2017:2235-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | mozilla-nss | 3.29.5-47.3.2 | SUSE-SU-2017:2235-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | gcc5 | 5.4.1+r240125-1.5 | openSUSE-SU-2024:10542-1 |
Advisories 6
- SUSE-SU-2017:2235-1 Security update for MozillaFirefox, MozillaFirefox-branding-SLED, firefox-gcc5, mozilla-nss SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2015:1833-1 Security update for gcc48 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10542-1 cpp5-5.4.1+r240125-1.5 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:0963-1 Security update for gcc5 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:0379-1 Security update for gcc48 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:0908-2 Security update for gcc5 SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65142
- https://bugzilla.redhat.com/show_bug.cgi?id=1262846
- openSUSE-SU-2015:1946 vendor-advisory
- 1034375 vdb-entry
- openSUSE-SU-2016:1069 vendor-advisory