[php-src] PR #25853: Fix UAF when a stream notification callback closes the stream

From: Date: Fri, 27 Nov 2026 21:11:08 +0000
Subject: [php-src] PR #25853: Fix UAF when a stream notification callback closes the stream
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-41140@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25853 Author: bukka Progress and completed notifications are dispatched from the socket and TLS read and write operations and from the stream buffer filling and writing code, all of which keep using the stream after the notifier returns. A notification callback calling fclose() on that stream freed it under them. Set PHP_STREAM_FLAG_NO_FCLOSE on the stream while the notifier runs, as is already done for user filters, so that fclose() fails with a warning.

« previous php.git-pulls (#41140) next »