]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix race condition in getsigningtime()
authorAlessio Podda <alessio@isc.org>
Thu, 16 Apr 2026 11:20:50 +0000 (13:20 +0200)
committerAlessio Podda <alessio@isc.org>
Mon, 27 Apr 2026 16:09:47 +0000 (18:09 +0200)
commit0fe1d091f7c2124268796b9ae3e0a9ab3199bf04
treeb9609dcc168f69f1f27c9d6ac46485cb08042651
parent6eaf4490ab120735baffdfb60da3b4e257d694c5
Fix race condition in getsigningtime()

Compute qpzone_get_lock(elem->node) into a local variable while the
heap lock is still held, rather than dereferencing the stale elem
pointer after releasing the lock. A concurrent thread running
setsigningtime() (e.g. via IXFR apply on a worker thread) could free
the top-of-heap element between the heap lock release and the
dereference, causing a use-after-free.
lib/dns/qpzone.c