Has it been Pwned
ImplementationPractical impact

Debian OpenSSL PRNG bug: two years of predictable keys

Luciano Bello found that a Debian-specific patch to OpenSSL, uploaded in version 0.9.8c-1 on 17 September 2006, had removed almost all entropy from the random number generator. For about 20 months every RSA and DSA key generated with OpenSSL on Debian, Ubuntu and derivatives came from a tiny space seeded essentially only by the process ID, so all possible keys could be precomputed.

A separate source-review date has not been recorded for this historical entry. Corrections.

Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.

Background

The patch silenced a Valgrind warning about uninitialized memory by removing the line that mixed entropy into the pool. With the PID as the only variable input (at most 32,768 values per key type, size and architecture), attackers published lists of every possible SSH host and user key. Any DSA key merely used on an affected system was also compromised, because DSA signatures with predictable nonces leak the key. RSA itself was never at issue; this is the archetypal key-generation failure, and the reason later studies (Mining Your Ps and Qs, Keyfactor 2019) still find blacklisted Debian keys in the wild.

Sources

  1. announcementDSA-1571-1 openssl: predictable random number generatorDebian, lists.debian.org
  2. cveCVE-2008-0166NIST NVD, nvd.nist.gov