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 8543E1FDD for ; Tue, 21 May 2024 15:26: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=1716305161; cv=none; b=j0x/mYsaOinOYX1OWe/19azGd+GCCIdqJdtIfxSwCLeJCeAu+D+mChjH11uSu1CRUwRr8PnuYRSUk7mO9hKXkWeSBUjRPabxmeNGx+0+9omNLHCzRltCGdRt9Y7Ny1cKt0ZzMm7QZ+K5OFOEZYMxpctF/dfRJL1sOsuyTQhUBNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305161; c=relaxed/simple; bh=0NrQl8+ahvpfNVyZSKoFT34tPBbd78IdaW4w+mNzp7o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QmohH1rc3tktefOsrnTjK8r7l3FRUmNpoBbUIdtLlEdPH1SYwE178aJvZ8hgtlpYKrdrsaapmMufpU/HKZ1mRriHIfyZvDhtmLeAs4X4XUv0TWHjnDJ2O8ae6v74j1i3duJ7gNEMeDlQukGFBpg4tT9SIsrHuVFwHcsbQshWybU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2BT0M5nr; 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="2BT0M5nr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B773AC2BD11; Tue, 21 May 2024 15:26:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305161; bh=0NrQl8+ahvpfNVyZSKoFT34tPBbd78IdaW4w+mNzp7o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2BT0M5nryXdJpyt9/8xSQ+GBd2OOAYEfd5hz4QLbDXCO9hglH/q/QUD//BqOf2E8p qVUGnTbXkET/ykUma0crBdUllmgV8Zw0Ry4pjEuigO0m5bYn5TS9ALzzOsSpXaG2gy 7qPd/ZcnbUtGeQgfwZ1xgqaKKwzzYznUs1C7sRKs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52740: powerpc/64s/interrupt: Fix interrupt exit race with security mitigation switch Date: Tue, 21 May 2024 17:23:17 +0200 Message-ID: <2024052101-CVE-2023-52740-3265@gregkh> X-Mailer: git-send-email 2.45.1 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=2566; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0NrQl8+ahvpfNVyZSKoFT34tPBbd78IdaW4w+mNzp7o=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+e8JeFh6wnbX7WHuzVcrtP7P97tWHL/IS01Reqve68 p3HETf/jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIi1UMC6ZVlM3l7WZfF8G0 b2P4jq0v2ZlDNjDMD2AW9os5JtX59ITB8w4tK+MQY80FAA== 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: powerpc/64s/interrupt: Fix interrupt exit race with security mitigation switch The RFI and STF security mitigation options can flip the interrupt_exit_not_reentrant static branch condition concurrently with the interrupt exit code which tests that branch. Interrupt exit tests this condition to set MSR[EE|RI] for exit, then again in the case a soft-masked interrupt is found pending, to recover the MSR so the interrupt can be replayed before attempting to exit again. If the condition changes between these two tests, the MSR and irq soft-mask state will become corrupted, leading to warnings and possible crashes. For example, if the branch is initially true then false, MSR[EE] will be 0 but PACA_IRQ_HARD_DIS clear and EE may not get enabled, leading to warnings in irq_64.c. The Linux kernel CVE team has assigned CVE-2023-52740 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 13799748b957 and fixed in 5.15.94 with commit 86f7e4239336 Issue introduced in 5.14 with commit 13799748b957 and fixed in 6.1.12 with commit 6f097c24815e Issue introduced in 5.14 with commit 13799748b957 and fixed in 6.2 with commit 2ea31e2e62bb 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-2023-52740 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/powerpc/kernel/interrupt.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/86f7e423933608d536015a0f2eb9e0338c1227e0 https://git.kernel.org/stable/c/6f097c24815e67909a1fcc2c605586d02babd673 https://git.kernel.org/stable/c/2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1