Skip to content
Commit 0c26606c authored by Tim Gardner's avatar Tim Gardner Committed by Steve French
Browse files

cifs: ntstatus_to_dos_map[] is not terminated



Functions that walk the ntstatus_to_dos_map[] array could
run off the end. For example, ntstatus_to_dos() loops
while ntstatus_to_dos_map[].ntstatus is not 0. Granted,
this is mostly theoretical, but could be used as a DOS attack
if the error code in the SMB header is bogus.

[Might consider adding to stable, as this patch is low risk - Steve]

Reviewed-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent dde2356c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment