Bug 1305518

Summary: php: Integer overflow in iptcembed()
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abhgupta, dmcphers, fedora, jialiu, jokerman, jorton, kseifried, lmeyer, mmaslano, mmccomas, rcollet, tiwillia, webstack-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 5.6.18, php 5.5.32 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-28 13:43:07 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: 1305565    
Bug Blocks: 1305564    

Description Adam Mariš 2016-02-08 13:34:54 UTC
An integer overflow vulnerability causing heap overflow in ext/standard/iptc.c module was found. This issue can be used to trigger memory corruption on 32-bit versions of PHP.

Upstream bug:

https://bugs.php.net/bug.php?id=71459

Upstream patch:

http://git.php.net/?p=php-src.git;a=commit;h=54c210d2ea9b8539edcde1888b1104b96b38e886

Comment 1 Adam Mariš 2016-02-08 15:13:30 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1305565]

Comment 2 Tomas Hoger 2016-07-28 13:43:07 UTC
This issue is triggered when iptcembed() function is called with long $iptcdata argument (not possible under default or typical PHP configurations that use much lower limit for memory that can be used by a script), or specified $jpeg_file_name must be a very large file.  Hence, this would be hard to trigger for remote attacker.