Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792759198; b=gL6r4WadEOEXG9COFjVzLy4rceZ8kx4vlrV+Jyev0siHqxSkZ4cDKNK0mVCG2YASpoHi s4meC6ecMgovS8OJYfezjr56aJRwaQImj3+pyNYeW2NAu7Bqik8uOa9uMkgknvwtDa55z p5ePNAVueXDnMGjbKPoqJlE+w4pTGv3ON3z/1EYagWyyL1ruiSZj1+xPC60A+k5EQVrVB 1YUF2XrozIoTvlmfd8JL9kiRi6n08ER+rqvolqPuh0RPwmLPLEbGb7t9JMwCF8i8yquIP sQfsOwEA19AXRRIg2Fw2rs6q17NASy3qVyebXKyMqaPULmqUdagGAeQFnZG1n+IFx/A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792759198; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=EHL05rl7ZEEIgjg6sw5cT1BwLV7gv9PvzT5SAYZ7ZFQ=; b=Se0pHkQbRTPeiC569q5tI+QlrEbtC8gkG2pcuTFpwou9urw/a0gk0BvZzZiDWyI0xL5z zNnE0hrEnHglr0o/rbPfakZmZ+no6dImED48Fn3cqqVO147otVdgovjoCZveg7fPVfUD0 H/kCEgyeWlKPQEukOksajbhemWBPLG/8DhzpxpIjiGmdn950WovD7kJoL/h8s8oVqpc/Q mmEBpmhnRuCsJtaHHb7k7mBbHGJVSQJrvMHLAdKXhM83uD+SyIUDVlRADpUurIFtrUGoI VmjRiKz61DLH5zXJUMywP6VijhEPDd3PkkcN8T0h47M2h7QTz05z41oCvw+sz42+Qwg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=pzcX4JjU; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A03F606A31B for ; Fri, 23 Oct 2026 12:39:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=pzcX4JjU Received: by smtp.kernel.org (Postfix) with ESMTPSA id 369541F01825; Fri, 23 Oct 2026 12:39:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792759197; bh=EHL05rl7ZEEIgjg6sw5cT1BwLV7gv9PvzT5SAYZ7ZFQ=; h=From:To:Cc:Subject:Date:Reply-To; b=pzcX4JjUS2DORbjt6VfHvHu68aL5yCB8jf3olw80H7fE3Pnehik7Kqgd0CQyC6A3G dv+MeBRFiDLp64bkjGUfdG8hBhrXmkoHWYulAEYukT8wTUX2mynDeom9g2Ru1YgsNu KlgcIDXzDNgYEPtYT6sbB5/WphKvCkXtL/Tc2lxA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99017: riscv: errata: select RISCV_ALTERNATIVE_EARLY for THEAD GHOSTWRITE Date: Fri, 23 Oct 2026 14:20:19 +0200 Message-ID: <2026102321-CVE-2026-99017-a6f8@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2888; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uXrktbL/4uG5yCDubbusGvxMb8mvLEf1eEA5S5kHt6Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A04e/fmXlW95R9KuvxznpEXW7K1YFP40Pry0TOFTi 8j3jmM5HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRvdcY5oq9evn1wBLrr7d0 UrhWz/mzp/kEfyXDgsbrRruc1KNv+b54qmDn9jF9yWrm+QA= 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: riscv: errata: select RISCV_ALTERNATIVE_EARLY for THEAD GHOSTWRITE errata_probe_ghostwrite() only marks the CPU as vulnerable when it is called at the RISCV_ALTERNATIVES_EARLY_BOOT stage, and the mitigation in ghostwrite_enable_mitigation() only takes effect if the vulnerable state was recorded before the boot alternatives are patched. The early boot stage is only executed when CONFIG_RISCV_ALTERNATIVE_EARLY is enabled, which currently is only selected by ERRATA_THEAD_MAE. In a kernel built with ERRATA_THEAD_GHOSTWRITE=y but ERRATA_THEAD_MAE=n, the early alternatives never run, so ghostwrite_state is never set to VULNERABLE: ghostwrite_enable_mitigation() returns false, xtheadvector remains enabled, and sysfs reports "Not affected" on a vulnerable T-Head C9xx CPU. Select RISCV_ALTERNATIVE_EARLY from ERRATA_THEAD_GHOSTWRITE so that the vulnerability is detected in the early boot stage and the default mitigation is applied. The Linux kernel CVE team has assigned CVE-2026-99017 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 4bf97069239bcfca9840936313c7ac35a6e04488 and fixed in 6.18.57 with commit fa465a7819ecbe5801b78c088d3cadaf2664b8ca Issue introduced in 6.14 with commit 4bf97069239bcfca9840936313c7ac35a6e04488 and fixed in 7.2.11 with commit 7fee577a2fa78b9a76da015beec1ccf978746ebb Issue introduced in 6.14 with commit 4bf97069239bcfca9840936313c7ac35a6e04488 and fixed in 7.3 with commit 298510bbc7c3017c0faf481c6ea66f1065b657b4 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-2026-99017 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/riscv/Kconfig.errata 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/fa465a7819ecbe5801b78c088d3cadaf2664b8ca https://git.kernel.org/stable/c/7fee577a2fa78b9a76da015beec1ccf978746ebb https://git.kernel.org/stable/c/298510bbc7c3017c0faf481c6ea66f1065b657b4