GHSA-73PG-WG4C-8J6G

Vulnerability from github – Published: 2026-12-03 12:31 – Updated: 2026-12-03 12:31
VLAI
Details

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: 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().

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-143186"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-12-03T10:17:54Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnsh: limit recursion in nsh_gso_segment()\n\nnsh_gso_segment() calls skb_mac_gso_segment() for the inner packet,\nwhich calls nsh_gso_segment() again when the next protocol is NSH,\neither directly or behind an inner Ethernet header (ETH_P_TEB).\n\nNothing limits the depth: a GSO packet made of stacked 8-byte NSH\nheaders recurses once per header, and a 64KB packet can hold about\n8000 of them, overflowing the kernel stack.\n\nSuch a packet can be injected with a packet socket using\nPACKET_VNET_HDR, or with tun/tap or virtio_net, as nothing checks\nthat a GSO packet with VIRTIO_NET_HDR_F_NEEDS_CSUM carries the\nprotocol it claims. It is then segmented in software if the output\ndevice does not support the GSO type:\n\nBUG: TASK stack guard page was hit at ffffcad5c0ab3ff8 (stack is ffffcad5c0ab4000..ffffcad5c0ab8000)\nOops: stack guard page: 0000 [#1] SMP NOPTI\nCPU: 3 UID: 0 PID: 337 Comm: nsh_gso Tainted: G            E       7.4.0-rc1+ #118 PREEMPT(lazy)\nRIP: 0010:lock_acquire (kernel/locking/lockdep.c:5902)\nCall Trace:\n \u003cTASK\u003e\n skb_mac_gso_segment (include/linux/rcupdate.h:309 include/linux/rcupdate.h:849 net/core/gso.c:50)\n nsh_gso_segment (net/nsh/nsh.c:110) nsh\n skb_mac_gso_segment (net/core/gso.c:53)\n nsh_gso_segment (net/nsh/nsh.c:110) nsh\n [...]\n skb_mac_gso_segment (net/core/gso.c:53)\n __skb_gso_segment (net/core/gso.c:129)\n validate_xmit_skb (net/core/dev.c:4238)\n __dev_queue_xmit (net/core/dev.c:5087)\n packet_sendmsg (net/packet/af_packet.c:3157 net/packet/af_packet.c:3189)\n __sys_sendto (net/socket.c:800 net/socket.c:818 net/socket.c:2283)\n __x64_sys_sendto (net/socket.c:2290 net/socket.c:2286 net/socket.c:2286)\n do_syscall_64 (arch/x86/entry/syscall_64.c:61 arch/x86/entry/syscall_64.c:84)\n entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121)\n\nUse gso_recursion_inc_test(), added in commit 006c8b834aed (\"net: gso:\nlimit recursive IP-in-IP segmentation\"), with the same limit as IPv4\nand IPv6. The counter is shared with them: a packet with four NSH\nheaders in front of an IPv4 header is still segmented, one more NSH\nheader and it is dropped.\n\nThe NSH -\u003e ETH_P_TEB -\u003e NSH route is covered as well, as each round\ngoes through nsh_gso_segment().",
  "id": "GHSA-73pg-wg4c-8j6g",
  "modified": "2026-12-03T12:31:07Z",
  "published": "2026-12-03T12:31:07Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143186"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3921fb102d78a6d7aa61b8d273e097a1a8026b90"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/74f9a73053cc3cf6e6177d3c5ea9736adf1bdaf6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/766d400fa553a8cef0670e1cb0664d8b78fd3101"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fd8822212fc3dbbf96531fcbc3979e2c7f456948"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.