CVE-2017-1000257

NameCVE-2017-1000257
DescriptionAn IMAP FETCH response line indicates the size of the returned data, in number of bytes. When that response says the data is zero bytes, libcurl would pass on that (non-existing) data with a pointer and the size (zero) to the deliver-data function. libcurl's deliver-data function treats zero as a magic number and invokes strlen() on the data to figure out the length. The strlen() is called on a heap based buffer that might not be zero terminated so libcurl might read beyond the end of it into whatever memory lies after (or just crash) and then deliver that to the application as if it was actually downloaded.
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-1143-1, DSA-4007-1
NVD severitymedium (attack range: remote)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
curl (PTS)jessie7.38.0-4+deb8u11fixed
jessie (security)7.38.0-4+deb8u14fixed
stretch (security), stretch7.52.1-5+deb9u9fixed
buster7.64.0-1fixed
sid7.64.0-2fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
curlsource(unstable)7.56.1-1medium
curlsourcejessie7.38.0-4+deb8u7mediumDSA-4007-1
curlsourcestretch7.52.1-5+deb9u2mediumDSA-4007-1
curlsourcewheezy7.26.0-1+wheezy22mediumDLA-1143-1

Notes

https://curl.haxx.se/docs/adv_20171023.html

Search for package or bug name: Reporting problems