Unverified Commit 9eabf66a authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14589 ksmbd: fix Out-of-Bounds Write in ksmbd_vfs_stream_write

parents fb8c82bf b4b61e46
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6870,6 +6870,8 @@ int smb2_write(struct ksmbd_work *work)
	}

	offset = le64_to_cpu(req->Offset);
	if (offset < 0)
		return -EINVAL;
	length = le32_to_cpu(req->Length);

	if (req->Channel == SMB2_CHANNEL_RDMA_V1 ||