Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 596356

Summary: <dev-python/pillow-3.4.2: two vulnerabilities
Product: Gentoo Security Reporter: Agostino Sarubbo <ago>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED DUPLICATE    
Severity: normal CC: python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 599610    
Bug Blocks:    

Description Agostino Sarubbo gentoo-dev 2016-10-06 15:50:04 UTC
From https://bugzilla.redhat.com/show_bug.cgi?id=1382006:

It was found that in storage.c, the image size is not checked for negative values. This can lead to a null pointer dereference in 3.3.x, or a dereference 
of junk memory prior to that.

Upstream patch:

https://github.com/python-pillow/Pillow/commit/5d8a0be45aad78c5a22c8d099118ee26ef8144af


From https://bugzilla.redhat.com/show_bug.cgi?id=1382000:

Integer overflow vulnerabilities were found in PyImaging_MapBuffer function, specifically there's unchecked multiplication of xsize * ysize * 
bytes_per_pixel where the sizes are each an int as well as unchecked addition of the size calculated above with a attacker provided offset value.

Upstream patch:

https://github.com/python-pillow/Pillow/commit/c50ebe6459a131a1ea8ca531f10da616d3ceaa0f


@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-10-24 11:31:17 UTC
commit 7f1928645dd45316d4d70e14e34b7859cbb1fe18
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Mon Oct 24 12:20:31 2016

    dev-python/pillow: Bump to version 3.4.2

    Package-Manager: portage-2.3.2
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Comment 2 Aaron Bauman (RETIRED) gentoo-dev 2016-11-11 07:14:01 UTC
@maintainer(s), do you want to stabilize?
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2016-11-29 01:09:07 UTC
The two vulnerabilities were already reported in bug 599608 and bug 599610 so closing as duplicate.

*** This bug has been marked as a duplicate of bug 599610 ***