]> git.ipfire.org Git - thirdparty/bind9.git/commit
Keep a local copy of the update rules to prevent UAF
authorMark Andrews <marka@isc.org>
Tue, 19 Nov 2024 14:20:42 +0000 (01:20 +1100)
committerMark Andrews <marka@isc.org>
Thu, 5 Dec 2024 03:40:34 +0000 (03:40 +0000)
commit44a54a29d89f8c7fcb9bbea2c87f7c0bd0393c45
tree705c13aa285ae2aeee38c8337181d97989e2bb3a
parentfb778a6500cdf5ac24c417e3d04113658fea6e1f
Keep a local copy of the update rules to prevent UAF

Previously, the update policy rules check was moved earlier in the
sequence, and the keep rule match pointers were kept to maintain the
ability to verify maximum records by type.

However, these pointers can become invalid if server reloading
or reconfiguration occurs before update completion. To prevent
this issue, extract the maximum records by type value immediately
during processing and only keep the copy of the values instead of the
full ssurule.
lib/ns/update.c