-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Xen Security Advisory CVE-2015-5166 / XSA-139 version 3 Use after free in QEMU/Xen block unplug protocol UPDATES IN VERSION 3 ==================== Normalize version tags. ISSUE DESCRIPTION ================= When unplugging an emulated block device the device was not fully unplugged, meaning a second unplug attempt would attempt to unplug the device a second time using a previously freed pointer. IMPACT ====== An HVM guest which has access to an emulated IDE disk device may be able to exploit this vulnerability in order to take over the qemu process elevating its privilege to that of the qemu process. VULNERABLE SYSTEMS ================== All Xen systems running x86 HVM guests using the upstream based "qemu-xen" are vulnerable. Systems using the "qemu-xen-traditional" version of the qemu device model, either in a stubdomain or as a domain 0 process, are not vulnerable. Systems running only PV guests are NOT vulnerable. ARM systems are not vulnerable. MITIGATION ========== There is no known mitigation for this issue. CREDITS ======= This issue was discovered by Donghai Zhu of Alibaba. RESOLUTION ========== The attached patches have been proposed as fixes for the issue. However they have not been finalised by upstream. A revised advisory will be issued in the event that the final patches differ from those included here. xsa139-qemuu-unstable.patch qemu-xen master xsa139-qemuu-4.5.patch qemu-xen 4.5.x, 4.4.x, 4.3.x, 4.2.x $ sha256sum xsa139*.patch dead84667dd4868d0688dc4e62a54a14883e6f0352cf3318b277aa37e27c9261 xsa139-qemuu-unstable.patch 3aa775255053d1d14a3e383998240eb3520aea7de137cdb7624b169db8b06d85 xsa139-qemuu-4.5.patch $ DEPLOYMENT DURING EMBARGO ========================= Deployment of the patches and/or mitigations described above (or others which are substantially similar) is permitted during the embargo, even on public-facing systems with untrusted guest users and administrators. But: Distribution of updated software is prohibited (except to other members of the predisclosure list). Predisclosure list members who wish to deploy significantly different patches and/or mitigations, please contact the Xen Project Security Team. (Note: this during-embargo deployment notice is retained in post-embargo publicly released Xen Project advisories, even though it is then no longer applicable. This is to enable the community to have oversight of the Xen Project Security Team's decisionmaking.) For more information about permissible uses of embargoed information, consult the Xen Project community's agreed Security Policy: http://www.xenproject.org/security-policy.html -----BEGIN PGP SIGNATURE----- iQFABAEBCAAqFiEEI+MiLBRfRHX6gGCng/4UyVfoK9kFAmV8b+8MHHBncEB4ZW4u b3JnAAoJEIP+FMlX6CvZ3nIH/jqcX8T2PSrO/2MXF80X8EF1ipDsGEn+iAwgnFi8 6fdEJiGfwPGvceJAOK9B5qVuJ5q1mYzSm+K5pC2LqOalK3BgRYg0Cu+odt0FzEnG e4tZJTe+M+CNeNAHcRoleFozcBEK2h9oRz2/BODXWui4WcfkBcKm+edRwYr8qULS IGLelNisL9+j/i+xoTF6RGV14ERGx4jaTPXl5kGdXnC4FEtR2+sOpbRIr8reeYI7 yQKT1bNmPO1XfMAKDxh7EJj04VBGFZxEOU3tqNmQOfrEE57jutlPuK27xr3P1qA+ 9lu3L8DFFetqdBH54R8y/TguWEA+/8G/+mAXqvxFOqpExiA= =zrjD -----END PGP SIGNATURE-----