Bug #75189 [NEW]: Inwalid read in zend_string_release()
| From: | fumfi dot 255 at gmail dot com | Date: | Mon, 11 Sep 2017 15:08:01 +0000 |
| Subject: | Bug #75189 [NEW]: Inwalid read in zend_string_release() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-211070@lists.php.net to get a copy of this message | ||
From: fumfi dot 255 at gmail dot com
Operating system: Xubuntu 16.04 x64
PHP version: 7.1.9
Package: *General Issues
Bug Type: Bug
Bug description:Inwalid read in zend_string_release()
Description:
------------
After some fuzz testing I found a crashing test case.
Version: 7.18
Command: php php_ir_zend_string_release.php
Faulting PHP script:
https://frankowicz.me/storage/crashes/php_ir_zend_string_release.txt
ASAN:
==3643==ERROR: AddressSanitizer: SEGV on unknown address 0x7f22bb400005
(pc 0x00000184bce4 bp 0x000002767b60 sp 0x7ffed871ccf0 T0)
==3643==The signal is caused by a READ memory access.
#0 0x184bce3 in zend_string_release
XYZ/php-7.1.8/Zend/zend_string.h:270:7
#1 0x184bce3 in zend_array_destroy
XYZ/php-7.1.8/Zend/zend_hash.c:1311
#2 0x192c600 in zend_object_std_dtor
XYZ/php-7.1.8/Zend/zend_objects.c:60:5
#3 0x1949bb5 in zend_objects_store_del
XYZ/php-7.1.8/Zend/zend_objects_API.c:178:8
#4 0x17c742f in _zval_dtor_func
XYZ/php-7.1.8/Zend/zend_variables.c:56:5
#5 0x184b84c in i_zval_ptr_dtor
XYZ/php-7.1.8/Zend/zend_variables.h:48:4
#6 0x184b84c in zend_array_destroy
XYZ/php-7.1.8/Zend/zend_hash.c:1305
#7 0x17c7463 in _zval_dtor_func
XYZ/php-7.1.8/Zend/zend_variables.c:43:5
#8 0x1767a30 in i_zval_ptr_dtor
XYZ/php-7.1.8/Zend/zend_variables.h:48:4
#9 0x1767a30 in zend_unclean_zval_ptr_dtor
XYZ/php-7.1.8/Zend/zend_execute_API.c:210
#10 0x1851027 in _zend_hash_del_el_ex
XYZ/php-7.1.8/Zend/zend_hash.c:997:3
#11 0x1851027 in _zend_hash_del_el
XYZ/php-7.1.8/Zend/zend_hash.c:1020
#12 0x1851027 in zend_hash_graceful_reverse_destroy
XYZ/php-7.1.8/Zend/zend_hash.c:1476
#13 0x1767f89 in shutdown_executor
XYZ/php-7.1.8/Zend/zend_execute_API.c:279:3
#14 0x17ce8ca in zend_deactivate XYZ/php-7.1.8/Zend/zend.c:999:2
#15 0x1564144 in php_request_shutdown
XYZ/php-7.1.8/main/main.c:1877:2
#16 0x1c4215c in do_cli XYZ/php-7.1.8/sapi/cli/php_cli.c:1160:3
#17 0x1c418e5 in main XYZ/php-7.1.8/sapi/cli/php_cli.c:1381:18
#18 0x7f22c87c782f in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#19 0x43ac28 in _start (/usr/local/bin/php+0x43ac28)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV XYZ/php-7.1.8/Zend/zend_string.h:270:7
in zend_string_release
==3643==ABORTING
--
Edit bug report at https://bugs.php.net/bug.php?id=75189&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75189&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75189&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75189&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75189&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75189&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75189&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75189&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75189&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75189&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75189&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75189&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75189&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75189&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75189&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75189&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75189&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75189&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75189&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75189&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75189&r=mysqlcfg