Skip to main content
Menu
Advisories

[H15] IP-fragmented packets bypass userspace-firewall ACL rules

GHSA-48M5-PFP4-GCM9Published Updated GitHub

Description

Advisory 18 — [H15] IPv4-fragmented packets bypass userspace-firewall ACL rules

  • Severity: Low
  • CVSS 4.0 Base Score: 2.1
  • CVSS 4.0 Vector: CVSS:4.0/AV:A/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:N
  • CWE: CWE-693 (CWE-693)
  • Affected versions: github.com/netbirdio/netbird >= 0.55.0, < 0.74.7 (see Affected platforms for the mobile apps)
  • Patched in: 0.74.7 — github.com/netbirdio/netbird/pull/6781
  • Affected component(s): ip fragment bypass
  • Reporter: @SecurinDisclose — Arjun Basnet · Securin Inc. — arjun.basnet@securin.io

---

Overview

if fragment {
    return false   // no ACL evaluation for fragmented packets
}

If the parsed IP packet is a fragment (non-zero MF flag or non-zero offset), the filter returns false (allow) before evaluating any ACL rules. This effectively disables the entire userspace firewall for anyone willing to fragment traffic.

IPv6 takes the same unfiltered path: a packet whose next header is the Fragment extension header (44) is treated as valid and passed on. The gap also covers the leading fragment, not only the continuation fragments — IPv4.NextLayerType() reports a fragment layer for any fragment including the first, so the transport header is never decoded and the ACL has no port to match on. No part of a fragmented datagram is filtered.

---

Affected Location

  • client/firewall/uspfilter/filter.go:1050-1060 — early return on fragment==true.

---

Vulnerable Code

if fragment {
    return false   // no ACL evaluation for fragmented packets
}

---

Reproduction

Sending a packet to a port an ACL denies is allowed through if the packet is fragmented, while the same packet unfragmented is dropped.

PoC output

=== RUN   TestH15_IPFragmentBypass
    poc_test.go:41: fragmented packet to blocked port -> allowed=true
    poc_test.go:46: non-fragmented same packet -> allowed=false
--- PASS: TestH15_IPFragmentBypass

---

Impact

An attacker on the same network segment with an enrolled peer can send fragmented packets that the userspace firewall forwards without evaluating any ACL rule, reaching ports that the policy denies. The CVSS 4.0 vector above reflects an adjacent attacker with low privileges (an enrolled peer) and limited impact on confidentiality, integrity, and availability of the targeted service.

---

Fix

Fixed in 0.74.7 (#6781). Fragments are now evaluated rather than waved through, without reassembling payloads: client/firewall/uspfilter/fragment.go decodes the leading fragment's transport header itself, runs it through the same conntrack and local/routed ACL pipeline as an unfragmented packet, and caches the verdict per datagram (source, destination, protocol, identification). Continuation fragments inherit that verdict, and a datagram whose leading fragment was never seen or was denied is dropped.

The cache is bounded and fails closed: entries expire after 30s, the table is capped (NB_FRAGMENT_MAX_ENTRIES, default 16384) and refuses new datagrams once full, and only allowed verdicts are stored, so a flood of continuation fragments with no leading fragment cannot grow it. Fragments overlapping the recorded header boundary are dropped and poison the datagram, covering the RFC 1858 and RFC 3128 tiny-fragment and overlap-rewrite attacks. Both IPv4 and IPv6 fragmentation are handled.

Affected platforms

All platforms, including the Android and iOS apps. The userspace filter is the packet filter wherever the client does not program the kernel firewall, which includes both mobile apps. The fix is included in the Android app from v0.6.0 and in the iOS app from v0.3.3.

---

Remediation

  1. Perform reassembly (or reject fragments outright) before ACL evaluation.
  2. If reassembly is out of scope, default-deny fragments unless a rule opts in.
  3. Emit an explicit log event for every fragment-bypass, per source.

---

References & Evidence

---

Credit

Reported by Arjun Basnet — Securin Inc. — via GitHub @SecurinDisclose. Coordinated disclosure timeline: 90 days — public disclosure on or after 2026-10-11 unless extended by mutual agreement.

---

Private Audit Bundle

The reporter's full reproduction bundle (labs, PoCs, live-target evidence) is available at github.com/SecurinDisclose/netbird-0.74.3-audit (private — request read access via GitHub or email arjun.basnet@securin.io).

Coordinated Disclosure

  • Reporter: @SecurinDisclose — Arjun Basnet, Securin Inc.
  • Contact: arjun.basnet@securin.io
  • Public-disclosure deadline: 2026-10-11 (90 days from 2026-07-13)

Affected versions

References

GitHub · netbirdio/netbird