]> git.ipfire.org Git - thirdparty/bind9.git/commit
Check if the fetch is shutting down in resume_dslookup()
authorAram Sargsyan <aram@isc.org>
Thu, 10 Feb 2022 20:06:30 +0000 (20:06 +0000)
committerMichał Kępień <michal@isc.org>
Wed, 16 Mar 2022 21:11:49 +0000 (22:11 +0100)
commitf0f3370e14df26eff427579795ae4eeccefad5bc
treebe03a8650de66d81ba769e270fa3abc276eb2402
parent71dd44339f4cf616e514cefa1ac1794d7a14e7db
Check if the fetch is shutting down in resume_dslookup()

The fetch can be in the shutting down state when resume_dslookup() is
trying to operate on it.

This is also a security issue, because a malicious actor can set up a
name server which delays certain queries in such a way that the fetch
will time out and shut down, which will cause named to crash.

Add a check to see if the fetch has the shutting down attribute set,
and cancel any further operations on it in such case.

A similar bug had been fixed earlier for the resume_qmin() function,
see [GL #966].
lib/dns/resolver.c