CVE-2023-34968: mdssvc: add missing "kMDSStoreMetaScopes" dict key in slrpc_fetch_pro...
authorRalph Boehme <slow@samba.org>
Sat, 17 Jun 2023 11:39:55 +0000 (13:39 +0200)
committerJule Anger <janger@samba.org>
Fri, 21 Jul 2023 12:05:35 +0000 (12:05 +0000)
We were adding the value, but not the key.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_server/mdssvc/mdssvc.c

index 6ccaef7f28425070db83d4be59660edc3b6ba47c..fccfd4afc8c693969fa43de34483271d37ca5d58 100644 (file)
@@ -730,6 +730,10 @@ static bool slrpc_fetch_properties(struct mds_ctx *mds_ctx,
        }
 
        /* kMDSStoreMetaScopes array */
+       result = dalloc_stradd(dict, "kMDSStoreMetaScopes");
+       if (result != 0) {
+               return false;
+       }
        array = dalloc_zero(dict, sl_array_t);
        if (array == NULL) {
                return NULL;