CVE-2017-7228

HIGH

Xen 4.4.x-4.8.x - Improper Validation of Array Index in XENMEM_exchange

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2017-7228. PoCs published by Google Security Research.

AI-analyzed exploit summary This exploit leverages a vulnerability in Xen's memory_exchange() hypercall handler (CVE-2017-7228) to achieve arbitrary memory write with hypervisor privileges, leading to privilege escalation or denial of service. The PoC demonstrates this by overwriting the IDT entry for #PF, causing a double fault.

Description

An issue (known as XSA-212) was discovered in Xen, with fixes available for 4.8.x, 4.7.x, 4.6.x, 4.5.x, and 4.4.x. The earlier XSA-29 fix introduced an insufficient check on XENMEM_exchange input, allowing the caller to drive hypervisor memory accesses outside of the guest provided input/output arrays.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Google Security Research · textlocalmultiple
https://www.exploit-db.com/exploits/41870

This exploit leverages a vulnerability in Xen's memory_exchange() hypercall handler (CVE-2017-7228) to achieve arbitrary memory write with hypervisor privileges, leading to privilege escalation or denial of service. The PoC demonstrates this by overwriting the IDT entry for #PF, causing a double fault.

Classification
Working Poc 100%
Attack Type
Lpe
Complexity
Complex
Reliability
Reliable
Target: Xen 4.6.0 (and likely other versions)
Auth required
Prerequisites: Access to a PV guest with kernel headers, gcc, make, nasm, and root privileges
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (8)

Core 8
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/97375
Patch, Vendor Advisory x_refsource_confirm
http://xenbits.xen.org/xsa/advisory-212.html
Mailing List, Third Party Advisory x_refsource_confirm
http://openwall.com/lists/oss-security/2017/04/04/3
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2017/dsa-3847
Exploit, Third Party Advisory exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/41870/
Technical Description, Third Party Advisory x_refsource_misc
https://googleprojectzero.blogspot.com/2017/04/pandavirtualization-exploiting-xen.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id/1038223

Scores

CVSS v3 8.2
EPSS 0.0157
EPSS Percentile 72.1%
Attack Vector LOCAL
CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Details

CWE
CWE-129
Status published
Products (1)
xen/xen
Published Apr 04, 2017
Tracked Since Feb 18, 2026