mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
CVE-2013-4408:s4:dcerpc_smb: check for invalid frag_len in send_read_request_continue()
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10185 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
db5fff3bc9
commit
3be7907fd9
@ -163,6 +163,12 @@ static NTSTATUS send_read_request_continue(struct dcecli_connection *c, DATA_BLO
|
||||
} else {
|
||||
uint32_t frag_length = blob->length>=16?
|
||||
dcerpc_get_frag_length(blob):0x2000;
|
||||
|
||||
if (frag_length < state->data.length) {
|
||||
talloc_free(state);
|
||||
return NT_STATUS_RPC_PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
state->received = blob->length;
|
||||
state->data = data_blob_talloc(state, NULL, frag_length);
|
||||
if (!state->data.data) {
|
||||
|
Loading…
Reference in New Issue
Block a user