]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: dev: Fix a stack use-after-free in qpzone
authorEvan Hunt <each@isc.org>
Tue, 5 May 2026 23:19:59 +0000 (23:19 +0000)
committerEvan Hunt <each@isc.org>
Tue, 5 May 2026 23:19:59 +0000 (23:19 +0000)
commit82f67fc633b1f94f34fb0686cde5acaec05f2af7
tree6ed87f91e38b07c36e089d079b5731ac639b838f
parent386177ec6788a8ae27fb6647847409a95fa23f17
parentb26a860ec85930920baf7149193e6c3048a779a1
fix: dev: Fix a stack use-after-free in qpzone

In previous_closest_nsec(), a new qpreader was opened to search the NSEC
tree. It was possible for that to be used to update a QP iterator object
owned by the caller, and then be destroyed when the function returned.

This qpreader object isn't necessary anymore; since namespaces were
added to the QP trie in commit 15653c54a0, we can now just reuse the
existing reader for the main tree.

Closes #5942

Merge branch '5942-qpiter-fix' into 'main'

See merge request isc-projects/bind9!11955