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=1792755844; b=hj2xCx48tqGzwlvQeZEuUmlMLtX/o3+n0UVeCoADBUjX+ICO660HH2GbeO/Am6W/3DEd B6JAwCsBB2hg1hwQnFqazG8lIrnqM2fKYLJPvPWiiGOENVp+IEFrmTEXUeRBAysx5gM6w rfzPtcCvhjK20huUUlVBLU40pnE8Ev5TyQD46ThXN4LqcH8+0w0GXsZv3zeOgRePB16Zz kctmkMT0uV7BtCRcGiisCMh8VlATM+20w4e8Kd+1N7ZOG0yZHn0adQgnf+YOqC0L/196m Lzlyex60b1RjsjXrWshMfwqgSqrCmU/hwbXU+Fy5LTYSOdudpaM7Ncx9BspU7Y+drUA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792755844; 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=8ZXcX8XtuwpNzXj2hEuSEfE4Ae6tzAbP1Cnmv7AHbM0=; b=zSGhe5+ub3Uq9p3vwIKW3RL3PTHyuIjBRCkZhZalqmWDoIhGkrRnFb/VONN5hKqy1vxv XnLT1t2hbMFXvQDcdhU4/7AmAmLv2CEUfWsUjtXhUmBo4olQDP/zuMJ91AuLfl0H1kW/l +ERsXdj+UrvKXIJLKSzNtDTPvF/gjryqicGrx+waq4XatZb7Pb9PvGiRZpK7Xqdr8O/X7 yeiDbRI3zgDzDDGN2+1VDPPonD7zPBJFiE6ArNaYeEw4NIQn3+7oY1O/n2D0am7I93snw 7Ff6/GndnvGEOo+IHTT5fGOTAl4Dh3dXCnvXMO52OSL93I7y64GgdDIqiR7dG22XBQQ== 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=KpiFDEYq; 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 E250E606A31A for ; Fri, 23 Oct 2026 11:44:03 +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=KpiFDEYq Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03F3B1F01825; Fri, 23 Oct 2026 11:44:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792755843; bh=8ZXcX8XtuwpNzXj2hEuSEfE4Ae6tzAbP1Cnmv7AHbM0=; h=From:To:Cc:Subject:Date:Reply-To; b=KpiFDEYqkjSMizYQ+LKhRoOzAUhS7STu+HyUBengMey315vMT90eiEosKaF3qedLB bm1wiLurz30VrKLZLpOYYmhZRh7iShN2h3Sm15s7qtD+aNp6S8u5AtQ5Czrdja+J2P meQZuYTEjCyCiKIgzXYTQk60PMYANMBXdHiylKds= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98888: arm64: kprobes: Allow reentering kprobes while single-stepping Date: Fri, 23 Oct 2026 13:37:36 +0200 Message-ID: <2026102324-CVE-2026-98888-7e69@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=3980; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=avTZQGOsVzC/me0+QaeGsBE0H7WF+LMKQKoyyx0Az/A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm33b58m+7yvk7g1K/5Mq5u+TIlVx694zWO/xvw4EVgQ WpFqeyVjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIyxKGeVbiqzWyskoveH3J PnHHXV8/bbHpNob5lcK68YZL1xzr9C+UVi6IvuwUFvYbAA== 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: kprobes: Allow reentering kprobes while single-stepping A kprobe can be hit while another kprobe is in KPROBE_HIT_SS state. This can happen when tracing or perf code runs from the debug exception path while the first kprobe is preparing or executing its out-of-line single-step instruction. Currently arm64 treats a kprobe hit in KPROBE_HIT_SS as unrecoverable, the same as a hit in KPROBE_REENTER. This is too strict. A hit in KPROBE_HIT_SS is still a one-level reentry and can be handled by saving the current kprobe state and setting up single-step for the new probe, just like reentry from KPROBE_HIT_ACTIVE or KPROBE_HIT_SSDONE. The truly unrecoverable case is hitting another kprobe while already in KPROBE_REENTER, because the reentry save area has already been consumed. Move KPROBE_HIT_SS to the recoverable reentry cases and leave KPROBE_REENTER as the unrecoverable nested reentry case. This change also requires saving saved_irqflag in struct prev_kprobe. When a nested kprobe calls kprobes_save_local_irqflag(), it overwrites kcb->saved_irqflag with the currently masked DAIF value, losing the outer kprobe's original DAIF state. Without this fix, when the outer kprobe's single-step finishes, kprobes_restore_local_irqflag() applies the wrong DAIF mask and leaves interrupts permanently disabled. Extend struct prev_kprobe with a saved_irqflag field and save/restore it alongside kp and status. This ensures the outer kprobe's original interrupt state is preserved across reentry. This mirrors the x86 fix in commit 6a5022a56ac3 ("kprobes/x86: Allow to handle reentered kprobe on single-stepping"). The Linux kernel CVE team has assigned CVE-2026-98888 to this issue. Affected and fixed versions =========================== Fixed in 5.10.271 with commit bb0fe9121aa0824211aafa33c7d0151fd25ddb75 Fixed in 5.15.222 with commit f96a0606de6bcc8d937b80e6470fd7a174c17e26 Fixed in 6.1.189 with commit 1f342b3e44c3035a837b53b217d816f7511c0d0a Fixed in 6.6.158 with commit c8e84e292ed4cfc199824146da71bb4397b02a1f Fixed in 6.12.111 with commit 68774caca799e9695db56d426c69acebd041c2ed Fixed in 6.18.53 with commit a21bf9cb893126e8d9730995708d0be5eb167652 Fixed in 7.2 with commit 23f851ac0078a908bf3422d6467ebc1db5828c46 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-98888 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/include/asm/kprobes.h arch/arm64/kernel/probes/kprobes.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/bb0fe9121aa0824211aafa33c7d0151fd25ddb75 https://git.kernel.org/stable/c/f96a0606de6bcc8d937b80e6470fd7a174c17e26 https://git.kernel.org/stable/c/1f342b3e44c3035a837b53b217d816f7511c0d0a https://git.kernel.org/stable/c/c8e84e292ed4cfc199824146da71bb4397b02a1f https://git.kernel.org/stable/c/68774caca799e9695db56d426c69acebd041c2ed https://git.kernel.org/stable/c/a21bf9cb893126e8d9730995708d0be5eb167652 https://git.kernel.org/stable/c/23f851ac0078a908bf3422d6467ebc1db5828c46