FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

py-imaging, py-pillow -- Buffer overflow in FLI decoding code

Affected packages
py27-pillow < 2.9.0_1
py33-pillow < 2.9.0_1
py34-pillow < 2.9.0_1
py35-pillow < 2.9.0_1
py27-imaging < 1.1.7_6

Details

VuXML ID 6ea60e00-cf13-11e5-805c-5453ed2e2b49
Discovery 2016-02-05
Entry 2016-02-09

The Pillow maintainers report:

In all versions of Pillow, dating back at least to the last PIL 1.1.7 release, FliDecode.c has a buffer overflow error.

There is a memcpy error where x is added to a target buffer address. X is used in several internal temporary variable roles, but can take a value up to the width of the image. Im->image[y] is a set of row pointers to segments of memory that are the size of the row. At the max y, this will write the contents of the line off the end of the memory buffer, causing a segfault.

This issue was found by Alyssa Besseling at Atlassian.

References

CVE Name CVE-2016-0775
URL https://github.com/python-pillow/Pillow/commit/bcaaf97f4ff25b3b5b9e8efeda364e17e80858ec