CVE-2026-143186

Not scored yetLast modified Dec 3, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

nsh: limit recursion in nsh_gso_segment()

nsh_gso_segment() calls skb_mac_gso_segment() for the inner packet, which calls nsh_gso_segment() again when the next protocol is NSH, either directly or behind an inner Ethernet header (ETH_P_TEB).

Nothing limits the depth: a GSO packet made of stacked 8-byte NSH headers recurses once per header, and a 64KB packet can hold about 8000 of them, overflowing the kernel stack.

Such a packet can be injected with a packet socket using PACKET_VNET_HDR, or with tun/tap or virtio_net, as nothing checks that a GSO packet with VIRTIO_NET_HDR_F_NEEDS_CSUM carries the protocol it claims. It is then segmented in software if the output device does not support the GSO type:

BUG: TASK stack guard page was hit at ffffcad5c0ab3ff8 (stack is ffffcad5c0ab4000..ffffcad5c0ab8000) Oops: stack guard page: 0000 [#1] SMP NOPTI CPU: 3 UID: 0 PID: 337 Comm: nsh_gso Tainted: G E 7.4.0-rc1+ #118 PREEMPT(lazy) RIP: 0010:lock_acquire (kernel/locking/lockdep.c:5902) Call Trace: <TASK> skb_mac_gso_segment (include/linux/rcupdate.h:309 include/linux/rcupdate.h:849 net/core/gso.c:50) nsh_gso_segment (net/nsh/nsh.c:110) nsh skb_mac_gso_segment (net/core/gso.c:53) nsh_gso_segment (net/nsh/nsh.c:110) nsh [...] skb_mac_gso_segment (net/core/gso.c:53) __skb_gso_segment (net/core/gso.c:129) validate_xmit_skb (net/core/dev.c:4238) __dev_queue_xmit (net/core/dev.c:5087) packet_sendmsg (net/packet/af_packet.c:3157 net/packet/af_packet.c:3189) __sys_sendto (net/socket.c:800 net/socket.c:818 net/socket.c:2283) __x64_sys_sendto (net/socket.c:2290 net/socket.c:2286 net/socket.c:2286) do_syscall_64 (arch/x86/entry/syscall_64.c:61 arch/x86/entry/syscall_64.c:84) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121)

Use gso_recursion_inc_test(), added in commit 006c8b834aed ("net: gso: limit recursive IP-in-IP segmentation"), with the same limit as IPv4 and IPv6. The counter is shared with them: a packet with four NSH headers in front of an IPv4 header is still segmented, one more NSH header and it is dropped.

The NSH -> ETH_P_TEB -> NSH route is covered as well, as each round goes through nsh_gso_segment().

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143187In the Linux kernel, the following vulnerability has been resolved: tls: Consume empty data records in tls_sw_splice_read() A zero-length CVE-2026-143188In the Linux kernel, the following vulnerability has been resolved: tls: Break the connection after a burst of empty data records TLS permCVE-2026-143189In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: IPsec, don't match upper proto selectors in crypto offload TCVE-2026-143197.5The GiveWP WordPress plugin before 4.16.3 does not properly restrict access to a REST API endpoint that returns recurring-donation records,CVE-2026-143190In the Linux kernel, the following vulnerability has been resolved: net: usb: cdc_ncm: don't underflow the NDP room check cdc_ncm_ndp16() CVE-2026-143191In the Linux kernel, the following vulnerability has been resolved: tcp: Pass req->rsk_listener to inet_csk_reqsk_queue_drop() in tcp_checkCVE-2026-143192In the Linux kernel, the following vulnerability has been resolved: udp_tunnel: don't treat IPv4 sockets bound to an address as wildcard WCVE-2026-143193In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: kTLS, Fix missing error unwind when enabling RX offload SinCVE-2026-143194In the Linux kernel, the following vulnerability has been resolved: sched_ext: Reject DSQ iterator kfuncs in tracing programs bpf_iter_scxCVE-2026-143195In the Linux kernel, the following vulnerability has been resolved: igmp: use the joined device when leaving a multicast group When a sockCVE-2026-143196In the Linux kernel, the following vulnerability has been resolved: net/mlx5: HWS, fix flow meter release on FTE update HWS has no duplicaCVE-2026-143197In the Linux kernel, the following vulnerability has been resolved: tun: disallow setting IEEE 802.15.4 and 6LoWPAN link types via TUNSETLI
CVE-2026-143186: Unscored | Vulnix