Commit eec04ea
smb: client: fix OOB in receive_encrypted_standard()
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: stable@vger.kernel.org
Reported-by: Robert Morris <rtm@csail.mit.edu>
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent a39b6ac commit eec04ea
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4943 | 4943 | | |
4944 | 4944 | | |
4945 | 4945 | | |
| 4946 | + | |
4946 | 4947 | | |
4947 | 4948 | | |
4948 | 4949 | | |
| |||
4971 | 4972 | | |
4972 | 4973 | | |
4973 | 4974 | | |
4974 | | - | |
| 4975 | + | |
| 4976 | + | |
| 4977 | + | |
| 4978 | + | |
4975 | 4979 | | |
4976 | 4980 | | |
4977 | 4981 | | |
4978 | 4982 | | |
4979 | | - | |
4980 | | - | |
4981 | | - | |
| 4983 | + | |
4982 | 4984 | | |
4983 | 4985 | | |
4984 | 4986 | | |
| |||
5002 | 5004 | | |
5003 | 5005 | | |
5004 | 5006 | | |
5005 | | - | |
5006 | | - | |
| 5007 | + | |
| 5008 | + | |
5007 | 5009 | | |
5008 | 5010 | | |
5009 | 5011 | | |
| |||
0 commit comments