diff options
| author | Frank Sorenson <sorenson@redhat.com> | 2026-09-16 16:33:58 -0500 |
|---|---|---|
| committer | Paulo Alcantara <pc@manguebit.org> | 2026-09-17 15:04:12 -0300 |
| commit | b09d092eb24ad0110f16a9b7c1ed5d2a0c1733dc (patch) | |
| tree | 702c02e0fecc22e9ef800176a2ceb191c1584e8a /tools/perf/scripts/python/bin | |
| parent | eeb5ef6083e1cefa2ef75041b5597ff228b8d7bb (diff) | |
| download | linux-next-b09d092eb24ad0110f16a9b7c1ed5d2a0c1733dc.tar.gz linux-next-b09d092eb24ad0110f16a9b7c1ed5d2a0c1733dc.zip | |
smb: client: fix missing iov bounds check in parse_posix_sids()
In parse_posix_sids(), sidsbuf_end is calculated using the server-supplied
out_len without being validated against the actual length of the received
iov (iov_len).
If a server provides an inflated out_len, sidsbuf_end will point past the
end of the iov. This defeats the bounds guards in posix_info_sid_size(),
allowing out-of-bounds reads into adjacent kernel memory.
Fix this by rejecting responses where the calculated sidsbuf_end would
exceed the received iov boundaries or cause pointer wraparound.
Fixes: a90f37e3d7ac ("smb: client: parse owner/group when creating reparse points")
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')
0 files changed, 0 insertions, 0 deletions
