CVE-2015-5276
published 2015-11-17CVE-2015-5276: 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…
PriorityP423medium5CVSS 2.0
AVNACLAuNCPINAN
EPSS
2.94%
85.5th percentile
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.
Affected
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| gnu | gcc | < 4.9.4 | 4.9.4 |
CVSS provenance
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
osv5.0MEDIUM
vendor_redhat5.0MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
gcc: Predictable randomness from std::random_device
vendor_redhat·2015-02-20·CVSS 5.0
CVE-2015-5276 [MEDIUM] CWE-1241 gcc: Predictable randomness from std::random_device
gcc: Predictable randomness from std::random_device
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.
Package: gcc (Red Hat Enterprise Linux 6) - Will not fix
Package: gcc (Red Hat Enterprise Linux 7) - Will not fix
GHSA
GHSA-rq8f-f9q7-5x24: The std::random_device class in libstdc++ in the GNU Compiler Collection (aka GCC) before 4
ghsa_unreviewed·2022-05-14
CVE-2015-5276 [MEDIUM] CWE-200 GHSA-rq8f-f9q7-5x24: The std::random_device class in libstdc++ in the GNU Compiler Collection (aka GCC) before 4
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.
OSV
CVE-2015-5276: The std::random_device class in libstdc++ in the GNU Compiler Collection (aka GCC) before 4
osv·2015-11-17·CVSS 5.0
CVE-2015-5276 [MEDIUM] CVE-2015-5276: The std::random_device class in libstdc++ in the GNU Compiler Collection (aka GCC) before 4
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2015-5276 gcc: Predictable randomness from std::random_device [fedora-all]
bugzilla·2015-09-14·CVSS 5.0
CVE-2015-5276 [MEDIUM] CVE-2015-5276 gcc: Predictable randomness from std::random_device [fedora-all]
CVE-2015-5276 gcc: Predictable randomness from std::random_device [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of
Bugzilla
CVE-2015-5276 gcc: Predictable randomness from std::random_device
bugzilla·2015-09-14·CVSS 5.0
CVE-2015-5276 [MEDIUM] CVE-2015-5276 gcc: Predictable randomness from std::random_device
CVE-2015-5276 gcc: Predictable randomness from std::random_device
It was discovered that the std::random_device class in libstdc++ would
not properly detect short reads and could return return predictable
values if applications used it to obtain randomness from a blocking
source such as /dev/random.
Discussion:
External references:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65142
---
Upstream commit:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=227687
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=227872
---
Created gcc tracking bugs for this issue:
Affects: fedora-all [bug 1262852]
---
std::random_device is not guaranteed to be cryptographically secure and should not be used for secure cryptographic code. Thus having a low impact.
---
I was intending to f
http://lists.opensuse.org/opensuse-updates/2015-11/msg00054.htmlhttp://lists.opensuse.org/opensuse-updates/2016-04/msg00052.htmlhttp://www.securitytracker.com/id/1034375https://bugzilla.redhat.com/show_bug.cgi?id=1262846https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65142http://lists.opensuse.org/opensuse-updates/2015-11/msg00054.htmlhttp://lists.opensuse.org/opensuse-updates/2016-04/msg00052.htmlhttp://www.securitytracker.com/id/1034375https://bugzilla.redhat.com/show_bug.cgi?id=1262846https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65142
2015-11-17
Published