[php-src] PR #16349: Fix OSS-Fuzz #371445205: Heap-use-after-free in attr_free
| From: | nielsdos | Date: | Thu, 10 Oct 2024 21:10:42 +0000 |
| Subject: | [php-src] PR #16349: Fix OSS-Fuzz #371445205: Heap-use-after-free in attr_free | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29139@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16349
Author: nielsdos
zend_hash_get_current_key() does not return a string with incremented refcount, so it shouldn't
get released. This release caused a UAF later when the attribute was destroyed. This wasn't
noticed earlier because object_init_with_constructor() was only ever tested with interned strings.