CVE-2012-0217: Buffer Overflow

Published Apr 17, 2012
·
Updated

On Intel CPUs sysret to non-canonical address causes a fault on the sysret instruction itself after the stack pointer is set to guest value but before the CPL is changed. Systems running on AMD CPUs are not vulnerable to this issue as sysret on AMD CPUs does not generate a fault before the CPL change.

On Xen, a privileged user on a 64 bit PV guest kernel running on a 64 bit hypervisor could use this flaw to escalate privileges to that of the host. Depending on the particular guest kernel it is also possible that non-privileged guest users could also elevate their privileges to that of the host.

For Red Hat Enterprise Linux guests, only privileged guest users can exploit this issue. HVM guests and 32-bit PV guests cannot be used to exploit this issue.

Acknowledgements:

Red Hat would like to thank the Xen project for reporting this issue. Upstream acknowledges Rafal Wojtczuk as the original reporter.

Other sources

The x86-64 kernel system-call functionality in Xen 4.1.2 and earlier, as used in Citrix XenServer 6.0.2 and earlier and other products; Oracle Solaris 11 and earlier; illumos before r13724; Joyent SmartOS before 20120614T184600Z; FreeBSD before 9.0-RELEASE-p3; NetBSD 6.0 Beta and earlier; Microsoft Windows Server 2008 R2 and R2 SP1 and Windows 7 Gold and SP1; and possibly other operating systems, when running on an Intel processor, incorrectly uses the sysret path in cases where a certain address is not a canonical address, which allows local users to gain privileges via a crafted application. NOTE: because this issue is due to incorrect use of the Intel specification, it should have been split into separate identifiers; however, there was some value in preserving the original mapping of the multi-codebase coordinated-disclosure effort to a single identifier.

MITRE

Affected Software

20 affected components
FreeBSD FreeBSD<=9.0
illumos Illumos<=r13723
Joyent SmartOS<=20120614
XEN Xen<=4.1.2
XEN Xen=4.0.0
XEN Xen=4.0.1
XEN Xen=4.0.2
XEN Xen=4.0.3
XEN Xen=4.0.4
XEN Xen=4.1.0
XEN Xen=4.1.1
Microsoft Windows 7
Microsoft Windows 7=sp1
Microsoft Windows Server 2003=sp2
Microsoft Windows Server 2008=r2
Microsoft Windows XP=sp3
Citrix XenServer<=6.0.2
Citrix XenServer=6.0
NetBSD NetBSD<=6.0
Sun SunOS<=5.11

Event History

Apr 17, 2012
Data Sourced
06:30 PM
DescriptionSeverityAffected Software
Jun 12, 2012
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2012-0217?

CVE-2012-0217 is classified as a high severity vulnerability due to its potential to allow privilege escalation on affected systems.

2

How do I fix CVE-2012-0217?

To fix CVE-2012-0217, apply the relevant security updates provided by your operating system or software vendor.

3

Which systems are affected by CVE-2012-0217?

CVE-2012-0217 affects systems running FreeBSD up to version 9.0, various versions of Xen, Microsoft Windows systems, and several others.

4

Is CVE-2012-0217 exploitable on AMD CPUs?

No, CVE-2012-0217 is not exploitable on AMD CPUs as the sysret instruction does not generate a fault before the CPL change.

5

What type of vulnerability is CVE-2012-0217?

CVE-2012-0217 is a privilege escalation vulnerability that occurs due to improper handling of sysret instructions in Intel CPUs.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203