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=1795154007; b=tdzSZpbNW519blONIY98s+I35kmQRyZ8ZiQw+hyYJ3ecWBZzvqU/DbTV2+IubCMKRm27 MXvwEauMYJIzV+An/IvbiBKpVxOSWCtJAKM27o1Q1LTh+iocrdEkMV9av7LbfQXJMkmmO Limv63z7q3PKOhGXbwUgzLKiy3KWxsGJFhQCB2uUgTbK6kATrJkVX8TqPOHp8TkyItY0M sKyN9/Lpq8KxAZfzf8Cw3A+APWAte3sxsJa3sFcv/O6Sc6fCVN8CHHmUDX7+m7e+QLZBS Zr436xaYPaVilOM7hWKgB9Ze4/qXdASLEQ81jcevsFWF0nQBz+nx8Lv7KF4Z2zHgV2A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154007; 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=xdxc3quaEBFpFvVTPXEBxGZRuFsToEYIaK54UvL80U8=; b=ckwS5OJB/zioWVnN+HQXzKViUFVsohXT40sEyZVihTmwl0xgox1q0bEb0xlPLnKt0GNH WUDsWZGPvtm9yI5J1FxX6AsRAGpmzU/hm+siVwShxLItA7m2cfNjjlkfX9ZsuJ/oPmpdN tSrvAWPbiz+4jFWd7UJtjunUgLOmIbgqQVQSumysxbX3YIbkhNcbwKAYb3lxTkJCtZ7wu RMFnzMjV87pGtMaIo8AqiYHFfoz52DBaENlzhgjDwSgaXHbJicgcyW5gb7KbaBoMh9UMG W8R2fACe4UOPSJtLMAI+SAes+oS2NYk8cbMLk1GDbV6ZiBlzs+6/wE093gA2aM+fNTw== 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="JOv0d/ac"; 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 AF896606A332 for ; Fri, 20 Nov 2026 05:53:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=JOv0d/ac Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF2061F000CF; Fri, 20 Nov 2026 05:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154007; bh=xdxc3quaEBFpFvVTPXEBxGZRuFsToEYIaK54UvL80U8=; h=From:To:Cc:Subject:Date:Reply-To; b=JOv0d/achddjv1WNn/bofLr45WVKvXGPZpd9l+WQCtu+sYZclZuU6GIAheQcU2l4e fwhPnv4OGkfs2nVpAmR5sH203z/P59IQ1RJ9eR+NAoM+AOKBABYDz40YNfP3sUwUIn LkEUI7LpNNgP2ET9/7B316PLsLYtypisib5gquO0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99593: arm64: sdei: Preserve the interrupted context's exception registers Date: Fri, 20 Nov 2026 06:49:39 +0100 Message-ID: <2026112023-CVE-2026-99593-4261@gregkh> X-Mailer: git-send-email 2.56.1 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=4004; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SkbhIQvktE0O/JJjv6v6oFarO7+WBzR80Vv21LlS7k8=; b=kA0DAAIRMUfUDdst+ykByyZiAGr/32OiZK781vYeQNiKkq8hXKDOxWilgL6cFeo08QeeqwpbS 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmr/32MACgkQMUfUDdst+ykLiwCeIIYA 6YJFzhVU4Vfai9Mzyx3PcFkAoNdMpu1xzimdNas9SdI+wwFFGMtj 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: sdei: Preserve the interrupted context's exception registers An SDEI event is dispatched by firmware regardless of PSTATE.DAIF, so it can interrupt the kernel where the exception registers are live: - exception entry, before kernel_entry has saved ELR_EL1/SPSR_EL1 and before the C handler has read ESR_EL1/FAR_EL1; - exception return, after kernel_exit has loaded ELR_EL1/SPSR_EL1 and before the ERET. An IRQ or pseudo-NMI cannot arrive there with PSTATE.I set. Firmware saves only x0-x17, PC and PSTATE around an SDEI event, so a synchronous exception taken by the handler overwrites the interrupted context's ELR, SPSR, ESR and FAR. do_sdei_event() only notices that ELR changed, and warns. The interrupted context then carries on with the handler's state. A task interrupted on its way into the kernel can be sent SIGILL for the handler's kernel data abort. A task interrupted on its way back to user space ERETs to EL1, at the handler's fixup address, with user registers loaded. With SDEI delivering NMI backtraces, this happens in normal operation. The handler runs show_regs(), which reads through possibly-NULL pointers with the _nofault() accessors. print_worker_info() faults this way for a kworker that is not running a work item, and a single sysrq-l warned once per such kworker. Save ELR, SPSR, ESR and FAR in __sdei_handler() before irqentry_nmi_enter(), which can take an exception too, and restore them after irqentry_nmi_exit(). Once they are restored, a nested exception is harmless if its handler is safe in NMI context. That holds for EL1 data aborts on translation, permission and access-flag faults, which never take the mmap lock in NMI context, and for BRK. Warn once, with the syndrome, about any other exception class. The Linux kernel CVE team has assigned CVE-2026-99593 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit f5df26961853d6809d704cedcaf082c57f635a64 and fixed in 6.12.118 with commit 41069c9f124e98e0f0f4dbc859a0d1bde5aa6774 Issue introduced in 4.16 with commit f5df26961853d6809d704cedcaf082c57f635a64 and fixed in 6.18.64 with commit 4eb6fe1ba6373c573e9940298092fc5d5cd08844 Issue introduced in 4.16 with commit f5df26961853d6809d704cedcaf082c57f635a64 and fixed in 7.3.5 with commit d56db59d42d03d138ab643f765c84a48876f7a6a Issue introduced in 4.16 with commit f5df26961853d6809d704cedcaf082c57f635a64 and fixed in 7.4-rc2 with commit 58c1eb84e97701c583605ba2fd553b69afba2245 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-99593 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/entry-common.c arch/arm64/kernel/sdei.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/41069c9f124e98e0f0f4dbc859a0d1bde5aa6774 https://git.kernel.org/stable/c/4eb6fe1ba6373c573e9940298092fc5d5cd08844 https://git.kernel.org/stable/c/d56db59d42d03d138ab643f765c84a48876f7a6a https://git.kernel.org/stable/c/58c1eb84e97701c583605ba2fd553b69afba2245