Bug #66112 [NEW]: Use after free condition in SOAP extension (segfault)

From: Date: Mon, 18 Nov 2013 12:52:46 +0000
Subject: Bug #66112 [NEW]: Use after free condition in SOAP extension (segfault)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182809@lists.php.net to get a copy of this message
From: martin dot koegler at brz dot gv dot at Operating system: Any PHP version: 5.5.6 Package: SOAP related Bug Type: Bug Bug description:Use after free condition in SOAP extension (segfault) Description: ------------ do_soap_call (ext/soap/soap.c) saves the values of SOAP_GLOBAL(typemap) (and other variables) and overrides them. After doing its work, it restores the old values. If the code in between invokes zend_bailout (eg. because of an error/exception), the zend_bailout is catched after the restore of the values. So SOAP_GLOBAL(typemap) is not restored. The remaining code executes using a invalid, potential freed typemap. Actual result: -------------- Segfault -- Edit bug report at https://bugs.php.net/bug.php?id=66112&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66112&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66112&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66112&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66112&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66112&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66112&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66112&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66112&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66112&r=support Expected behavior: https://bugs.php.net/fix.php?id=66112&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66112&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66112&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66112&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66112&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66112&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66112&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66112&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66112&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66112&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66112&r=mysqlcfg

« previous php.bugs (#182809) next »