XSA-107

CVE-2014-6268


问题描述

http://xenbits.xen.org/xsa/advisory-107.html

Mishandling of uninitialised FIFO-based event channel control blocks:

When using the FIFO-based event channels, there are no checks for the existence of a control block when binding an event or moving it to a different VCPU. This is because events may be bound when the ABI is in 2-level mode (e.g., by the toolstack before the domain is started). The guest may trigger a Xen crash in evtchn_fifo_set_pending() if:

In case (a), Xen will crash when looking up the current queue. In (b), Xen will crash when looking up the old queue (which defaults to a queue on VCPU 0).

lack of check (missing control block for event)


Patch描述

http://xenbits.xen.org/xsa/xsa107-4.4.patch

By allocating all the per-VCPU structures when enabling the FIFO ABI, we can be sure that v->evtchn_fifo is always valid.

EVTCHNOP_init_control_block for all the other CPUs need only map the shared control block.

A single check in evtchnfifoset_pending() before accessing the control block fixes all cases where the guest has not initialized some control blocks.

add some checks and initialization.


Consequence

A buggy or malicious guest can crash the host.

DoS