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 6D1C43A1CF8 for ; Sun, 19 Jul 2026 15:02:21 +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=1784473342; cv=none; b=j2qVIxQnofE+HBRkTUY2+9eAg1GFmJa0SNDLXTqr7JyufS2ciM8sUB6xzAREH2I6keesIFoMexfMGAKqJED7Kj+iiIxl+DIOwbpLc9sz2WbaWPh5pO1qDEQxFtF3Pv961uBgBWr2mWxfXL05ubIM+gzrs7OPFx3TyHaHA++JC/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473342; c=relaxed/simple; bh=5DDuMsBb9gKmG5OCngfAPHXIBP7qf6t1kSJv0f+q2Gw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p+GM+nBPr9ohaD2uo0JJ1dL/Cga+5SSXols0fHlk+oRWHkvaDYdqEQHrkiAHjqK3etiRqFEjBNPiA8kKvfp3lRFgUduSA6esrND9qYtNl4h0H5awE4FecqUkszlr7m3KMf7gHEbDn3KUnw/fURXJ+iTm6k0vplrv5ht9QDFLLyE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cmMe18im; 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="cmMe18im" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D07D31F000E9; Sun, 19 Jul 2026 15:02:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473341; bh=d9qGD1g91mwyYcnnveOZHnbH+Pc6p1/2pEzUGNIeN6k=; h=From:To:Cc:Subject:Date:Reply-To; b=cmMe18imElUU4yz3BErOaYSlkfU6a1zoT+OuojY6Zu4HilH+F7hzPB5ie4WFo9T46 Jbsrq0IsiGiFvy3xrkm8QSmZnj0pwDS6FmlwdAL9qGSCGO2vrSctE/te3apJpAo8Ir wgORY6R29o4D98xD0kno3PewVExpIEeSSH7iq1fY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63981: net/sched: act_mirred: Fix blockcast recursion bypass leading to stack overflow Date: Sun, 19 Jul 2026 16:57:21 +0200 Message-ID: <2026071902-CVE-2026-63981-1d04@gregkh> X-Mailer: git-send-email 2.55.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=3829; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tZWouzV/QXntQF+AwlnD9hq0U6TspSVfvRfW+DTp5BI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxT5v07c9rKofOeHI4yTBr1i3GNzcEpvQ+43i+NFh73 m+/dGb3jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIqBLDgm2i5tyfBCTsxA6t itYJ2N/9ToXrKMP85ODPD1L3Fs4Q2azhsZpBPaH7youdAA== 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: act_mirred: Fix blockcast recursion bypass leading to stack overflow tcf_mirred_act() checks sched_mirred_nest against MIRRED_NEST_LIMIT (4) to prevent deep recursion. However, when the action uses blockcast (tcfm_blockid != 0), the function returns at the tcf_blockcast() call BEFORE reaching the counter increment. As a result, the recursion counter never advances and the limit check is entirely bypassed. When two devices share a TC egress block with a mirred blockcast rule, a packet egressing on device A is mirrored to device B via blockcast; device B's egress TC re-enters tcf_mirred_act() via blockcast and mirrors back to A, creating an unbounded recursion loop: tcf_mirred_act -> tcf_blockcast -> tcf_mirred_to_dev -> dev_queue_xmit -> sch_handle_egress -> tcf_classify -> tcf_mirred_act -> (repeat) This recursion continues until the kernel stack overflows. The bug is reachable from an unprivileged user via unshare(CLONE_NEWUSER | CLONE_NEWNET): user namespaces grant CAP_NET_ADMIN in the new network namespace, which is sufficient to create dummy devices, attach clsact qdiscs with shared blocks, and install mirred blockcast filters. BUG: TASK stack guard page was hit at ffffc90000b7fff8 Oops: stack guard page: 0000 [#1] SMP KASAN NOPTI CPU: 2 UID: 1000 PID: 169 Comm: poc Not tainted 7.0.0-rc7-next-20260410 RIP: 0010:xas_find+0x17/0x480 Call Trace: xa_find+0x17b/0x1d0 tcf_mirred_act+0x640/0x1060 tcf_action_exec+0x400/0x530 basic_classify+0x128/0x1d0 tcf_classify+0xd83/0x1150 tc_run+0x328/0x620 __dev_queue_xmit+0x797/0x3100 tcf_mirred_to_dev+0x7b1/0xf70 tcf_mirred_act+0x68a/0x1060 [repeating ~30+ times until stack overflow] Kernel panic - not syncing: Fatal exception in interrupt Fix this by incrementing sched_mirred_nest before calling tcf_blockcast() and decrementing it on return, mirroring the non-blockcast path. This ensures subsequent recursive entries see the updated counter and are correctly limited by MIRRED_NEST_LIMIT. The Linux kernel CVE team has assigned CVE-2026-63981 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit fe946a751d9b52b7c45ca34899723b314b79b249 and fixed in 7.0.12 with commit 34457de389fb64a01fdcc71177dfebe65fd2d362 Issue introduced in 6.19 with commit fe946a751d9b52b7c45ca34899723b314b79b249 and fixed in 7.1 with commit a005fa5d7502eefec7ee6e1c01adadc06de2f9ad 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-63981 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/act_mirred.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/25fc9352590f5ef21ebf290432bd768b336693bc https://git.kernel.org/stable/c/34457de389fb64a01fdcc71177dfebe65fd2d362 https://git.kernel.org/stable/c/a005fa5d7502eefec7ee6e1c01adadc06de2f9ad