Bug 559091 (CVE-2010-0298) - CVE-2010-0298 kvm: emulator privilege escalation
Summary: CVE-2010-0298 kvm: emulator privilege escalation
Alias: CVE-2010-0298
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 559093 559095 559096 560903
TreeView+ depends on / blocked
Reported: 2010-01-27 06:10 UTC by Eugene Teo (Security Response)
Modified: 2019-09-29 12:34 UTC (History)
19 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-04-06 08:06:40 UTC

Attachments (Terms of Use)
Proposed patch (13.34 KB, patch)
2010-01-27 06:15 UTC, Eugene Teo (Security Response)
no flags Details | Diff

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0088 0 normal SHIPPED_LIVE Important: kvm security and bug fix update 2010-02-09 10:01:51 UTC
Red Hat Product Errata RHSA-2010:0095 0 normal SHIPPED_LIVE Important: rhev-hypervisor security and bug fix update 2010-02-09 15:23:40 UTC

Description Eugene Teo (Security Response) 2010-01-27 06:10:02 UTC
Gleb Natapov found a bug in KVM that allows code that runs in CPL3 (inside a 
guest) to modify memory in CPL0 (inside a guest). The bug is in x86 emulator 
code. When emulator accesses guest's memory on behalf of the gust's code it does this with the CPL0 privilege, so if emulated instruction is executed by 
unprivileged code it can still modify memory that otherwise is not accessible to it. To tak advantage of this vulnerability malicious code should trick KVM to emulate malicious instruction.  KVM emulates IO and MMIO instructions, so if unprivileged process has access to some IO port or MMIO region (framebuffer for instance) the bug is very easy to use to modify arbitrary location in kernel memory.

Comment 2 Eugene Teo (Security Response) 2010-01-27 06:15:12 UTC
Created attachment 386981 [details]
Proposed patch

Comment 9 errata-xmlrpc 2010-02-09 10:01:54 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2010:0088 https://rhn.redhat.com/errata/RHSA-2010-0088.html

Comment 10 errata-xmlrpc 2010-02-09 15:24:06 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Virtualization for RHEL-5

Via RHSA-2010:0095 https://rhn.redhat.com/errata/RHSA-2010-0095.html

Comment 12 Eugene Teo (Security Response) 2010-11-22 09:11:42 UTC
Upstream commit:

Note You need to log in before you can comment on or make changes to this bug.