CVE-2016-9939

NameCVE-2016-9939
DescriptionCrypto++ (aka cryptopp and libcrypto++) 5.6.4 contained a bug in its ASN.1 BER decoding routine. The library will allocate a memory block based on the length field of the ASN.1 object. If there is not enough content octets in the ASN.1 object, then the function will fail and the memory block will be zeroed even if its unused. There is a noticeable delay during the wipe for a large allocation.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SuSE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-766-1, DSA-3748-1
NVD severitymedium (attack range: remote)
Debian Bugs848009

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libcrypto++ (PTS)wheezy5.6.1-6+deb7u2vulnerable
wheezy (security)5.6.1-6+deb7u3fixed
jessie (security), jessie5.6.1-6+deb8u3fixed
stretch5.6.4-7fixed
buster, sid5.6.4-8fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libcrypto++source(unstable)5.6.4-5medium848009
libcrypto++sourcejessie5.6.1-6+deb8u3mediumDSA-3748-1
libcrypto++sourcewheezy5.6.1-6+deb7u3mediumDLA-766-1

Notes

https://github.com/weidai11/cryptopp/issues/346

Search for package or bug name: Reporting problems