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 197741AD26C for ; Fri, 13 Sep 2024 06:28:54 +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=1726208935; cv=none; b=JTwk7Hmuw+bZzYrx0c2HsOipjIRiPD2yRpKIDncdvF2bsrcHEiBjOkBU0GVoHivSO1Yyd0Ae1qL6jALLAU4ppeQd5T/40QLbzE/qzTIFU6ArBIIpjR3M2udPePRIpGPXAa60p7Il80IsaUL77JaW2/Bsj2Ododkf1T8h/d8BIUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726208935; c=relaxed/simple; bh=PFusnVnQlslAnapLx7mf5/r644odeYAHjq6xd3qEqsY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Hc5j8d8TvFRAMh+XBh4NunsVeftGhLB15pL2HL8etBUFhfxwRZinGDkqYRNmBtuonqHr49VKmF372B+SdpuF+cgWCusEMNlk/eD3nwX1gTpY1CSqtdG6IK+UkVTbFYKHBNHArrTD/wc6hy8V6X8x7DBp7EZD8hSptnLrP4fs8Z0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eTcqfQ28; 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="eTcqfQ28" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52588C4CEC0; Fri, 13 Sep 2024 06:28:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726208934; bh=PFusnVnQlslAnapLx7mf5/r644odeYAHjq6xd3qEqsY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eTcqfQ288z7Woy9b+V01t6oEwleW7Iybz25RuGfi/GqnAjLRs1YQcKuQji/PkjlcL lVyIrOEMnPY/S21bs14xofQTwrct+GaBqicR7IbbdnjMwhL42MziiyvGqgiF6CF1xb wmlEdyF1hH0y+s1zFERgxObRE4dosKaYwtdsyiSo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46707: KVM: arm64: Make ICC_*SGI*_EL1 undef in the absence of a vGICv3 Date: Fri, 13 Sep 2024 08:28:33 +0200 Message-ID: <2024091330-CVE-2024-46707-9e4f@gregkh> X-Mailer: git-send-email 2.46.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=2479; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PFusnVnQlslAnapLx7mf5/r644odeYAHjq6xd3qEqsY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmPb/cJ2IVzJC23tLzUETZNu6XsqjFT1RTr+f+irx3yD Ja+q6LSEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOZZcAwT2tTlUnrjn8Bbg83 v9s0+eSdBZm7XRnm2czcd9F3yeoJBdKLtSpD/6s5JvirAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: Make ICC_*SGI*_EL1 undef in the absence of a vGICv3 On a system with a GICv3, if a guest hasn't been configured with GICv3 and that the host is not capable of GICv2 emulation, a write to any of the ICC_*SGI*_EL1 registers is trapped to EL2. We therefore try to emulate the SGI access, only to hit a NULL pointer as no private interrupt is allocated (no GIC, remember?). The obvious fix is to give the guest what it deserves, in the shape of a UNDEF exception. The Linux kernel CVE team has assigned CVE-2024-46707 to this issue. Affected and fixed versions =========================== Fixed in 5.10.225 with commit 15818af2f7aa Fixed in 5.15.166 with commit 96b076e8ee5b Fixed in 6.1.107 with commit 94d4fbad01b1 Fixed in 6.6.48 with commit 9d7629bec5c3 Fixed in 6.10.7 with commit 2073132f6ed3 Fixed in 6.11-rc5 with commit 3e6245ebe7ef 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-2024-46707 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/arm64/kvm/sys_regs.c arch/arm64/kvm/vgic/vgic.h 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/15818af2f7aa55eff375333cb7689df15d3f24ef https://git.kernel.org/stable/c/96b076e8ee5bc3a1126848c8add0f74bd30dc9d1 https://git.kernel.org/stable/c/94d4fbad01b19ec5eab3d6b50aaec4f9db8b2d8d https://git.kernel.org/stable/c/9d7629bec5c3f80bd0e3bf8103c06a2f7046bd92 https://git.kernel.org/stable/c/2073132f6ed3079369e857a8deb33d11bdd983bc https://git.kernel.org/stable/c/3e6245ebe7ef341639e9a7e402b3ade8ad45a19f