Vulnerability record
vhost-vdpa: drop the parent's vq callback before the call fd is released
In the Linux kernel, the following vulnerability has been resolved:
vhost-vdpa: drop the parent's vq callback before the call fd is released
VHOST_SET_VRING_CALL releases the previous call eventfd inside vhost_vring_ioctl() -- it swaps the new context into vq->call_ctx.ctx and then eventfd_ctx_put()s the old one, which is a synchronous kfree(). The parent vdpa device is only told about the change afterwards, when vhost_vdpa_vring_ioctl() reaches ops->set_vq_cb().
Parent drivers cache the pointer handed to them in vdpa_callback::trigger and do not take a reference on it, so throughout that…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources