mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
CVE-2019-10218 - s3: libsmb: Protect SMB2 client code from evil server returned names.
Disconnect with NT_STATUS_INVALID_NETWORK_RESPONSE if so. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14071 Signed-off-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
9f7a622b2b
commit
7ccc302b4b
@ -1442,6 +1442,13 @@ NTSTATUS cli_smb2_list(struct cli_state *cli,
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* Protect against server attack. */
|
||||
status = is_bad_finfo_name(cli, finfo);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
smbXcli_conn_disconnect(cli->conn, status);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (dir_check_ftype((uint32_t)finfo->mode,
|
||||
(uint32_t)attribute)) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user