Skip to content
Commit a430c916 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: emulate: avoid accessing NULL ctxt->memopp



A failure to decode the instruction can cause a NULL pointer access.
This is fixed simply by moving the "done" label as close as possible
to the return.

This fixes CVE-2014-8481.

Reported-by: default avatarAndy Lutomirski <luto@amacapital.net>
Cc: stable@vger.kernel.org
Fixes: 41061cdb
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 08da44ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment