summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorFrank Sorenson <sorenson@redhat.com>2026-09-16 16:33:56 -0500
committerPaulo Alcantara <pc@manguebit.org>2026-09-17 15:04:03 -0300
commit1b3221bb121079ad79a1f3c3aa360ba649832e7a (patch)
tree51fbba82cde3ed4972940b7e1c3e66a6051affc9 /tools/perf/scripts/python/bin/stackcollapse-record
parente83330c55edc0c3ac08aa6c95e49e4694c65523b (diff)
downloadlinux-next-1b3221bb121079ad79a1f3c3aa360ba649832e7a.tar.gz
linux-next-1b3221bb121079ad79a1f3c3aa360ba649832e7a.zip
smb: client: reject short Next offsets in parse_server_interfaces()
In parse_server_interfaces(), the server-supplied Next offset is validated against bytes_left, but not against the size of the interface structure itself. A small, non-zero Next value can pass the bounds check but advance the pointer by less than sizeof(*p). This causes the next iteration of the loop to read misaligned, overlapping structure fields. Fix this by ensuring the Next offset is at least sizeof(*p). Fixes: 7d34ec36abb8 ("smb3: fix for slab out of bounds on mount to ksmbd") Cc: stable@vger.kernel.org Signed-off-by: Frank Sorenson <sorenson@redhat.com> Reviewed-by: David Howells <dhowells@redhat.com> Signed-off-by: Paulo Alcantara <pc@manguebit.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions