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: tevent-0.10.1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=509113fcffdd0f371f8b32efc900d2102ef0cef7;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 2b3b25fa446..ac2f645e6ca 100644 --- a/source3/smbd/uid.c +++ b/source3/smbd/uid.c @@ -624,6 +624,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 */