Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 63548296176 for ; Wed, 18 Jun 2025 11:17:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245421; cv=none; b=HVpT/fFkQsW0SjPEbgJ8+ZJHP3EmEevji6hT6nWnxCH6aAWdcWwy3Ni9Boo3ZA9uFE5sJ7YSDscKogr4wZncQJIiUT/jixJdzWvWZnxAIuqHeEU+ItXWwaYW2PnSsa7VAu7MmzyYLQw+AIM3lK3Irk7NlOvYafUv98HezwebFtg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245421; c=relaxed/simple; bh=/U7LElVMEzyQUlQDXQsU1KzQ8gP0SbaDt4yprmgqGtc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gtJ+HRj1HG/wmLlZaF7K0938WYslUuQrJW2aNtpCZKC/MtRUCCdxqTjNlpyJ/TvfbHHgLpfN2Qcu6v3ry2yV9KRMThza8bRE1iZu7ONI6MRz7Svd0G+UD91rvWceIilUovbUJVjn2n7NYQd5Zyval5s98F20ANSSNmrs/lHVEFc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Zv0Clahq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Zv0Clahq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71493C4CEE7; Wed, 18 Jun 2025 11:17:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245420; bh=/U7LElVMEzyQUlQDXQsU1KzQ8gP0SbaDt4yprmgqGtc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Zv0ClahqssVpj90z887mlo0BHDNB9Ij+PM3eqMrsT/VMPzjOdrxaqWE5so0gWigZF rWjHN5CEldaroBpcKPR/8NBfYZBSORgSZlU8vC0PVzoKqiHlzP78bE1VHQ5kyLja+0 eYh4gRq7RuIBtKdiiYq+2a4VlgMG+j3e3jlWKk1w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50227: KVM: x86/xen: Initialize Xen timer only once Date: Wed, 18 Jun 2025 13:04:52 +0200 Message-ID: <2025061849-CVE-2022-50227-890e@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2305; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=P7hx5lKUSAb45ufQute6fxgdNcmOFve3RNEfs90fKws=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc+ZmdarEuhS9yink5S29duDH25jfMRfYH1SKan2QO WpZeu1NRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk9ReGeWa3duhd/z//he71 X32r/561sNibpsAwV3h6Mvdv90P1K1dd05G4s6XOtPzjOwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: KVM: x86/xen: Initialize Xen timer only once Add a check for existing xen timers before initializing a new one. Currently kvm_xen_init_timer() is called on every KVM_XEN_VCPU_ATTR_TYPE_TIMER, which is causing the following ODEBUG crash when vcpu->arch.xen.timer is already set. ODEBUG: init active (active state 0) object type: hrtimer hint: xen_timer_callbac0 RIP: 0010:debug_print_object+0x16e/0x250 lib/debugobjects.c:502 Call Trace: __debug_object_init debug_hrtimer_init debug_init hrtimer_init kvm_xen_init_timer kvm_xen_vcpu_set_attr kvm_arch_vcpu_ioctl kvm_vcpu_ioctl vfs_ioctl The Linux kernel CVE team has assigned CVE-2022-50227 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 536395260582be7443b0b35b0bbb89ffe3947f62 and fixed in 5.19.2 with commit 9a9b5771e930f408c3419799000f76a9abaf2278 Issue introduced in 5.19 with commit 536395260582be7443b0b35b0bbb89ffe3947f62 and fixed in 6.0 with commit af735db31285fa699384c649be72a9f32ecbb665 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-50227 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: arch/x86/kvm/xen.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/9a9b5771e930f408c3419799000f76a9abaf2278 https://git.kernel.org/stable/c/af735db31285fa699384c649be72a9f32ecbb665