mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86/HVM: only allow ring 0 guest code to make hypercalls
Anything else would allow for privilege escalation.
This is CVE-2013-4554 / XSA-76.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
master commit: 5c447caaf4
master date: 2013-11-27 09:01:49 +0100
This commit is contained in:
1 parent
9229cff72f
commit
82b79aceed
1 file changed
+1
-1
@@ -3343,7 +3343,7 @@ int hvm_do_hypercall(struct cpu_user_regs *regs)
|
||||
case 4:
|
||||
case 2:
|
||||
hvm_get_segment_register(curr, x86_seg_ss, &sreg);
|
||||
if ( unlikely(sreg.attr.fields.dpl == 3) )
|
||||
if ( unlikely(sreg.attr.fields.dpl) )
|
||||
{
|
||||
default:
|
||||
regs->eax = -EPERM;
|
||||
|
||||