Skip to content
Crypto Write-up Advanced

Security Fixes for Libgcrypt and GnuPG 1.4 [CVE-2016-6316]

A bug in Libgcrypt's random number generator mixing functions allowed an attacker who obtains 4640 bits of output to predict the next 160 bits. This could weaken cryptographic keys, though the announcement states RSA keys are not weakened and DSA/Elgamal keys are unlikely to be predictable.

lists.gnupg.org

Published on lists.gnupg.org

The GnuPG Project is pleased to announce the availability of new Libgcrypt and GnuPG versions to fix a critical security problem.

The author, on lists.gnupg.org

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a flaw in the mixing functions of Libgcrypt's random number generator that failed to properly obscure the internal state, allowing prediction of future output from a sufficient number of observed bits.

What the attacker needed

Attacker obtains 4640 bits from the RNG

The fix

The bug was fixed in Libgcrypt versions 1.7.3, 1.6.6, and 1.5.6, and in GnuPG 1.4.21.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A random number generator (RNG) is used to create unpredictable numbers for encryption keys. If an attacker can see some of its output, they might guess the next numbers, which could help them break encryption. This bug made that guessing possible after seeing a certain amount of output.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.