CWE Code: 362
Vulnerability Type: privilege_escalation
CVSS Score: 7.1
CWE Name:  Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Summary: an issue was discovered in xen through 4.12.x allowing x86 pv guest os users to gain host os privileges by leveraging race conditions in pagetable promotion and demotion operations. there are issues with restartable pv type change operations. to avoid using shadow pagetables for pv guests, xen exposes the actual hardware pagetables to the guest. in order to prevent the guest from modifying these page tables directly, xen keeps track of how pages are used using a type system; pages must be "promoted" before being used as a pagetable, and "demoted" before being used for any other type. xen also allows for "recursive" promotions: i.e., an operating system promoting a page to an l4 pagetable may end up causing pages to be promoted to l3s, which may in turn cause pages to be promoted to l2s, and so on. these operations may take an arbitrarily large amount of time, and so must be re-startable. unfortunately, making recursive pagetable promotion and demotion operations restartable is incredibly complicated, and the code contains several races which, if triggered, can cause xen to drop or retain extra type counts, potentially allowing guests to get write access to in-use pagetables. a malicious pv guest administrator may be able to escalate their privilege to that of the host. all x86 systems with untrusted pv guests are vulnerable. hvm and pvh guests cannot exercise this vulnerability.
Access Authentication: SINGLE
Access Complexity: HIGH
Access Vector: NETWORK
Impact (C/I/A): COMPLETE/COMPLETE/COMPLETE
Published Date: 2019-10-31
Last Modified Date: 2019-11-06
You are a cybersecurity expert assistant. Provide detailed information about vulnerabilities in a clear and structured format.
system
Please provide details about this vulnerability:  Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
user
CWE Code: 362
Vulnerability Type: privilege_escalation
CVSS Score: 7.1
CWE Name:  Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Summary: an issue was discovered in xen through 4.12.x allowing x86 pv guest os users to gain host os privileges by leveraging race conditions in pagetable promotion and demotion operations. there are issues with restartable pv type change operations. to avoid using shadow pagetables for pv guests, xen exposes the actual hardware pagetables to the guest. in order to prevent the guest from modifying these page tables directly, xen keeps track of how pages are used using a type system; pages must be "promoted" before being used as a pagetable, and "demoted" before being used for any other type. xen also allows for "recursive" promotions: i.e., an operating system promoting a page to an l4 pagetable may end up causing pages to be promoted to l3s, which may in turn cause pages to be promoted to l2s, and so on. these operations may take an arbitrarily large amount of time, and so must be re-startable. unfortunately, making recursive pagetable promotion and demotion operations restartable is incredibly complicated, and the code contains several races which, if triggered, can cause xen to drop or retain extra type counts, potentially allowing guests to get write access to in-use pagetables. a malicious pv guest administrator may be able to escalate their privilege to that of the host. all x86 systems with untrusted pv guests are vulnerable. hvm and pvh guests cannot exercise this vulnerability.
Access Authentication: SINGLE
Access Complexity: HIGH
Access Vector: NETWORK
Impact (C/I/A): COMPLETE/COMPLETE/COMPLETE
Published Date: 2019-10-31
Last Modified Date: 2019-11-06
assistant