CVE-2019-10197: smbd: make sure we reset current_user.{need,done}_chdir in become_root()
authorStefan Metzmacher <metze@samba.org>
Tue, 18 Jun 2019 12:04:08 +0000 (14:04 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 28 Aug 2019 07:39:46 +0000 (09:39 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14035

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/uid.c

index b6ef02a36b3a3e2a30a6487a01d89a771b51635a..9cf09c11a622569468b3a696220d9bdcaeff2e10 100644 (file)
@@ -629,6 +629,9 @@ void smbd_become_root(void)
        }
        push_conn_ctx();
        set_root_sec_ctx();
+
+       current_user.need_chdir = false;
+       current_user.done_chdir = false;
 }
 
 /* Unbecome the root user */