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 65E1F4596F for ; Mon, 20 May 2024 09:49:36 +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=1716198576; cv=none; b=RHmk/mgHUPzlIiaDTLUXmQ9eFtJKdg8FEQvES9SfiVqwWN/EkcFViecgCaa999SI0e1vVwCRVbVbwCfJ/DCfVaNenUl09e1IWG12GCNa8AeF+yvuD/DW9PYSfmkZ5H2ubl6Y3UMNtkXnYDzCC7P9BGuHEJtXYpwZPTYOy5XyeJA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716198576; c=relaxed/simple; bh=QzCi5Pk1QuCwnm+hI6BB5EFJhmpo3asnZcYXHAGIvuo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WpDqMCvl5o2LnsDXKv5Qo4XtiEttTJjpTiihjfp7/Pcy4q8AI7DPVG/ANhratKOd72znT/pN4bWq1jIo/VF/JGoinSVu1Oxv3ZdHu+jfdnweT4VaYaGBhPeao3EdQo1LM8Ze8pXblNK0sx1DPAU8IYH/k6bWgG22UkNo1LP0jiE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=09rkU5+z; 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="09rkU5+z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFD1BC2BD10; Mon, 20 May 2024 09:49:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716198576; bh=QzCi5Pk1QuCwnm+hI6BB5EFJhmpo3asnZcYXHAGIvuo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=09rkU5+zZz++/xFtMRFg1mNtM2m6GgTCUkFMe15/ytKgWP4FQWJ35aoTknwE+DqdU r/aqugClPjKOHGK7GXcSDCWXjzKuOXUiEspbSCwZiqE+p6UftIPLBfu2ysYq7dd51A 5KpHvUt4nRhweKaFNb2g1tigccz5zTR8Qv6zAeXs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35996: cpu: Re-enable CPU mitigations by default for !X86 architectures Date: Mon, 20 May 2024 11:48:32 +0200 Message-ID: <2024052022-CVE-2024-35996-3f86@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=3133; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QzCi5Pk1QuCwnm+hI6BB5EFJhmpo3asnZcYXHAGIvuo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGneMmnz7uQvEboi8cB7ice9o5rrIqQcc0JObV4/KXLO/ a/GbRrHO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiwX0M80yLg6ouvFspvm/6 +scfru7kvs1S+4Bhfhbv2y2qKhtqri98UZnMvfDCCld+KwA= 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: cpu: Re-enable CPU mitigations by default for !X86 architectures Rename x86's to CPU_MITIGATIONS, define it in generic code, and force it on for all architectures exception x86. A recent commit to turn mitigations off by default if SPECULATION_MITIGATIONS=n kinda sorta missed that "cpu_mitigations" is completely generic, whereas SPECULATION_MITIGATIONS is x86-specific. Rename x86's SPECULATIVE_MITIGATIONS instead of keeping both and have it select CPU_MITIGATIONS, as having two configs for the same thing is unnecessary and confusing. This will also allow x86 to use the knob to manage mitigations that aren't strictly related to speculative execution. Use another Kconfig to communicate to common code that CPU_MITIGATIONS is already defined instead of having x86's menu depend on the common CPU_MITIGATIONS. This allows keeping a single point of contact for all of x86's mitigations, and it's not clear that other architectures *want* to allow disabling mitigations at compile-time. The Linux kernel CVE team has assigned CVE-2024-35996 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.156 with commit 70688450ddda and fixed in 5.15.158 with commit 36b32816fbab Issue introduced in 6.1.87 with commit 9c09773917fb and fixed in 6.1.90 with commit 38f17d1fbb5b Issue introduced in 6.6.28 with commit 2978ee7c973c and fixed in 6.6.30 with commit 8292f4f8dd1b Issue introduced in 6.8.7 with commit c4a9babdd5d5 and fixed in 6.8.9 with commit fd8547ebc187 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-35996 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/Kconfig arch/x86/Kconfig kernel/cpu.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/af6d6a923b40bf6471e44067ac61cc5814b48e7f https://git.kernel.org/stable/c/36b32816fbab267611f073223f1b0b816ec5920f https://git.kernel.org/stable/c/38f17d1fbb5bfb56ca1419e2d06376d57a9396f9 https://git.kernel.org/stable/c/8292f4f8dd1b005d0688d726261004f816ef730a https://git.kernel.org/stable/c/fd8547ebc187037cc69441a15c1441aeaab80f49 https://git.kernel.org/stable/c/fe42754b94a42d08cf9501790afc25c4f6a5f631