Zend/zend_alloc.c in PHP 7.x before 7.0.10, when open_basedir is enabled, mishandles huge realloc operations, which allows remote attackers to cause a denial of service (integer overflow) or possibly have unspecified other impact via a long pathname.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Link | Tags |
---|---|
http://www.securityfocus.com/bid/92765 | vdb entry |
http://www.php.net/ChangeLog-7.php | release notes |
https://security.gentoo.org/glsa/201611-22 | vendor advisory |
https://github.com/php/php-src/commit/c2a13ced4272f2e65d2773e2ea6ca11c1ce4a911?w=1 | issue tracking patch |
http://openwall.com/lists/oss-security/2016/09/02/9 | mailing list |
https://bugs.php.net/bug.php?id=72742 | issue tracking exploit |