# CVE-2026-23276: net: add xmit recursion limit to tunnel xmit functions

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-03-20T08:08:56.575Z
- Modified: 2026-11-05T22:18:10.813Z
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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:
  <TASK>
  __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
  </TASK>

(As written by CVE List.)

## Affected

- Linux Linux: from 745e20f1b626b1be4b100af5d4bf7b3439392f8f before da5f0166cef3d4285ddbb1b638661263fc03ee92; from 745e20f1b626b1be4b100af5d4bf7b3439392f8f before 834c4f645726a25fd71ea50cdfb5c135f8f95d85; from 745e20f1b626b1be4b100af5d4bf7b3439392f8f before 8a57deeb256069f262957d8012418559ff66c385; from 745e20f1b626b1be4b100af5d4bf7b3439392f8f before b56b8d19bd05e2a8338385c770bc2b60590bc81e; from 745e20f1b626b1be4b100af5d4bf7b3439392f8f before 6f1a9140ecda3baba3d945b9a6155af4268aafc4; 3f266b04185de51d8e6446eb1fccec3b5e7ce575; from 2.6.35.9 before 2.6.36; 2.6.37 (not affected: before 2.6.37; from 6.6.160 up to 6.6.*; from 6.12.78 up to 6.12.*; from 6.18.19 up to 6.18.*; from 6.19.9 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 2.6.35.9 before 2.6.36; from 2.6.37 before 6.12.78; from 6.13 before 6.18.19; from 6.19 before 6.19.9; 7.0

## References

- <https://git.kernel.org/stable/c/da5f0166cef3d4285ddbb1b638661263fc03ee92>
- <https://git.kernel.org/stable/c/834c4f645726a25fd71ea50cdfb5c135f8f95d85> (patch)
- <https://git.kernel.org/stable/c/8a57deeb256069f262957d8012418559ff66c385> (patch)
- <https://git.kernel.org/stable/c/b56b8d19bd05e2a8338385c770bc2b60590bc81e> (patch)
- <https://git.kernel.org/stable/c/6f1a9140ecda3baba3d945b9a6155af4268aafc4> (patch)

## Sources

- CVE List: [CVE-2026-23276](https://www.cve.org/CVERecord?id=CVE-2026-23276), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-23276](https://nvd.nist.gov/vuln/detail/CVE-2026-23276), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-23276 · Whole record: https://cve.day/CVE-2026-23276.json · Rebuilt by cve.day 2026-11-25T22:59:16.299Z
