aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vmalloc.py
diff options
context:
space:
mode:
authorNamjae Jeon <[email protected]>2023-12-20 15:52:11 +0900
committerSteve French <[email protected]>2023-12-27 22:55:36 -0600
commitd10c77873ba1e9e6b91905018e29e196fd5f863d (patch)
treea12180e41c83d8a43e1e1ea4ff7ab02208c5856e /scripts/gdb/linux/vmalloc.py
parentceb6a6f023fd3e8b07761ed900352ef574010bcb (diff)
ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
If ->NameOffset/Length is bigger than ->CreateContextsOffset/Length, ksmbd_check_message doesn't validate request buffer it correctly. So slab-out-of-bounds warning from calling smb_strndup_from_utf16() in smb2_open() could happen. If ->NameLength is non-zero, Set the larger of the two sums (Name and CreateContext size) as the offset and length of the data area. Reported-by: Yang Chaoming <[email protected]> Cc: [email protected] Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions