Record · 2008

Debian OpenSSL predictable PRNG (CVE-2008-0166)

In September 2006 a Debian-specific change to OpenSSL, made to silence memory-checker warnings, removed almost all the entropy feeding its random number generator on Debian and derived systems such as UbuntuDebian 2008research!rsc 2008. Luciano Bello noticed in May 2008, and Debian and Ubuntu published advisories with fixed packages on 13 May 2008ACM Internet Measurement… 2009Debian 2008Ubuntu Security Notices 2008.

  1. EventDebian's OpenSSL maintainer asks the openssl-dev mailing list about removing code that triggers Valgrind warnings. openssl-dev mailing list… 2006research!rsc 2008
  2. IntroducedThe first vulnerable package, openssl 0.9.8c-1, is uploaded to Debian unstable and later propagates to testing and stable (etch) and to Ubuntu. Debian 2008
  3. DiscoveredLuciano Bello notices that Debian's OpenSSL random number generator is predictable (May 2008). ACM Internet Measurement… 2009Debian 2008
  4. DisclosedDebian publishes DSA-1571-1 and advises regenerating all affected key material. Debian 2008
  5. PatchedFixed packages (0.9.8c-4etch3 for stable) ship with the advisory. Debian 2008
  6. DisclosedUbuntu publishes USN-612-1 the same day. Ubuntu Security Notices 2008

What it did

SSH, OpenVPN, DNSSEC and X.509 keys generated on affected systems were guessable, and DSA keys merely used on them were considered compromisedDebian 2008. Remediation was slow: 30 percent of hosts seen vulnerable on day 4 were still vulnerable almost six months laterACM Internet Measurement… 2009.

What it teaches

Fixing the code did not fix the keys it had made: every affected key had to be found and regeneratedDebian 2008. A small downstream change to cryptographic code went unnoticed for 604 days, although the maintainer had raised it on the upstream list firstopenssl-dev mailing list… 2006research!rsc 2008. Sites later patched Heartbleed faster than they replaced Debian weak keysACM Internet Measurement… 2014.