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

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

parents 2f4f29dd 7006d14f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -6653,6 +6653,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);