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

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
icoutils (PTS)bullseye0.32.3-3fixed
bookworm0.32.3-4fixed
sid, trixie0.32.3-5fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
icoutilssourcewheezy0.29.1-5deb7u2DLA-854-1
icoutilssourcejessie0.31.0-2+deb8u3DSA-3807-1
icoutilssource(unstable)0.31.2-1854050

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