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 076D03446BB for ; Wed, 22 Oct 2025 13:26:56 +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=1761139616; cv=none; b=NklP2/GcxKIyBYV54T4CnGRih5Iq6lpHgBtwGNyToxRlm6K5DovzEwoUdcQYdVVEZkXwLPcSXKp//Sru60l6huM/RKmg/1jOCphOG0Bjk/53NqhG4nOvZe5V4gIKhnrUvfKXnHB1Xvyinq02hU5s27PVqfhj1copxFYsAnjZkFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761139616; c=relaxed/simple; bh=/Kc3cQpydEk7B4vGgN13YTIkTRPOOQ9XzCiTZL64GdA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DWVoPXUu+ooX3coSkkL92laggVeI+En6Z6ABaOQ/o/Pio219orK56K2cdXVzO4fR1p4sugtvFTo6oDCIrlnZh42nubDl8d0qVzwYOSDmJl2k3mddewmRWw++KrZuZ83yXEWYYWejgdQJ2CjcQoIersQai2+eiSSUTCJQeuNUhso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K3vcwj4l; 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="K3vcwj4l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89DDAC4CEE7; Wed, 22 Oct 2025 13:26:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761139615; bh=/Kc3cQpydEk7B4vGgN13YTIkTRPOOQ9XzCiTZL64GdA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=K3vcwj4l9dKeYIRFrlokRWR5lfWgsArPhZPwVA6cplpwLec4vN3rFwSG7KFsprYK3 hOQFoPpXsQgoAasI9yFW+GcU6v3ptWExppHWr2TtyfSl+Ti7mSHEmx6k9rdP7uqiEl DJ1CnN0YRc3GdofQVlk4LMLpdaSRuyNdFOw7TJjo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53727: net/sched: fq_pie: avoid stalls in fq_pie_timer() Date: Wed, 22 Oct 2025 15:25:06 +0200 Message-ID: <2025102215-CVE-2023-53727-73d8@gregkh> X-Mailer: git-send-email 2.51.1 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=4463; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ViNTr7Rg+XA7A5EZ0LRgx/Wg+EbP3aHFDjPstMKlL5Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk/bv3/qXtxdxnvikuac73csw0KilcXmtQHCN1543LW+ rhU54ddHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRJZsZ5icatbLL7N4joZIo JxLW1b/infytSob5BbufXOj9/k82R7C6WKTHo7ZX/LwlAA== 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: net/sched: fq_pie: avoid stalls in fq_pie_timer() When setting a high number of flows (limit being 65536), fq_pie_timer() is currently using too much time as syzbot reported. Add logic to yield the cpu every 2048 flows (less than 150 usec on debug kernels). It should also help by not blocking qdisc fast paths for too long. Worst case (65536 flows) would need 31 jiffies for a complete scan. Relevant extract from syzbot report: rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-.... } 2663 jiffies s: 873 root: 0x1/. rcu: blocking rcu_node structures (internal RCU debug): Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 5177 Comm: syz-executor273 Not tainted 6.5.0-syzkaller-00453-g727dbda16b83 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline] RIP: 0010:write_comp_data+0x21/0x90 kernel/kcov.c:236 Code: 2e 0f 1f 84 00 00 00 00 00 65 8b 05 01 b2 7d 7e 49 89 f1 89 c6 49 89 d2 81 e6 00 01 00 00 49 89 f8 65 48 8b 14 25 80 b9 03 00 00 01 ff 00 74 0e 85 f6 74 59 8b 82 04 16 00 00 85 c0 74 4f 8b RSP: 0018:ffffc90000007bb8 EFLAGS: 00000206 RAX: 0000000000000101 RBX: ffffc9000dc0d140 RCX: ffffffff885893b0 RDX: ffff88807c075940 RSI: 0000000000000100 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffc9000dc0d178 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000555555d54380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6b442f6130 CR3: 000000006fe1c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pie_calculate_probability+0x480/0x850 net/sched/sch_pie.c:415 fq_pie_timer+0x1da/0x4f0 net/sched/sch_fq_pie.c:387 call_timer_fn+0x1a0/0x580 kernel/time/timer.c:1700 The Linux kernel CVE team has assigned CVE-2023-53727 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit ec97ecf1ebe485a17cd8395a5f35e6b80b57665a and fixed in 5.10.195 with commit 94d527c3759d76c29220758362f622954612bea7 Issue introduced in 5.6 with commit ec97ecf1ebe485a17cd8395a5f35e6b80b57665a and fixed in 5.15.132 with commit 973a4c302d7f3804098ff9824d9f56926901f293 Issue introduced in 5.6 with commit ec97ecf1ebe485a17cd8395a5f35e6b80b57665a and fixed in 6.1.54 with commit f39b49077abec4c9c3a4c2966532004851c51006 Issue introduced in 5.6 with commit ec97ecf1ebe485a17cd8395a5f35e6b80b57665a and fixed in 6.5.4 with commit e093000e7d13569c9cb07d7500acd5142c3c43cb Issue introduced in 5.6 with commit ec97ecf1ebe485a17cd8395a5f35e6b80b57665a and fixed in 6.6 with commit 8c21ab1bae945686c602c5bfa4e3f3352c2452c5 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-53727 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: net/sched/sch_fq_pie.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/94d527c3759d76c29220758362f622954612bea7 https://git.kernel.org/stable/c/973a4c302d7f3804098ff9824d9f56926901f293 https://git.kernel.org/stable/c/f39b49077abec4c9c3a4c2966532004851c51006 https://git.kernel.org/stable/c/e093000e7d13569c9cb07d7500acd5142c3c43cb https://git.kernel.org/stable/c/8c21ab1bae945686c602c5bfa4e3f3352c2452c5