diff options
| author | Yifan Zhang <yfzhang23@stu.pku.edu.cn> | 2026-11-03 10:45:19 +0800 |
|---|---|---|
| committer | Paulo Alcantara <pc@manguebit.org> | 2026-11-07 14:23:30 -0300 |
| commit | 0584b02669c3e76188097174b4f25ed13723e94c (patch) | |
| tree | 988ba7ba5a4a1b8c0a389db7de5b3e0ad2d7f04f /tools/perf/scripts/python | |
| parent | 51b4bf5fe7c90ebf08599b9a3c7620b4a3fd4b22 (diff) | |
smb: client: bound invalid NTLMSSP signature diagnostic
The NTLMSSP Signature field is an eight-byte binary value and need not be
NUL-terminated. decode_ntlmssp_challenge() prints it with %s on the
signature-mismatch path, so the diagnostic can continue beyond the received
blob until it encounters a zero byte.
KASAN reports:
BUG: KASAN: slab-out-of-bounds in string
Read of size 1
string
vsnprintf
_printk
decode_ntlmssp_challenge
Print the fixed-width field with the bounded hexadecimal format.
The patched kernel reaches the invalid-signature path and returns -EINVAL
without a KASAN report.
Fixes: 0b3cc858003b ("[CIFS] NTLMSSP reenabled after move from connect.c to sess.c")
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Yifan Zhang <yfzhang23@stu.pku.edu.cn>
Cc: stable@vger.kernel.org
Signed-off-by: Paulo Alcantara <pc@manguebit.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
