Integer overflow error within _gdContributionsAlloc()
| Sec Bug #72558 | Integer overflow error within _gdContributionsAlloc() | ||||
|---|---|---|---|---|---|
| Submitted: | 2016-07-07 14:00 UTC | Modified: | 2016-07-19 07:54 UTC | ||
| From: | cmb@php.net | Assigned: | stas (profile) | ||
| Status: | Closed | Package: | GD related | ||
| PHP Version: | 5.6.23 | OS: | * | ||
| Private report: | No | CVE-ID: | 2016-6207 | ||
[2016-07-07 14:00 UTC] cmb@php.net
Description: ------------ Secunia Research at Flexera Software has reported a vulnerability in LibGD, which can be exploited by malicious people to cause a DoS (Denial of Service). The vulnerability is caused due to an integer overflow error within the "_gdContributionsAlloc()" function (gd_interpolation.c) and can be exploited to cause an out-of-bounds memory write access. This DOS vulnerability would not actually affect PHP, if memory_limit is set to a reasonable value. Nonetheless, the issue should be fixed, of course. A respective patch has already been provided for libgd and will be deployed with libgd-2.2.3. The attached patch fixes this vulnerability in PHP's bundled libgd, and should probably go into PHP 5.6+. There has not yet been assigned a CVE for this issue, but Secunia Research might do that (not yet decided). As I have prepared the patch in advance, the PHPT and the commit message might have to be adapted to match the actual ticket number. Test script: --------------- See the supplied PHPT in the attached patch.
Patches
fix-72558 (last revision 2016-07-07 14:00 UTC by cmb)Pull Requests
History
AllCommentsChangesGit/SVN commits
[2016-07-07 15:05 UTC] pajoye@php.net
[2016-07-08 10:59 UTC] cmb@php.net
[2016-07-08 11:39 UTC] pajoye@php.net
[2016-07-08 11:39 UTC] pajoye@php.net
[2016-07-13 04:38 UTC] stas@php.net
-Assigned To: +Assigned To: pajoye
[2016-07-13 12:30 UTC] pajoye@php.net
[2016-07-13 12:48 UTC] cmb@php.net
[2016-07-13 13:31 UTC] pajoye@php.net
[2016-07-17 23:42 UTC] stas@php.net
[2016-07-18 07:18 UTC] stas@php.net
[2016-07-19 07:00 UTC] pajoye@php.net
-Assigned To: pajoye +Assigned To: stas
[2016-07-19 07:00 UTC] pajoye@php.net
[2016-07-19 07:54 UTC] stas@php.net
-Status: Assigned +Status: Closed
[2016-07-19 07:54 UTC] stas@php.net