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

!14470 ksmbd: fix Out-of-Bounds Read in ksmbd_vfs_stream_read

parents ebae66c4 ce83466e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -6319,6 +6319,10 @@ int smb2_read(struct ksmbd_work *work)
	}

	offset = le64_to_cpu(req->Offset);
	if (offset < 0) {
		err = -EINVAL;
		goto out;
	}
	length = le32_to_cpu(req->Length);
	mincount = le32_to_cpu(req->MinimumCount);