diff options
| author | Yichong Chen <chenyichong@uniontech.com> | 2026-07-16 13:25:23 +0800 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-07-19 22:33:38 -0500 |
| commit | f6f5ee2aa33b350c671721b965251c42cebb962e (patch) | |
| tree | 81098c20ee69119dc2103011e23e788ef1fe307e /tools/lib/python | |
| parent | 1590cf0329716306e948a8fc29f1d3ee87d3989f (diff) | |
smb: client: validate DFS referral PathConsumed
parse_dfs_referrals() validates that the response contains the fixed
referral entry array and, on for-next, the per-referral string offsets.
However, the response also contains a PathConsumed value that is later
used for DFS path parsing.
If a malformed response provides a PathConsumed value larger than the
search name, later DFS parsing can advance beyond the end of the path.
Validate PathConsumed against the search name length before storing it in
the parsed referral.
Fixes: 4ecce920e13a ("CIFS: move DFS response parsing out of SMB1 code")
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Yichong Chen <chenyichong@uniontech.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
