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 bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-766-1, DSA-3748-1
NVD severitymedium
Debian Bugs848009

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libcrypto++ (PTS)jessie (security), jessie5.6.1-6+deb8u3fixed
stretch5.6.4-7fixed
buster5.6.4-8fixed
bullseye, sid5.6.4-9fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libcrypto++source(unstable)5.6.4-5848009
libcrypto++sourcejessie5.6.1-6+deb8u3DSA-3748-1
libcrypto++sourcewheezy5.6.1-6+deb7u3DLA-766-1

Notes

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

Search for package or bug name: Reporting problems