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 D996A267B92 for ; Sat, 14 Feb 2026 15:10:51 +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=1771081851; cv=none; b=SWtb3XDaKzMXNQ9gtwEnKIBWROh8uoIdFDu3V8Hq7ywQRnntRMdE9xQ1hfc4oPIB6oehLMcRnzNohkp+XHDY3a/bfioArgZmnt7iKyYjSsWKKpiWugSuNF9VxiSEXB6WWLm1eZOJj1gAxoW2eU5IkcsiX7Q8+QnJ6r5ZWyTxcA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771081851; c=relaxed/simple; bh=sN/CboIgv5eDrIMigkkS0VFDr6aMpDbpPTwiEc8+AEw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NS5jvA1FrV0MUaeNN+uo4kC5WvSO3x0uaUxy3pPZ2PvG0kzvK9mgycL6tgrVLSH6e5CMy2ZAZBdcDt730Qsr0k7ryDlv43NN3lOMmPZDzUFFn212b3h2rezLWeCRjS3oBDEGuRgOukzmxPHeVKleEnYHM3RDKmj5Qg8HrAWQ6/0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WRoytT6a; 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="WRoytT6a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 530E8C16AAE; Sat, 14 Feb 2026 15:10:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1771081851; bh=sN/CboIgv5eDrIMigkkS0VFDr6aMpDbpPTwiEc8+AEw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=WRoytT6anKpFIG9EJgPbQJToMttcv4HirCDHNLSYjCwqVIqpKt9Q6es4suKnXQII/ MC4rz+J+VC1lSrueiCh0l4oQvhWzg+P1XoJgHd7wG2zZ+Ugb8+04MkdUJwws9u9lCl T/FWtjX/rIu95QSbhXpXFNXAb6E5sAlx7qBjM2qI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23114: arm64/fpsimd: ptrace: Fix SVE writes on !SME systems Date: Sat, 14 Feb 2026 16:10:06 +0100 Message-ID: <2026021405-CVE-2026-23114-21a3@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3626; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mNYvPr6NATJ4vQrE3GvlYtIaT+WNyb4G1e1wkzzKJkE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkTJvge5l8k1tFc3FW8e+Pf5CY+y81i7Tsm1vbvCFPfc uueyYvyjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIFn2GuSIptuePCrYfkzW5 FL7476eAebUr3jAsmJ6orDrj1iSZHw0zumZmeskqsLKVAQA= 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: arm64/fpsimd: ptrace: Fix SVE writes on !SME systems When SVE is supported but SME is not supported, a ptrace write to the NT_ARM_SVE regset can place the tracee into an invalid state where (non-streaming) SVE register data is stored in FP_STATE_SVE format but TIF_SVE is clear. This can result in a later warning from fpsimd_restore_current_state(), e.g. WARNING: CPU: 0 PID: 7214 at arch/arm64/kernel/fpsimd.c:383 fpsimd_restore_current_state+0x50c/0x748 When this happens, fpsimd_restore_current_state() will set TIF_SVE, placing the task into the correct state. This occurs before any other check of TIF_SVE can possibly occur, as other checks of TIF_SVE only happen while the FPSIMD/SVE/SME state is live. Thus, aside from the warning, there is no functional issue. This bug was introduced during rework to error handling in commit: 9f8bf718f2923 ("arm64/fpsimd: ptrace: Gracefully handle errors") ... where the setting of TIF_SVE was moved into a block which is only executed when system_supports_sme() is true. Fix this by removing the system_supports_sme() check. This ensures that TIF_SVE is set for (SVE-formatted) writes to NT_ARM_SVE, at the cost of unconditionally manipulating the tracee's saved svcr value. The manipulation of svcr is benign and inexpensive, and we already do similar elsewhere (e.g. during signal handling), so I don't think it's worth guarding this with system_supports_sme() checks. Aside from the above, there is no functional change. The 'type' argument to sve_set_common() is only set to ARM64_VEC_SME (in ssve_set())) when system_supports_sme(), so the ARM64_VEC_SME case in the switch statement is still unreachable when !system_supports_sme(). When CONFIG_ARM64_SME=n, the only caller of sve_set_common() is sve_set(), and the compiler can constant-fold for the case where type is ARM64_VEC_SVE, removing the logic for other cases. The Linux kernel CVE team has assigned CVE-2026-23114 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 9f8bf718f29230e38a048d08fc3063e316cd60c1 and fixed in 6.18.8 with commit 4f39984176e7edcaba3432b6c649c6fe93bf2f80 Issue introduced in 6.16 with commit 9f8bf718f29230e38a048d08fc3063e316cd60c1 and fixed in 6.19 with commit 128a7494a9f15aad60cc6b7e3546bf481ac54a13 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-23114 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/kernel/ptrace.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/4f39984176e7edcaba3432b6c649c6fe93bf2f80 https://git.kernel.org/stable/c/128a7494a9f15aad60cc6b7e3546bf481ac54a13