From: Paolo Bonzini Date: Thu, 23 Oct 2014 12:54:14 +0000 (+0200) Subject: KVM: emulate: avoid accessing NULL ctxt->memopp X-Git-Tag: fixes-against-v3.18-rc2~9^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a430c9166312e1aa3d80bce32374233bdbfeba32;p=pandora-kernel.git 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: Andy Lutomirski Cc: stable@vger.kernel.org Fixes: 41061cdb98a0bec464278b4db8e894a3121671f5 Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed