CVE-2010-5313: Race Condition
It was found that reporting emulation failures to user space can lead to either local (CVE-2014-7842) or L2->L1 (CVE-2010-5313) DoS.
In the case of local DoS attacker needs access to MMIO area or be able to generate port access. Please note that on certain systems HPET is mapped to userspace as part of vdso (vvar) and thus an unprivileged user may generate MMIO transactions (and enter the emulator) this way.
Upstream patches:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=fc3a9157d314 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a2b9e6c1a35a
Acknowledgements:
Red Hat would like to thank Nadav Amit for reporting this issue.
Other sources
It was found that reporting emulation failures to user space could lead to either a local (CVE-2014-7842) or a L2->L1 (CVE-2010-5313) denial of service. In the case of a local denial of service, an attacker must have access to the MMIO area or be able to access an I/O port. Please note that on certain systems, HPET is mapped to userspace as part of vdso (vvar) and thus an unprivileged user may generate MMIO transactions (and enter the emulator) this way.
Race condition in arch/x86/kvm/x86.c in the Linux kernel before 2.6.38 allows L2 guest OS users to cause a denial of service (L1 guest OS crash) via a crafted instruction that triggers an L2 emulation failure report, a similar issue to CVE-2014-7842.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:2.6.32-642.el6 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:3.10.0-327.el7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.6.38
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
Which environments are exposed to the L2-to-L1 denial-of-service scenario?
The L2-to-L1 scenario affects systems using x86 KVM where emulation failures can be reported to user space. It concerns a guest at the L2 nesting level causing a denial of service in its L1 environment.
What access does an attacker need for the local denial-of-service path?
An attacker needs access to an MMIO area or the ability to generate I/O port accesses. On systems where HPET is mapped into user space through vDSO/vvar, an unprivileged local user may be able to generate MMIO transactions through that mapping.
What is the practical impact of successful exploitation?
The described impact is denial of service. The provided CVSS vector indicates no confidentiality or integrity impact, with availability affected.