mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-22 10:10:14 -04:00
Fix NULL Pointer Dereference in QP-trie Cache add()
When RRSIG(rdtype) was independently cached before the RDATA for the rdtype itself, named would crash on the subsequent query for the RDATA itself. This has been fixed. ISC would like to thank Vitaly Simonovich for bringing this vulnerability to our attention.
This commit is contained in:
parent
b5837eba31
commit
53b2bddd65
1 changed files with 2 additions and 2 deletions
|
|
@ -2964,8 +2964,8 @@ add(qpcache_t *qpdb, qpcnode_t *qpnode, dns_slabheader_t *newheader,
|
|||
if (EXISTS(newheader) && NEGATIVE(newheader) &&
|
||||
!dns_rdatatype_issig(rdtype) && related != NULL)
|
||||
{
|
||||
dns_slabheader_t *oldsigheader = first_header(oldtop->related);
|
||||
mark_ancient(oldsigheader);
|
||||
dns_slabheader_t *relatedheader = first_header(related);
|
||||
mark_ancient(relatedheader);
|
||||
}
|
||||
|
||||
bindrdataset(qpdb, qpnode, newheader, now, nlocktype, tlocktype,
|
||||
|
|
|
|||
Loading…
Reference in a new issue