Bug 1327134 (CVE-2016-4009)

Summary: CVE-2016-4009 python-pillow: integer overflow in the ImagingResampleHorizontal function
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dkholia, manisandro, miminar, tsmetana
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-pillow 3.1.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-30 09:41:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1327136    
Bug Blocks: 1375100    

Description Andrej Nemec 2016-04-14 10:23:00 UTC
Integer overflow in the ImagingResampleHorizontal function in
libImaging/Resample.c in Pillow before 3.1.1 allows remote attackers to have
unspecified impact via negative values of the new size, which triggers a
heap-based buffer overflow.

External references:

https://github.com/python-pillow/Pillow/pull/1714

Upstream fix:

https://github.com/python-pillow/Pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e

Comment 1 Andrej Nemec 2016-04-14 10:25:28 UTC
Created python-pillow tracking bugs for this issue:

Affects: fedora-all [bug 1327136]