]> git.ipfire.org Git - thirdparty/samba.git/commit
s3: smbd: init_smb1_request() isn't being passed zero'ed memory from any codepath.
authorJeremy Allison <jra@samba.org>
Sat, 12 Aug 2023 00:14:38 +0000 (17:14 -0700)
committerJule Anger <janger@samba.org>
Fri, 18 Aug 2023 13:04:17 +0000 (13:04 +0000)
commitd2c16aada79fa13dcc2e60b05586388f819d93d6
treea21b5ab8eee9f15d739843e194e009fd58c58358
parentfec8cda70bcf05df5fabe2f6c1717b0640d4be42
s3: smbd: init_smb1_request() isn't being passed zero'ed memory from any codepath.

If a client does a SMB1 NEGPROT followed by SMB1 TCON
then req->session is left uninitialized.

Show this causes a crash by deliberately initializing
req->session to an invalid pointer. This will be removed
once the test shows the crash, and the fix is added to
cause init_smb1_request() to zero the memory passed in.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
(Back-ported from commit f02f74e931f5821c7b7c1be2b8f0fb60c9a69b19)
source3/smbd/smb2_process.c