CVE-2021-3670 dsdb/anr: Do a copy of the potentially anr query before starting to...
authorAndrew Bartlett <abartlet@samba.org>
Thu, 18 Nov 2021 02:57:34 +0000 (15:57 +1300)
committerJule Anger <janger@samba.org>
Thu, 2 Dec 2021 10:34:10 +0000 (10:34 +0000)
commit9f4c89d0d3f530f7729f28b3183ade581e76f37a
treee3288d055da57f0c20b565b6f6504dd057c4803e
parent1142f18ff1d8e8b66e51fe5a1f591f55ba5f0d13
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>
(cherry picked from commit 5f0590362c5c0c5ee20503a67467f9be2d50e73b)
source4/dsdb/samdb/ldb_modules/anr.c