[php-src] PR #22066: Fix GH-22062: SplDoublyLinkedList iterator UAF via destructor releasi…
| From: | devnexen | Date: | Sat, 16 May 2026 20:07:49 +0000 |
| Subject: | [php-src] PR #22066: Fix GH-22062: SplDoublyLinkedList iterator UAF via destructor releasi… | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36142@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22066
Author: devnexen
…ng next node.
Pin the new traverse target via SPL_LLIST_CHECK_ADDREF before the shift/pop destructor runs.
Otherwise a destructor that unlinks the next node (e.g. offsetUnset) frees it, leaving the iterator
with a dangling pointer.