syscall: msg: validate iovec array itself as well as the buffers it points to

This commit is contained in:
2026-02-26 20:55:17 +00:00
parent f9bf4c618a
commit f8a7a4285f

View File

@@ -165,6 +165,10 @@ static bool validate_iovec(
size_t count,
bool rw)
{
if (!validate_access_r(task, iov, count * sizeof(struct iovec))) {
return false;
}
for (size_t i = 0; i < count; i++) {
bool ok = false;
const struct iovec *vec = &iov[i];