Files
Michael S. Tsirkin d033951e56 libvhost-user: protect against OOB memory table access
SET_MEM_TABLE handler uses nregions from the message as a loop
bound without checking that it is below VHOST_MEMORY_BASELINE_NREGIONS,
so a malformed message causes an out-of-bounds access to the
regions[] and fds[] arrays.

Frontend is trusted so not a security problem, but
an OOB access is not a nice way to handle errors.
Check, and panic.

Fixes: 7b2e5c65f4 ("contrib: add libvhost-user")
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4403
Cc: Stefano Garzarella <sgarzare@redhat.com>
Reported-by: Omer Can Vural <can.omer.5306@outlook.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <8adc88f2f535ab0566a5df1c66db728112dd6f74.1789469161.git.mst@redhat.com>
2026-10-28 12:26:09 -04:00
..
2026-07-27 15:13:20 -04:00
2026-08-26 16:12:51 +02:00
2026-08-20 09:24:57 +02:00
2026-08-26 16:12:51 +02:00
2026-08-26 16:12:51 +02:00
2026-08-26 16:12:51 +02:00
2026-08-26 16:12:51 +02:00
2026-08-26 16:12:51 +02:00