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:55 -0500
committerPaulo Alcantara <pc@manguebit.org>2026-09-17 15:03:59 -0300
commite83330c55edc0c3ac08aa6c95e49e4694c65523b (patch)
tree2d96eb63894d0c07650352feac5b4b6350868656 /tools/perf/scripts/python/bin/stackcollapse-record
parentf73726b83e4756fdaa099e1bc1143293bd57ad79 (diff)
downloadlinux-next-e83330c55edc0c3ac08aa6c95e49e4694c65523b.tar.gz
linux-next-e83330c55edc0c3ac08aa6c95e49e4694c65523b.zip
smb: client: fix missing lower-bound check on DFS referral string offsets
parse_dfs_referrals() checks that DfsPathOffset and NetworkAddressOffset do not exceed the buffer end, but fails to check that they don't point inside the referral header itself. If a server provides an offset smaller than sizeof(struct dfs_referral_level_3), the derived string pointer overlaps with the struct fields, causing cifs_strndup_from_utf16() to interpret header data as UTF-16 strings. Fix this by enforcing that string offsets are at least sizeof(*ref). Fixes: 4ecce920e13a ("CIFS: move DFS response parsing out of SMB1 code") 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