CVE-2021-3670 dsdb/anr: Do a copy of the potentially anr query before starting to...
commit5f0590362c5c0c5ee20503a67467f9be2d50e73b
authorAndrew Bartlett <abartlet@samba.org>
Thu, 18 Nov 2021 02:57:34 +0000 (18 15:57 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 25 Nov 2021 01:41:30 +0000 (25 01:41 +0000)
treea21727be621317e39639a55dd947da79cfe2ebe0
parent2b3af3b560c9617a233c131376c870fce146c002
CVE-2021-3670 dsdb/anr: Do a copy of the potentially anr query before starting to modify it

RN: Do not modify the caller-supplied memory in the anr=* handling to
allow clear logging of the actual caller request after it has been processed.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14694

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/anr.c