FreeBSD : py-pillow -- Buffer overflow in TIFF decoding code (53252879-cf11-11e5-805c-5453ed2e2b49)

This script is Copyright (C) 2016 Tenable Network Security, Inc.


Synopsis :

The remote FreeBSD host is missing one or more security-related
updates.

Description :

The Pillow maintainers report :

Pillow 3.1.0 and earlier when linked against libtiff >= 4.0.0 on x64
may overflow a buffer when reading a specially crafted tiff file.

Specifically, libtiff >= 4.0.0 changed the return type of
TIFFScanlineSize from int32 to machine dependent int32|64. If the
scanline is sized so that it overflows an int32, it may be interpreted
as a negative number, which will then pass the size check in
TiffDecode.c line 236. To do this, the logical scanline size has to be
> 2gb, and for the test file, the allocated buffer size is 64k against
a roughly 4gb scan line size. Any image data over 64k is written over
the heap, causing a segfault.

This issue was found by security researcher FourOne.

See also :

http://www.nessus.org/u?b93f5cad
http://www.nessus.org/u?5884976b

Solution :

Update the affected packages.

Risk factor :

Medium / CVSS Base Score : 4.3
(CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N)

Family: FreeBSD Local Security Checks

Nessus Plugin ID: 88669 ()

Bugtraq ID:

CVE ID: CVE-2016-0740

Ready to Amp Up Your Nessus Experience?

Get Nessus Professional to scan unlimited IPs, run compliance checks & more

Buy Nessus Professional Now