CVE-2017-6009

NameCVE-2017-6009
DescriptionAn issue was discovered in icoutils 0.31.1. A buffer overflow was observed in the "decode_ne_resource_id" function in the "restable.c" source file. This is happening because the "len" parameter for memcpy is not checked for size and thus becomes a negative integer in the process, resulting in a failed memcpy. This affects wrestool.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SuSE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-854-1, DSA-3807-1
NVD severitymedium (attack range: remote)
Debian Bugs854050

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
icoutils (PTS)wheezy0.29.1-5vulnerable
wheezy (security)0.29.1-5deb7u2fixed
jessie (security), jessie0.31.0-2+deb8u3fixed
stretch0.31.2-1.1fixed
buster, sid0.31.3-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
icoutilssource(unstable)0.31.2-1medium854050
icoutilssourcejessie0.31.0-2+deb8u3mediumDSA-3807-1
icoutilssourcewheezy0.29.1-5deb7u2mediumDLA-854-1

Notes

Fixed by: http://git.savannah.gnu.org/cgit/icoutils.git/commit/?id=f148ae5af1c9eeb85610a5653a7f625dd6c3ac2e
Proposed patch from Red Hat contributor: https://bugzilla.redhat.com/attachment.cgi?id=1256407

Search for package or bug name: Reporting problems