[php-src] PR #25694: Fix GH-25693: UAF of last response headers read after RSHUTDOWN
| From: | lazerg | Date: | Tue, 24 Nov 2026 03:29:00 +0000 |
| Subject: | [php-src] PR #25694: Fix GH-25693: UAF of last response headers read after RSHUTDOWN | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40943@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25694
Author: lazerg
The basic RSHUTDOWN freed
BG(last_http_headers) but left the zval pointing at the freed
array. A user stream wrapper closed later in shutdown could still call
http_get_last_response_headers() and get the dangling array back. Reset it to UNDEF
after the dtor, the same way http_clear_last_response_headers() does.
Fixes #25693