]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix UAF in ccmsg.c when reading stopped before sending
authorOndřej Surý <ondrej@isc.org>
Thu, 8 Feb 2024 11:31:09 +0000 (12:31 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 8 Feb 2024 16:24:11 +0000 (17:24 +0100)
commit315aa3135aabab6dbaac76e64b5196ced7bcb0f4
tree866e71e7e294e026d1857089e20d79d94fdb6858
parent88a14985dbd7093df73c46e00a74539382e79e16
Fix UAF in ccmsg.c when reading stopped before sending

When shutting down the whole server, the reading could stop and detach
from controlconnection before sending is done.  If send callback then
detaches from the last controlconnection handle, the ccmsg would be
invalidated after the send callback and thus we must not access ccmsg
after calling the send_cb().
lib/isccc/ccmsg.c