From: Xen.org security team Subject: Xen Security Advisory 169 (CVE-2015-8615) - x86: unintentional logging upon guest changing callback method Date: Tue, 22 Dec 2015 18:47:18 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=separator"; charset="utf-8" Content-Transfer-Encoding: binary Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-announce@lists.xen.org, xen-devel@lists.xen.org, xen-users@lists.xen.org, oss-security@lists.openwall.com Cc: "Xen.org security team" List-Id: xen-devel@lists.xenproject.org --=separator Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Xen Security Advisory CVE-2015-8615 / XSA-169 version 2 x86: unintentional logging upon guest changing callback method UPDATES IN VERSION 2 ==================== CVE assigned. ISSUE DESCRIPTION ================= HYPERVISOR_hvm_op sub-op HVMOP_set_param's HVM_PARAM_CALLBACK_IRQ operation intends to log the new callback method in debug builds only. The full message, however, is split into two parts, the second one of which didn't get suppressed on non-debug builds as would have been intended. These log messages are not rate-limited and can be triggered by guests. IMPACT ====== A malicious guest could cause repeated logging to the hypervisor console, leading to a Denial of Service attack. VULNERABLE SYSTEMS ================== Xen version 4.6 is affected. Older Xen versions are unaffected. ARM systems are not affected. Only x86 HVM guests can expose this vulnerability. MITIGATION ========== Running only PV guests will avoid this issue. The problematic log messages are issued with priority Warning. Therefore they can be rate limited by adding "loglvl=error/warning" to the hypervisor command line or suppressed entirely by adding "loglvl=error". On systems where the guest kernel is controlled by the host rather than guest administrator, running only kernels which do not excessively invoke this operation will also prevent untrusted guest users from exploiting this issue. However untrusted guest administrators can still trigger it unless further steps are taken to prevent them from loading code into the kernel (e.g. by disabling loadable modules etc) or from using other mechanisms which allow them to run code at kernel privilege. NOTE REGARDING LACK OF EMBARGO ============================== The fix for this bug was publicly posted on xen-devel, before it was appreciated that there was a security problem. CREDITS ======= This issue was discovered as a bug by Malcolm Crossley of Citrix; the security impact was recognised by Jan Beulich of SuSE. RESOLUTION ========== Applying the attached patch resolves this issue. xsa169.patch xen-unstable, Xen 4.6.x $ sha256sum xsa169* b818922880313cdbc12ea68ae757da5eabed9b3c9e1f8acefe1653683545ccbe xsa169.patch $ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJWeZqAAAoJEIP+FMlX6CvZ/HcIAMLIVFDrwUahqNkGIaS0rXrn LJG6+oMewioAm05NEKI+2wkJn6T4ycJsn+rVWMyOTHpS39vA1kMZK3/Pb/smV3B1 2K+g8avmSjB22VEhjEoKIGniozkPIInB5Pvchf0GY6C30/LJM2ef3hJeQHUA+W9q 68HiXZrwFUUBRcpjoSX3ru954Fcfe0VDpEvIRJRS1O4v/XXJeesavt/0/5PnaP34 sRXr9+l7Ku+Q9z7sh9V87W9Lv98qXnuVns7c3GKIcmDEcvWDihwazCbvuVOZsvQW UoV4/LTiJ2bTqnGp2woUqlTfe7MIOHPzjmR88Pj+/ibveObkcVMDxyz4r34wyxw= =D97B -----END PGP SIGNATURE----- --=separator Content-Type: application/octet-stream; name="xsa169.patch" Content-Disposition: attachment; filename="xsa169.patch" Content-Transfer-Encoding: base64 eDg2OiBtYWtlIGRlYnVnIG91dHB1dCBjb25zaXN0ZW50IGluIGh2bV9zZXRf Y2FsbGJhY2tfdmlhCgpUaGUgdW5jb25kaXRpb25hbCBwcmludGtzIGluIHRo ZSBzd2l0Y2ggc3RhdGVtZW50IG9mIHRoZQpodm1fc2V0X2NhbGxiYWNrX3Zp YSBmdW5jdGlvbiByZXN1bHRzIGluIFhlbiBsb2cgc3BhbSBpbiBub24gZGVi dWcKdmVyc2lvbnMgb2YgWGVuLiBUaGUgcHJpbnRrcyBhcmUgZm9yIGRlYnVn IG91dHB1dCBvbmx5IHNvIGNvbmRpdGlvbmFsbHkKY29tcGlsZSB0aGUgZW50 aXJlIHN3aXRjaCBzdGF0ZW1lbnQgb24gZGVidWcgdmVyc2lvbnMgb2YgWGVu IG9ubHkuCgpUaGlzIGlzIFhTQS0xNjkuCgpTaWduZWQtb2ZmLWJ5OiBNYWxj b2xtIENyb3NzbGV5IDxtYWxjb2xtLmNyb3NzbGV5QGNpdHJpeC5jb20+ClJl dmlld2VkLWJ5OiBKYW4gQmV1bGljaCA8amJldWxpY2hAc3VzZS5jb20+CkFj a2VkLWJ5OiBJYW4gQ2FtcGJlbGwgPGlhbi5jYW1wYmVsbEBjaXRyaXguY29t PgoKLS0tIGEveGVuL2FyY2gveDg2L2h2bS9pcnEuYworKysgYi94ZW4vYXJj aC94ODYvaHZtL2lycS5jCkBAIC0zODYsNyArMzg2LDggQEAgdm9pZCBodm1f c2V0X2NhbGxiYWNrX3ZpYShzdHJ1Y3QgZG9tYWluCiAKICAgICBzcGluX3Vu bG9jaygmZC0+YXJjaC5odm1fZG9tYWluLmlycV9sb2NrKTsKIAotICAgIGRw cmludGsoWEVOTE9HX0dfSU5GTywgIkRvbSV1IGNhbGxiYWNrIHZpYSBjaGFu Z2VkIHRvICIsIGQtPmRvbWFpbl9pZCk7CisjaWZuZGVmIE5ERUJVRworICAg IHByaW50ayhYRU5MT0dfR19JTkZPICJEb20ldSBjYWxsYmFjayB2aWEgY2hh bmdlZCB0byAiLCBkLT5kb21haW5faWQpOwogICAgIHN3aXRjaCAoIHZpYV90 eXBlICkKICAgICB7CiAgICAgY2FzZSBIVk1JUlFfY2FsbGJhY2tfZ3NpOgpA QCAtNDAyLDYgKzQwMyw3IEBAIHZvaWQgaHZtX3NldF9jYWxsYmFja192aWEo c3RydWN0IGRvbWFpbgogICAgICAgICBwcmludGsoIk5vbmVcbiIpOwogICAg ICAgICBicmVhazsKICAgICB9CisjZW5kaWYKIH0KIAogc3RydWN0IGh2bV9p bnRhY2sgaHZtX3ZjcHVfaGFzX3BlbmRpbmdfaXJxKHN0cnVjdCB2Y3B1ICp2 KQo= --=separator Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=separator--