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 896BF2E5B2D for ; Tue, 7 Oct 2025 15:24:27 +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=1759850667; cv=none; b=WZj6H7YZOgfeybaV340F9PlTvvXLUuP2jnQINdIHky/hl6qd/JyZNJEZyvwtCXlDaHZywxBRI823WqkuGjMJKP9BkHoC946ABbx46/TUjT2tA8a5h7mo8Lf1D3+TzavQkjz/9EEf22dGwRDynRE6mjU1p8nF58g9R0YoIbyhqtE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850667; c=relaxed/simple; bh=5/GenpDAdbA5FkPlTGl4PyufJ9e7O7DYkEyoQ/cC3zQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cZ61FS9D11gk0dZkk2gkalM2Avzo3Iz6SYJdBtfqHDSFVon97LQk217YuO9CymvF1bgMc5UlSC7yrZQD1/+sq9ZdDwwbEy+3SkDv5YlltkJ+6qjx9+iaWIS8kCz2H9hmai9mekK8/9oVCpEBng8MzCLrjFuQnf0XsfnIKZAsDjk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nzUPdD5A; 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="nzUPdD5A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02F3AC4CEF1; Tue, 7 Oct 2025 15:24:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850667; bh=5/GenpDAdbA5FkPlTGl4PyufJ9e7O7DYkEyoQ/cC3zQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nzUPdD5AZnUH2bbKUJAwH+nIuhvfEIMHU4ptovbNMvgVqRADQ2mybQ59ccSZGBtG1 d0mAIQKuB0DhGlVPqufkihIthWe2DnvTZdqcYGOGp8laJwAqQjFPEsILjVJtYZdy2F kuMUXbiWB7F+OHaabkpOI4pnl08mrh5ca0dQJ+zs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53655: rcu: Avoid stack overflow due to __rcu_irq_enter_check_tick() being kprobe-ed Date: Tue, 7 Oct 2025 17:21:14 +0200 Message-ID: <2025100701-CVE-2023-53655-d389@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=6399; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aaaST7cp5z0AdPtKNFhe9vZyZEixNhrHGCmA3/LChAM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9e/GzjZ//t7Cf3GLtdPx9MkrF9Qbv/+zNrv+0OTHg R8W+U9K6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJmJkzzDOxmmdS9DztlF3X 7QjhijAfB8sHmxgW7Gg6vaQifGKTao+kwLkQs7IL90MSAA== 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: rcu: Avoid stack overflow due to __rcu_irq_enter_check_tick() being kprobe-ed Registering a kprobe on __rcu_irq_enter_check_tick() can cause kernel stack overflow as shown below. This issue can be reproduced by enabling CONFIG_NO_HZ_FULL and booting the kernel with argument "nohz_full=", and then giving the following commands at the shell prompt: # cd /sys/kernel/tracing/ # echo 'p:mp1 __rcu_irq_enter_check_tick' >> kprobe_events # echo 1 > events/kprobes/enable This commit therefore adds __rcu_irq_enter_check_tick() to the kprobes blacklist using NOKPROBE_SYMBOL(). Insufficient stack space to handle exception! ESR: 0x00000000f2000004 -- BRK (AArch64) FAR: 0x0000ffffccf3e510 Task stack: [0xffff80000ad30000..0xffff80000ad38000] IRQ stack: [0xffff800008050000..0xffff800008058000] Overflow stack: [0xffff089c36f9f310..0xffff089c36fa0310] CPU: 5 PID: 190 Comm: bash Not tainted 6.2.0-rc2-00320-g1f5abbd77e2c #19 Hardware name: linux,dummy-virt (DT) pstate: 400003c5 (nZcv DAIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __rcu_irq_enter_check_tick+0x0/0x1b8 lr : ct_nmi_enter+0x11c/0x138 sp : ffff80000ad30080 x29: ffff80000ad30080 x28: ffff089c82e20000 x27: 0000000000000000 x26: 0000000000000000 x25: ffff089c02a8d100 x24: 0000000000000000 x23: 00000000400003c5 x22: 0000ffffccf3e510 x21: ffff089c36fae148 x20: ffff80000ad30120 x19: ffffa8da8fcce148 x18: 0000000000000000 x17: 0000000000000000 x16: 0000000000000000 x15: ffffa8da8e44ea6c x14: ffffa8da8e44e968 x13: ffffa8da8e03136c x12: 1fffe113804d6809 x11: ffff6113804d6809 x10: 0000000000000a60 x9 : dfff800000000000 x8 : ffff089c026b404f x7 : 00009eec7fb297f7 x6 : 0000000000000001 x5 : ffff80000ad30120 x4 : dfff800000000000 x3 : ffffa8da8e3016f4 x2 : 0000000000000003 x1 : 0000000000000000 x0 : 0000000000000000 Kernel panic - not syncing: kernel stack overflow CPU: 5 PID: 190 Comm: bash Not tainted 6.2.0-rc2-00320-g1f5abbd77e2c #19 Hardware name: linux,dummy-virt (DT) Call trace: dump_backtrace+0xf8/0x108 show_stack+0x20/0x30 dump_stack_lvl+0x68/0x84 dump_stack+0x1c/0x38 panic+0x214/0x404 add_taint+0x0/0xf8 panic_bad_stack+0x144/0x160 handle_bad_stack+0x38/0x58 __bad_stack+0x78/0x7c __rcu_irq_enter_check_tick+0x0/0x1b8 arm64_enter_el1_dbg.isra.0+0x14/0x20 el1_dbg+0x2c/0x90 el1h_64_sync_handler+0xcc/0xe8 el1h_64_sync+0x64/0x68 __rcu_irq_enter_check_tick+0x0/0x1b8 arm64_enter_el1_dbg.isra.0+0x14/0x20 el1_dbg+0x2c/0x90 el1h_64_sync_handler+0xcc/0xe8 el1h_64_sync+0x64/0x68 __rcu_irq_enter_check_tick+0x0/0x1b8 arm64_enter_el1_dbg.isra.0+0x14/0x20 el1_dbg+0x2c/0x90 el1h_64_sync_handler+0xcc/0xe8 el1h_64_sync+0x64/0x68 __rcu_irq_enter_check_tick+0x0/0x1b8 [...] el1_dbg+0x2c/0x90 el1h_64_sync_handler+0xcc/0xe8 el1h_64_sync+0x64/0x68 __rcu_irq_enter_check_tick+0x0/0x1b8 arm64_enter_el1_dbg.isra.0+0x14/0x20 el1_dbg+0x2c/0x90 el1h_64_sync_handler+0xcc/0xe8 el1h_64_sync+0x64/0x68 __rcu_irq_enter_check_tick+0x0/0x1b8 arm64_enter_el1_dbg.isra.0+0x14/0x20 el1_dbg+0x2c/0x90 el1h_64_sync_handler+0xcc/0xe8 el1h_64_sync+0x64/0x68 __rcu_irq_enter_check_tick+0x0/0x1b8 el1_interrupt+0x28/0x60 el1h_64_irq_handler+0x18/0x28 el1h_64_irq+0x64/0x68 __ftrace_set_clr_event_nolock+0x98/0x198 __ftrace_set_clr_event+0x58/0x80 system_enable_write+0x144/0x178 vfs_write+0x174/0x738 ksys_write+0xd0/0x188 __arm64_sys_write+0x4c/0x60 invoke_syscall+0x64/0x180 el0_svc_common.constprop.0+0x84/0x160 do_el0_svc+0x48/0xe8 el0_svc+0x34/0xd0 el0t_64_sync_handler+0xb8/0xc0 el0t_64_sync+0x190/0x194 SMP: stopping secondary CPUs Kernel Offset: 0x28da86000000 from 0xffff800008000000 PHYS_OFFSET: 0xfffff76600000000 CPU features: 0x00000,01a00100,0000421b Memory Limit: none The Linux kernel CVE team has assigned CVE-2023-53655 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit aaf2bc50df1f4bfc6857fc601fc7b21d5a18c6a1 and fixed in 5.10.180 with commit eb18bc5a8678f431c500e6da1b8b5f34478d5bc1 Issue introduced in 5.8 with commit aaf2bc50df1f4bfc6857fc601fc7b21d5a18c6a1 and fixed in 5.15.111 with commit 4c3d1a6720aefb02403ddfebe85db521d3af2c3b Issue introduced in 5.8 with commit aaf2bc50df1f4bfc6857fc601fc7b21d5a18c6a1 and fixed in 6.1.28 with commit c8a3341b339285495cf7c8d061d659465f2311e0 Issue introduced in 5.8 with commit aaf2bc50df1f4bfc6857fc601fc7b21d5a18c6a1 and fixed in 6.2.15 with commit 93b6295f677d96b73cfcb703532f6c7369a60d96 Issue introduced in 5.8 with commit aaf2bc50df1f4bfc6857fc601fc7b21d5a18c6a1 and fixed in 6.3.2 with commit 7b5a97333e920b69356e097f185bdc51d61e66ee Issue introduced in 5.8 with commit aaf2bc50df1f4bfc6857fc601fc7b21d5a18c6a1 and fixed in 6.4 with commit 7a29fb4a4771124bc61de397dbfc1554dbbcc19c 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-2023-53655 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: kernel/rcu/tree.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/eb18bc5a8678f431c500e6da1b8b5f34478d5bc1 https://git.kernel.org/stable/c/4c3d1a6720aefb02403ddfebe85db521d3af2c3b https://git.kernel.org/stable/c/c8a3341b339285495cf7c8d061d659465f2311e0 https://git.kernel.org/stable/c/93b6295f677d96b73cfcb703532f6c7369a60d96 https://git.kernel.org/stable/c/7b5a97333e920b69356e097f185bdc51d61e66ee https://git.kernel.org/stable/c/7a29fb4a4771124bc61de397dbfc1554dbbcc19c