CVE-2016-10166: Integer Overflow

Published Aug 6, 2016
·
Updated

An unsigned integer overflow vulnerability was found in gdContributionsAlloc function.

Upstream patch:

https://github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35

CVE assignment:

http://www.openwall.com/lists/oss-security/2017/01/28/6

Other sources

Fixed bug (efree() on uninitialized Heap data in imagescale leads to use-after-free). (CVE-2016-10166)

PHP

Integer underflow in the gdContributionsAlloc function in gdinterpolation.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via vectors related to decrementing the u variable.

Affected Software

9 affected componentsFixes available
redhat/rh-php71-php<0:7.1.30-1.el7
0:7.1.30-1.el7
redhat/rh-php72-php<0:7.2.24-1.el7
0:7.2.24-1.el7
redhat/gd<2.2.4
2.2.4
redhat/php<5.6.40
5.6.40
redhat/php<7.1.26
7.1.26
redhat/php<7.2.14
7.2.14
redhat/php<7.3.1
7.3.1
Libgd Libgd<=2.2.3
PHP PHP<7.1.26
7.1.26

Event History

Aug 6, 2016
CVE Published
12:00 AM
Mar 15, 2017
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2016-10166?

CVE-2016-10166 has been classified with a moderate severity due to the potential for an unsigned integer overflow leading to exploitation.

2

How do I fix CVE-2016-10166?

To fix CVE-2016-10166, upgrade to versions 0:7.1.30-1.el7, 0:7.2.24-1.el7 for rh-php71-php and rh-php72-php, or update to gd version 2.2.4.

3

Which software is affected by CVE-2016-10166?

CVE-2016-10166 affects rh-php71-php, rh-php72-php, PHP versions 5.6.40 and 7.1.26, and gd versions up to 2.2.3.

4

What is the impact of CVE-2016-10166?

The impact of CVE-2016-10166 includes potential Denial of Service or remote code execution due to the integer overflow vulnerability.

5

When was CVE-2016-10166 published?

CVE-2016-10166 was published in January 2017 as part of the ongoing efforts to address vulnerabilities in the libgd library.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203