]> git.ipfire.org Git - thirdparty/samba.git/commit
CVE-2020-10730: lib ldb: Check if ldb_lock_backend_callback called twice
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 12 May 2020 22:56:56 +0000 (10:56 +1200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 25 Jun 2020 08:43:52 +0000 (10:43 +0200)
commit9dd458956d7af1b4bbe505ba2ab72235e81c27d0
treecdfdb0b13cfaf6d2aaffc8cdf91a04920b8723e2
parentb2658b9432c6a6a03b9da269da6ede701c8322fb
CVE-2020-10730: lib ldb: Check if ldb_lock_backend_callback called twice

Prevent use after free issues if ldb_lock_backend_callback is called
twice, usually due to ldb_module_done being called twice. This can happen if a
module ignores the return value from function a function that calls
ldb_module_done as part of it's error handling.

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

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/common/ldb.c