diff options
author | Paulo Alcantara <[email protected]> | 2023-12-05 21:49:29 -0300 |
---|---|---|
committer | Steve French <[email protected]> | 2023-12-05 21:12:00 -0600 |
commit | 92414333eb375ed64f4ae92d34d579e826936480 (patch) | |
tree | 4b78f81f770cc7a94e1b448c585f25953b5eda9e /lib/overflow_kunit.c | |
parent | c54fc3a4f375663f2361a9cbb2955fb4ef912879 (diff) |
smb: client: fix potential NULL deref in parse_dfs_referrals()
If server returned no data for FSCTL_DFS_GET_REFERRALS, @dfs_rsp will
remain NULL and then parse_dfs_referrals() will dereference it.
Fix this by returning -EIO when no output data is returned.
Besides, we can't fix it in SMB2_ioctl() as some FSCTLs are allowed to
return no data as per MS-SMB2 2.2.32.
Fixes: 9d49640a21bf ("CIFS: implement get_dfs_refer for SMB2+")
Cc: [email protected]
Reported-by: Robert Morris <[email protected]>
Signed-off-by: Paulo Alcantara (SUSE) <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/overflow_kunit.c')
0 files changed, 0 insertions, 0 deletions