CVE-2018-1140 ldb_tdb: Check for DN validity in add, rename and search
authorAndrew Bartlett <abartlet@samba.org>
Mon, 21 May 2018 03:23:53 +0000 (15:23 +1200)
committerKarolin Seeger <kseeger@samba.org>
Sat, 11 Aug 2018 06:16:04 +0000 (08:16 +0200)
commitebc3a1a137f0182d5c0b2b60d65578864b441e54
tree663f446fc3806ad9b9cfd8bcb50156e50049c417
parenta36db4fceb3235047f190f6d23841394b17aafec
CVE-2018-1140 ldb_tdb: Check for DN validity in add, rename and search

This ensures we fail with a good error code before an eventual ldb_dn_get_casefold() which
would otherwise fail.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13374
lib/ldb/ldb_tdb/ldb_search.c
lib/ldb/ldb_tdb/ldb_tdb.c