From: Stefan Metzmacher Date: Tue, 18 Jun 2019 12:04:08 +0000 (+0200) Subject: CVE-2019-10197: smbd: make sure we reset current_user.{need,done}_chdir in become_root() X-Git-Tag: samba-4.9.13~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=104557f2ad5c67fab257927d9aa0931a74113ce2;p=thirdparty%2Fsamba.git CVE-2019-10197: smbd: make sure we reset current_user.{need,done}_chdir in become_root() BUG: https://bugzilla.samba.org/show_bug.cgi?id=14035 Signed-off-by: Stefan Metzmacher --- diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index b6ef02a36b3..9cf09c11a62 100644 --- a/source3/smbd/uid.c +++ b/source3/smbd/uid.c @@ -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 */