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 DB1F732937A for ; Fri, 20 Mar 2026 08:13:59 +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=1773994439; cv=none; b=SPHL3S9o1FJjanI2EuXaAHpvDveka4KCEh3nApyT+bxTub3TmvQYlisOU843312ro133n3CQNF5kcijB0mz28Upottlla2Jo75o3Y1BiVPFdrynkCaCUr2qSX+JLepIuBHfGJjQpZm63QiRzQRCwUIvhg478rbCfzl99z8iu4ps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773994439; c=relaxed/simple; bh=+eAcSMc3rsdfCf7EgkQHqqBmrC3wlyERwX0rVyHGWtk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PJKwkB0fnThG50TQIiy3jHUaIy7FGUElQecVwVxCAwszNiNjEu3+o7qedMs3rCQAmBeIcgrAC33thR9vDO0z4Knxw5KwZuViNT+m+FlQF+T7v1s5cmqAF1Fic7dr7IrPwJNCtT7Djk2ERHsv4cyYwfHCr31f2tOEIA1gCQs9adM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gfhA2iPC; 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="gfhA2iPC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AC63C4CEF7; Fri, 20 Mar 2026 08:13:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773994439; bh=+eAcSMc3rsdfCf7EgkQHqqBmrC3wlyERwX0rVyHGWtk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=gfhA2iPCt7wPmgNnPgrsZmrxMBU8yx1x9mizBEQhLfxxNefYhomQn9nGYWy2HtJAc KdEbtK0XOPpJF99WlHC1J8bJ6N4giMBEJfCLDrwoTVQCq03Csewb2GqnY+04UdnrXS lCty5tAF58va42MbyYxRCec7EGOIDGRAAHunSu/k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23276: net: add xmit recursion limit to tunnel xmit functions Date: Fri, 20 Mar 2026 09:13:37 +0100 Message-ID: <2026032035-CVE-2026-23276-7fd3@gregkh> X-Mailer: git-send-email 2.53.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=5263; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=paNoiZAqJJUqzzS8Pi8GeFuWIK0H1mSvAep2d8GVqIA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl7Gdcz7XQOTjnpLtqZ/KJ6a+hdZifzIksFrqcy2fv4e 9LjmTg6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCJTghgWTFoppy3WG8K08up9 OeXfxfvFlA5cZlgw9Xzm6vZ4i6lnEvim2P60jjutdsoQAA== 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: add xmit recursion limit to tunnel xmit functions Tunnel xmit functions (iptunnel_xmit, ip6tunnel_xmit) lack their own recursion limit. When a bond device in broadcast mode has GRE tap interfaces as slaves, and those GRE tunnels route back through the bond, multicast/broadcast traffic triggers infinite recursion between bond_xmit_broadcast() and ip_tunnel_xmit()/ip6_tnl_xmit(), causing kernel stack overflow. The existing XMIT_RECURSION_LIMIT (8) in the no-qdisc path is not sufficient because tunnel recursion involves route lookups and full IP output, consuming much more stack per level. Use a lower limit of 4 (IP_TUNNEL_RECURSION_LIMIT) to prevent overflow. Add recursion detection using dev_xmit_recursion helpers directly in iptunnel_xmit() and ip6tunnel_xmit() to cover all IPv4/IPv6 tunnel paths including UDP encapsulated tunnels (VXLAN, Geneve, etc.). Move dev_xmit_recursion helpers from net/core/dev.h to public header include/linux/netdevice.h so they can be used by tunnel code. BUG: KASAN: stack-out-of-bounds in blake2s.constprop.0+0xe7/0x160 Write of size 32 at addr ffff88810033fed0 by task kworker/0:1/11 Workqueue: mld mld_ifc_work Call Trace: __build_flow_key.constprop.0 (net/ipv4/route.c:515) ip_rt_update_pmtu (net/ipv4/route.c:1073) iptunnel_xmit (net/ipv4/ip_tunnel_core.c:84) ip_tunnel_xmit (net/ipv4/ip_tunnel.c:847) gre_tap_xmit (net/ipv4/ip_gre.c:779) dev_hard_start_xmit (net/core/dev.c:3887) sch_direct_xmit (net/sched/sch_generic.c:347) __dev_queue_xmit (net/core/dev.c:4802) bond_dev_queue_xmit (drivers/net/bonding/bond_main.c:312) bond_xmit_broadcast (drivers/net/bonding/bond_main.c:5279) bond_start_xmit (drivers/net/bonding/bond_main.c:5530) dev_hard_start_xmit (net/core/dev.c:3887) __dev_queue_xmit (net/core/dev.c:4841) ip_finish_output2 (net/ipv4/ip_output.c:237) ip_output (net/ipv4/ip_output.c:438) iptunnel_xmit (net/ipv4/ip_tunnel_core.c:86) gre_tap_xmit (net/ipv4/ip_gre.c:779) dev_hard_start_xmit (net/core/dev.c:3887) sch_direct_xmit (net/sched/sch_generic.c:347) __dev_queue_xmit (net/core/dev.c:4802) bond_dev_queue_xmit (drivers/net/bonding/bond_main.c:312) bond_xmit_broadcast (drivers/net/bonding/bond_main.c:5279) bond_start_xmit (drivers/net/bonding/bond_main.c:5530) dev_hard_start_xmit (net/core/dev.c:3887) __dev_queue_xmit (net/core/dev.c:4841) ip_finish_output2 (net/ipv4/ip_output.c:237) ip_output (net/ipv4/ip_output.c:438) iptunnel_xmit (net/ipv4/ip_tunnel_core.c:86) ip_tunnel_xmit (net/ipv4/ip_tunnel.c:847) gre_tap_xmit (net/ipv4/ip_gre.c:779) dev_hard_start_xmit (net/core/dev.c:3887) sch_direct_xmit (net/sched/sch_generic.c:347) __dev_queue_xmit (net/core/dev.c:4802) bond_dev_queue_xmit (drivers/net/bonding/bond_main.c:312) bond_xmit_broadcast (drivers/net/bonding/bond_main.c:5279) bond_start_xmit (drivers/net/bonding/bond_main.c:5530) dev_hard_start_xmit (net/core/dev.c:3887) __dev_queue_xmit (net/core/dev.c:4841) mld_sendpack mld_ifc_work process_one_work worker_thread The Linux kernel CVE team has assigned CVE-2026-23276 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.37 with commit 745e20f1b626b1be4b100af5d4bf7b3439392f8f and fixed in 6.18.19 with commit 8a57deeb256069f262957d8012418559ff66c385 Issue introduced in 2.6.37 with commit 745e20f1b626b1be4b100af5d4bf7b3439392f8f and fixed in 6.19.9 with commit b56b8d19bd05e2a8338385c770bc2b60590bc81e Issue introduced in 2.6.37 with commit 745e20f1b626b1be4b100af5d4bf7b3439392f8f and fixed in 7.0-rc4 with commit 6f1a9140ecda3baba3d945b9a6155af4268aafc4 Issue introduced in 2.6.35.9 with commit 3f266b04185de51d8e6446eb1fccec3b5e7ce575 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-23276 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: include/linux/netdevice.h include/net/ip6_tunnel.h include/net/ip_tunnels.h net/core/dev.h net/ipv4/ip_tunnel_core.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/8a57deeb256069f262957d8012418559ff66c385 https://git.kernel.org/stable/c/b56b8d19bd05e2a8338385c770bc2b60590bc81e https://git.kernel.org/stable/c/6f1a9140ecda3baba3d945b9a6155af4268aafc4