Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 7456F3CC7D8 for ; Sun, 18 Oct 2026 16:00:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792339207; cv=none; b=cOHPDOt/AVnFZnTPa5OzSjDuVqHZPUpyzokNjEX279M25z1pjvHb59VQB4nyCQ9mPjHDD2Srr4myyoObtOw47U75rw7Lbe0ssk8B19dfakFD4eBfMNfkHYbdV8tEx9prrr1y4pyV0fyf/4r2lMPRcw7NK/1Ado4TaiQPz45moiw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792339207; c=relaxed/simple; bh=+273g6yP6olijbJrHGNRYjl0bm6ELvg38lcEPeIyWyg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n31fdlWqR/0ffi/I+edb9uEyszJpG5Jl/5Dzhq2bRoMwZtz+UQg+1+kmGN1LnjG2INAE61t706ns2CTO1qDYCiF05i8Tqw4x/8+Z9HtPor45q6mpKTZR1n7bHp3ASFYM+dCxP1G2/js5pYYguoY3V3OKOaEKf03THBwaOLTfkGY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wAM7YF79; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wAM7YF79" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4F8D1F000C4; Sun, 18 Oct 2026 16:00:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792339206; bh=1BdFSb3w1ueYe2dkZ1sYb7ByVuKojXTON+UJ1VLIE9U=; h=From:To:Cc:Subject:Date:Reply-To; b=wAM7YF79e7ele1a5v19Akk1CGpX/HF1ODM7VEKmhvv3C40TxreT+mOkqbq6QcmGj9 BjSwmAbP5d0AabDRpGRo784XVWLc+JrTdPOfJ9pqgNl3ANPv8VGsoRcP8rLLlkyMPE M4wyfkaasJcdy5QNUD3GpW4+hbVMvoUc9C4SR8to= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98745: arm64/fpsimd: signal: Forbid non-streaming SVE payload on SME-only systems Date: Sun, 18 Oct 2026 17:45:20 +0200 Message-ID: <2026101814-CVE-2026-98745-f82d@gregkh> X-Mailer: git-send-email 2.56.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=5576; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eAaCJnjFL/Op3zyMXebqEWtuviHF4kykrT7wwqfFQK0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXvrtkHG3Xr5z/jXttHVqJ2enP2MMkSucerj0dEn93 LfBbI6qHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR5xiGBYs/7E44t2zygsjV zo/vJ+UXNNVILGKYX32q/kGNxNKr/zdu+77xLF/66TNFpwA= 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: signal: Forbid non-streaming SVE payload on SME-only systems When system_supports_sme() is true but system_supports_sve() is false, restoring a specifically crafted SVE signal context can result in the task erroneously having non-streaming SVE state. Subsequent attempts to manipulate the task's FPSIMD/SVE/SME state can result in a variety of problems, including fatal EL1 UNDEFs. In such configurations, the kernel always creates an SVE signal context when delivering a signal, and this can only be in one of two states: (1) SVE_SIG_FLAG_SM is set, and an SVE payload is present containing streaming mode SVE state. The recorded VL is the task's live streaming VL. (2) SVE_SIG_FLAG_SM is clear, and an SVE payload is not present. The FPSIMD context contains the non-streaming mode FPSIMD state. The recorded VL is 0. Currently restore_sve_fpsimd_context() correctly rejects cases where SVE_SIG_FLAG_SM is set and an SVE payload is not present, but fails to reject cases where SVE_SIG_FLAG_SM is clear and an SVE payload is present. Consequently, restore_sve_fpsimd_context() can place the task in a state where it has non-streaming SVE state even when this is not supported by HW. For example, this can cause a later EL1 UNDEF when the kernel attempts to restore the task's ZCR_EL1 value: | # ./sme-sigcontext-to-sve | Internal error: Oops - Undefined instruction: 0000000002000000 [#1] SMP | Modules linked in: | CPU: 0 UID: 0 PID: 131 Comm: sme-sigcontext- Not tainted 7.3.0-rc1 #1 PREEMPT | Hardware name: linux,dummy-virt (DT) | pstate: 61402009 (nZCv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--) | pc : fpsimd_restore_current_state+0x258/0x458 | lr : exit_to_user_mode_loop+0xb8/0x188 | sp : ffff80008056be40 | x29: ffff80008056be40 x28: fff00000c1670000 x27: 0000000000000000 | x26: 0000000000000000 x25: 0000000000000000 x24: 0000000000000000 | x23: ffff80008056bec0 x22: 0000000000000008 x21: 0000000000000040 | x20: 0000000000000081 x19: 0000000008800010 x18: 0000000000000000 | x17: 0000fffffd412570 x16: 0000000000001000 x15: 0000fffffd4123b0 | x14: 0000fffffd412780 x13: 0000fffffd412be8 x12: 0000000047435300 | x11: 0000fffffd412570 x10: 0000000000000000 x9 : 0000000045585401 | x8 : fff00000c18a6c44 x7 : 0000000000000000 x6 : 0000000000000002 | x5 : 0000000000000002 x4 : ffff800080568000 x3 : 0000000000000001 | x2 : 0000000008800010 x1 : fff00000c1670000 x0 : 0000000008800000 | Call trace: | fpsimd_restore_current_state+0x258/0x458 (P) | exit_to_user_mode_loop+0xb8/0x188 | el0_svc+0x1cc/0x1d0 | el0t_64_sync_handler+0xa0/0xe4 | el0t_64_sync+0x198/0x19c | Code: d5384101 f9400020 53175c03 36b80de0 (d5381202) | ---[ end trace 0000000000000000 ]--- | Kernel panic - not syncing: Oops - Undefined instruction: Fatal exception in interrupt | Kernel Offset: 0x291fb1000000 from 0xffff800080000000 | PHYS_OFFSET: 0x40000000 | CPU features: 0x0,00000000,0052802f,ffb88f43,3afcf73f | Memory Limit: none Rework restore_sve_fpsimd_context() to reject cases where SVE_SIG_FLAG_SM is clear and an SVE payload is not present. As parse_user_sigframe() rejects SVE signal frames when neither SVE nor SME are supported, it isn't necessary for restore_sve_fpsimd_context() to handle the case where neither are supported. The Linux kernel CVE team has assigned CVE-2026-98745 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 7dde62f0687c8856b6c0660066c7ee83a6a6f033 and fixed in 6.12.113 with commit f2338929c7663859c0c74dd6fef2c0245066f845 Issue introduced in 6.2 with commit 7dde62f0687c8856b6c0660066c7ee83a6a6f033 and fixed in 6.18.56 with commit 2bce6f006cfe0b60e8249fd8d51396d99355cba3 Issue introduced in 6.2 with commit 7dde62f0687c8856b6c0660066c7ee83a6a6f033 and fixed in 7.2.10 with commit 88c1c611552b24658eb61244086691c02be2013b Issue introduced in 6.2 with commit 7dde62f0687c8856b6c0660066c7ee83a6a6f033 and fixed in 7.3-rc6 with commit e060d9069b49fe55f38057dfe592068014652671 Issue introduced in 6.1.7 with commit 05458ee3ff82b31a4564836a84ef20d6c233dfc7 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-98745 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/signal.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/f2338929c7663859c0c74dd6fef2c0245066f845 https://git.kernel.org/stable/c/2bce6f006cfe0b60e8249fd8d51396d99355cba3 https://git.kernel.org/stable/c/88c1c611552b24658eb61244086691c02be2013b https://git.kernel.org/stable/c/e060d9069b49fe55f38057dfe592068014652671