Commit 7c9dde4
smb: client: fix OOB in receive_encrypted_standard()
jira SECO-47
cve CVE-2024-0565
commit eec04ea
upstream-diff no diff for the file content but the file location
has changed from fs/cifs/ to fs/smb/client/
Fix potential OOB in receive_encrypted_standard() if server returned a
large shdr->NextCommand that would end up writing off the end of
@next_buffer.
Fixes: b24df3e ("cifs: update receive_encrypted_standard to
handle compounded responses")
Cc: [email protected]
Reported-by: Robert Morris <[email protected]>
Signed-off-by: Paulo Alcantara (SUSE) <[email protected]>
Signed-off-by: Steve French <[email protected]>
Signed-off-by: Ronnie Sahlberg <[email protected]>1 parent f6bbf85 commit 7c9dde4
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4884 | 4884 | | |
4885 | 4885 | | |
4886 | 4886 | | |
| 4887 | + | |
4887 | 4888 | | |
4888 | 4889 | | |
4889 | 4890 | | |
| |||
4912 | 4913 | | |
4913 | 4914 | | |
4914 | 4915 | | |
4915 | | - | |
| 4916 | + | |
| 4917 | + | |
| 4918 | + | |
| 4919 | + | |
4916 | 4920 | | |
4917 | 4921 | | |
4918 | 4922 | | |
4919 | 4923 | | |
4920 | | - | |
4921 | | - | |
4922 | | - | |
| 4924 | + | |
4923 | 4925 | | |
4924 | 4926 | | |
4925 | 4927 | | |
| |||
4943 | 4945 | | |
4944 | 4946 | | |
4945 | 4947 | | |
4946 | | - | |
4947 | | - | |
| 4948 | + | |
| 4949 | + | |
4948 | 4950 | | |
4949 | 4951 | | |
4950 | 4952 | | |
| |||
0 commit comments