From: Andreas Schneider Date: Wed, 28 Sep 2016 05:22:32 +0000 (+0200) Subject: CVE-2018-16853: Do not segfault if client is not set X-Git-Tag: ldb-1.2.4~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09b9a9bed3aae0fbd945921849cd66ce9e22e0ea;p=thirdparty%2Fsamba.git CVE-2018-16853: Do not segfault if client is not set This can be triggered with FAST but we don't support this yet. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13571 Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- diff --git a/source4/kdc/mit-kdb/kdb_samba_policies.c b/source4/kdc/mit-kdb/kdb_samba_policies.c index 4364461302c..0b1265980b1 100644 --- a/source4/kdc/mit-kdb/kdb_samba_policies.c +++ b/source4/kdc/mit-kdb/kdb_samba_policies.c @@ -445,6 +445,14 @@ void kdb_samba_db_audit_as_req(krb5_context context, { struct mit_samba_context *mit_ctx; + /* + * FIXME: This segfaulted with a FAST test + * FIND_FAST: for , Unknown FAST armor type 0 + */ + if (client == NULL) { + return; + } + mit_ctx = ks_get_context(context); if (mit_ctx == NULL) { return;