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 1C5CA1494BA for ; Wed, 3 Apr 2024 14:57:40 +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=1712156260; cv=none; b=OMFdSm6ewC1CybZGdinVD6sEdOJJjoCdbum/4rtUj7SZIKfJler98/k5wfbTfxcQFP/8b7+WaVpSMmJxQqpXS6FXHN5HDWpY3RfKfnBDBqk3vBGi7XDH9z2cPwI5e/ucMZ2eBzmEJQ25jaToUjamyL6j1R+AWES5RFpqex72JRQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712156260; c=relaxed/simple; bh=Gr3ai+6tKPrx9XkIly6PDXluV1ipgPenEQa6va4EdHo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sZNfB8SHIxf2MCMFTM4ygVYnXKWcdagN9mAzNl03Yn10v2+6BvvgxZGVIC4hM4nbCK5N2YTHKd81lHdXpXgqOaCvlWGxCwwUE9DNysTd2cZ7ADVZ+JddffF3jQb7iUonk7FZXx7W01/m0gnLOOb9v+1fdg79AyjnRTbxv+KH4fk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QG9sux76; 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="QG9sux76" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81181C433C7; Wed, 3 Apr 2024 14:57:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712156260; bh=Gr3ai+6tKPrx9XkIly6PDXluV1ipgPenEQa6va4EdHo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QG9sux76V0lLc7RlFnuryKGgSmikljIeYqM1zyYnKnTKLWBD7U638qtJQ4YIXh/9u SlT4oJh70QwyGzbqhBCJ/OinqXXNAlE14Lf0xuMQYkqEheeGKwyY3dauE5fBaROERH pGSLVxVZ3E/VbF0iDaJwhBhXrwfY8EIA2XYu3O3A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26691: KVM: arm64: Fix circular locking dependency Date: Wed, 3 Apr 2024 16:55:42 +0200 Message-ID: <2024040336-CVE-2024-26691-fff7@gregkh> X-Mailer: git-send-email 2.44.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=2033; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Gr3ai+6tKPrx9XkIly6PDXluV1ipgPenEQa6va4EdHo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm8uS9vWvKqp2x7+lf5iP7PkKfmpiIZi1y/TGj/5zeT0 8p5p6NARywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyEvZVhwUa21Fzxvep/pB32 yh4OSJ3/v3HTWYb5eaYL5bV17Je/8v346ctPhwd8tVbrAQ== 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: Fix circular locking dependency The rule inside kvm enforces that the vcpu->mutex is taken *inside* kvm->lock. The rule is violated by the pkvm_create_hyp_vm() which acquires the kvm->lock while already holding the vcpu->mutex lock from kvm_vcpu_ioctl(). Avoid the circular locking dependency altogether by protecting the hyp vm handle with the config_lock, much like we already do for other forms of VM-scoped data. The Linux kernel CVE team has assigned CVE-2024-26691 to this issue. Affected and fixed versions =========================== Fixed in 6.6.18 with commit 3d16cebf0112 Fixed in 6.7.6 with commit 3ab1c40a1e91 Fixed in 6.8 with commit 10c02aad111d 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-26691 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/pkvm.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/3d16cebf01127f459dcfeb79ed77bd68b124c228 https://git.kernel.org/stable/c/3ab1c40a1e915e350d9181a4603af393141970cc https://git.kernel.org/stable/c/10c02aad111df02088d1a81792a709f6a7eca6cc