Bug 991434 - (CVE-2016-6207) VUL-0: CVE-2016-6207: php: Integer overflow error within _gdContributionsAlloc()
(CVE-2016-6207)
VUL-0: CVE-2016-6207: php: Integer overflow error within _gdContributionsAlloc()
Status: RESOLVED FIXED
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P3 - Medium : Normal
: ---
Assigned To: Security Team bot
Security Team bot
https://smash.suse.de/issue/171232/
CVSSv2:RedHat:CVE-2016-6207:4.3:(AV:N...
:
Depends on:
Blocks: 991622
  Show dependency treegraph
 
Reported: 2016-08-01 09:07 UTC by Sebastian Krahmer
Modified: 2016-11-01 15:23 UTC (History)
3 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Krahmer 2016-08-01 09:07:59 UTC
Quoting from RH BZ:

An integer overflow vulnerability was found in _gdContributionsAlloc() function in gd_interpolation.c that can lead to out-of-bounds write.


rh#1359800

References:
https://bugzilla.redhat.com/show_bug.cgi?id=1359800
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-6207
http://people.canonical.com/~ubuntu-security/cve/2016/CVE-2016-6207.html
http://www.debian.org/security/2016/dsa-3630
Comment 1 Petr Gajdos 2016-08-02 07:45:01 UTC
Fix for bug #72558, Integer overflow error within _gdContributionsAlloc()
http://git.php.net/?p=php-src.git;a=commit;h=d1a491acf31cf6d2ba65cc7c46fe963a510cd91f

improve fix #72558, while (u>=0) with unsigned int will always be true
http://git.php.net/?p=php-src.git;a=commit;h=df0951508920d3e8400c99d058fa213397b752f8

improve fix #72558, free contribRow as well
http://git.php.net/?p=php-src.git;a=commit;h=48e76abadd17a090259db77f3294d870fbc31ba5
Comment 2 Petr Gajdos 2016-08-02 08:25:48 UTC
For libgd, please file a new bug report, thanks!
Comment 3 Petr Gajdos 2016-08-03 14:54:26 UTC
https://bugs.php.net/bug.php?id=72558
Comment 4 Petr Gajdos 2016-08-04 07:28:29 UTC
The testcase in the php bug is useful only for 12/php7. For the php5, the code is there only for 13.2/php5 and 12/php5.

AFTER I get

$ php test.php
PHP Warning:  imagescale(): gd warning: product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
 in /991434/test.php on line 5
$
Comment 5 Petr Gajdos 2016-08-04 08:54:28 UTC
I believe all affected code streams fixed.
Comment 6 Bernhard Wiedemann 2016-08-04 10:02:50 UTC
This is an autogenerated message for OBS integration:
This bug (991434) was mentioned in
https://build.opensuse.org/request/show/416889 13.2 / php5
Comment 8 Swamp Workflow Management 2016-08-15 13:10:17 UTC
openSUSE-SU-2016:2071-1: An update that fixes 12 vulnerabilities is now available.

Category: security (moderate)
Bug References: 987580,988032,991422,991424,991426,991427,991428,991429,991430,991433,991434,991437
CVE References: CVE-2016-5399,CVE-2016-6128,CVE-2016-6161,CVE-2016-6207,CVE-2016-6288,CVE-2016-6289,CVE-2016-6290,CVE-2016-6291,CVE-2016-6292,CVE-2016-6295,CVE-2016-6296,CVE-2016-6297
Sources used:
openSUSE 13.2 (src):    php5-5.6.1-72.1
Comment 9 Swamp Workflow Management 2016-09-28 13:11:44 UTC
SUSE-SU-2016:2408-1: An update that fixes 24 vulnerabilities is now available.

Category: security (important)
Bug References: 987530,987580,988032,991422,991424,991426,991427,991428,991429,991430,991433,991434,991437,997206,997207,997208,997210,997211,997220,997225,997230,997248,997257
CVE References: CVE-2014-3587,CVE-2016-3587,CVE-2016-5399,CVE-2016-6128,CVE-2016-6161,CVE-2016-6207,CVE-2016-6288,CVE-2016-6289,CVE-2016-6290,CVE-2016-6291,CVE-2016-6292,CVE-2016-6295,CVE-2016-6296,CVE-2016-6297,CVE-2016-7124,CVE-2016-7125,CVE-2016-7126,CVE-2016-7127,CVE-2016-7128,CVE-2016-7129,CVE-2016-7130,CVE-2016-7131,CVE-2016-7132,CVE-2016-7134
Sources used:
SUSE Linux Enterprise Software Development Kit 12-SP1 (src):    php5-5.5.14-73.1
SUSE Linux Enterprise Module for Web Scripting 12 (src):    php5-5.5.14-73.1
Comment 10 Swamp Workflow Management 2016-10-04 15:13:03 UTC
openSUSE-SU-2016:2451-1: An update that fixes 24 vulnerabilities is now available.

Category: security (important)
Bug References: 987530,987580,988032,991422,991424,991426,991427,991428,991429,991430,991433,991434,991437,997206,997207,997208,997210,997211,997220,997225,997230,997248,997257
CVE References: CVE-2014-3587,CVE-2016-3587,CVE-2016-5399,CVE-2016-6128,CVE-2016-6161,CVE-2016-6207,CVE-2016-6288,CVE-2016-6289,CVE-2016-6290,CVE-2016-6291,CVE-2016-6292,CVE-2016-6295,CVE-2016-6296,CVE-2016-6297,CVE-2016-7124,CVE-2016-7125,CVE-2016-7126,CVE-2016-7127,CVE-2016-7128,CVE-2016-7129,CVE-2016-7130,CVE-2016-7131,CVE-2016-7132,CVE-2016-7134
Sources used:
openSUSE Leap 42.1 (src):    php5-5.5.14-59.1
Comment 11 Andreas Stieger 2016-10-05 15:24:43 UTC
done
Comment 12 Swamp Workflow Management 2016-10-05 19:10:33 UTC
SUSE-SU-2016:2460-1: An update that solves 29 vulnerabilities and has two fixes is now available.

Category: security (important)
Bug References: 1001950,987580,988032,991422,991424,991426,991427,991428,991429,991430,991434,991437,995512,997206,997207,997208,997210,997211,997220,997225,997230,997247,997248,997257,999313,999679,999680,999684,999685,999819,999820
CVE References: CVE-2016-4473,CVE-2016-5399,CVE-2016-6128,CVE-2016-6161,CVE-2016-6207,CVE-2016-6289,CVE-2016-6290,CVE-2016-6291,CVE-2016-6292,CVE-2016-6295,CVE-2016-6296,CVE-2016-6297,CVE-2016-7124,CVE-2016-7125,CVE-2016-7126,CVE-2016-7127,CVE-2016-7128,CVE-2016-7129,CVE-2016-7130,CVE-2016-7131,CVE-2016-7132,CVE-2016-7133,CVE-2016-7134,CVE-2016-7412,CVE-2016-7413,CVE-2016-7414,CVE-2016-7416,CVE-2016-7417,CVE-2016-7418
Sources used:
SUSE Linux Enterprise Software Development Kit 12-SP1 (src):    php7-7.0.7-15.1
SUSE Linux Enterprise Module for Web Scripting 12 (src):    php7-7.0.7-15.1
Comment 13 Swamp Workflow Management 2016-11-01 15:23:21 UTC
SUSE-SU-2016:2460-2: An update that solves 29 vulnerabilities and has two fixes is now available.

Category: security (important)
Bug References: 1001950,987580,988032,991422,991424,991426,991427,991428,991429,991430,991434,991437,995512,997206,997207,997208,997210,997211,997220,997225,997230,997247,997248,997257,999313,999679,999680,999684,999685,999819,999820
CVE References: CVE-2016-4473,CVE-2016-5399,CVE-2016-6128,CVE-2016-6161,CVE-2016-6207,CVE-2016-6289,CVE-2016-6290,CVE-2016-6291,CVE-2016-6292,CVE-2016-6295,CVE-2016-6296,CVE-2016-6297,CVE-2016-7124,CVE-2016-7125,CVE-2016-7126,CVE-2016-7127,CVE-2016-7128,CVE-2016-7129,CVE-2016-7130,CVE-2016-7131,CVE-2016-7132,CVE-2016-7133,CVE-2016-7134,CVE-2016-7412,CVE-2016-7413,CVE-2016-7414,CVE-2016-7416,CVE-2016-7417,CVE-2016-7418
Sources used:
SUSE Linux Enterprise Module for Web Scripting 12 (src):    php7-7.0.7-15.1