rust-vmm / vhost

Apache License 2.0
126 stars 64 forks source link

vhost-user-backend: check `index` in set_vring_base() #212

Closed stefano-garzarella closed 7 months ago

stefano-garzarella commented 7 months ago

VHostUserHandler::set_vring_base() lacks validation of the input parameter index, which is used for indexing an internal vector and could potentially lead to a Out-of-Bounds write resulting in a panic.

Closes #211

Ablu commented 7 months ago

@stefano-garzarella: Github claims conflicts that require manual resolving here.

stefano-garzarella commented 7 months ago

@stefano-garzarella: Github claims conflicts that require manual resolving here.

Yeah, just rebase.