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, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-766-1, DSA-3748-1
Debian Bugs848009

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libcrypto++ (PTS)bullseye8.4.0-1fixed
bookworm8.7.0+git220824-1fixed
sid, trixie8.9.0-1.1fixed

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

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

Notes

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

Search for package or bug name: Reporting problems