The Samba-Bugzilla – Attachment 11566 Details for
Bug 11581
Samba segfaults because of a use after free in the smb2 server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for v4-3-test
tmp43.diff.txt (text/plain), 1.74 KB, created by
Stefan Metzmacher
on 2015-11-02 12:31:33 UTC
(
hide
)
Description:
Patch for v4-3-test
Filename:
MIME Type:
Creator:
Stefan Metzmacher
Created:
2015-11-02 12:31:33 UTC
Size:
1.74 KB
patch
obsolete
>From b2ce62ed81c07cb29b1091d6be806f2ac50adb46 Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <asn@samba.org> >Date: Fri, 30 Oct 2015 09:01:28 +0100 >Subject: [PATCH] s3-smbd: Fix use after issue in smbd_smb2_request_dispatch() > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=11581 > >Signed-off-by: Andreas Schneider <asn@samba.org> >Reviewed-by: Stefan Metzmacher <metze@samba.org> > >Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> >Autobuild-Date(master): Fri Oct 30 19:49:47 CET 2015 on sn-devel-104 > >(cherry picked from commit db9e10d071793b91b3f3d40225a8634e3c34f65e) >--- > source3/smbd/smb2_server.c | 15 ++++++++------- > 1 file changed, 8 insertions(+), 7 deletions(-) > >diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c >index 2ea997e..ddaba38 100644 >--- a/source3/smbd/smb2_server.c >+++ b/source3/smbd/smb2_server.c >@@ -1703,13 +1703,6 @@ static NTSTATUS smbd_smb2_request_process_cancel(struct smbd_smb2_request *req) > search_message_id = BVAL(inhdr, SMB2_HDR_MESSAGE_ID); > search_async_id = BVAL(inhdr, SMB2_HDR_PID); > >- /* >- * we don't need the request anymore >- * cancel requests never have a response >- */ >- DLIST_REMOVE(xconn->smb2.requests, req); >- TALLOC_FREE(req); >- > for (cur = xconn->smb2.requests; cur; cur = cur->next) { > const uint8_t *outhdr; > uint64_t message_id; >@@ -2350,6 +2343,14 @@ NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req) > req->profile, _INBYTES(req)); > return_value = smbd_smb2_request_process_cancel(req); > SMBPROFILE_IOBYTES_ASYNC_END(req->profile, 0); >+ >+ /* >+ * We don't need the request anymore cancel requests never >+ * have a response. >+ */ >+ DLIST_REMOVE(xconn->smb2.requests, req); >+ TALLOC_FREE(req); >+ > break; > > case SMB2_OP_KEEPALIVE: >-- >1.9.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
vl
:
review-
Actions:
View
Attachments on
bug 11581
:
11566
|
11569