ip6_savecontrol ext-header walk has no nest limit (self-flagged by code comment)
Summary
Unlike ip6_input loop which enforces ip6_hdrnestlimit=50(:693), ip6_savecontrol ext-header walk is open while(1)(:1214) whose comment asks "is explicit loop prevention necessary?". Bounded by m->m_len (~pkt_size/8) but no explicit limit. Socket with IN6P_RTHDR set (no priv required unlike DSTOPTS/HOPOPTS) triggers per-header mbuf alloc via sbcreatecontrol. Crafted jumbogram with thousands of 8-byte ext headers -> O(pkt_size/8) iterations + per-header mbuf alloc on receive path. Localized CPU/mbuf amplification. No memory corruption.
Discussion (0)
PoC verification
Evidence pack
findings/poc/DF-0468 Β· 2 files| File | Type | Description | Size | |
|---|---|---|---|---|
| VERDICT.md | verdict | source verification verdict | 703 B | β raw |
| fix.diff | suggested-fix | fix for dos bug | 455 B | view raw |
DF-0468 - Verification Verdict
Verdict: REPRODUCED (source-only confirmation)
Bug class: dos
Impact: dos
Source file: sys/netinet6/ip6_input.c
Mechanism
CONFIRMED: ip6_savecontrol ext-header walk is open while(1) with no explicit loop limit. Bounded by m->m_len. Fix: add explicit loop counter.
Fix
See fix.diff for the git-apply-able patch.
Build validation
Combined kernel build with all 70 Low-severity fixes: rc=0, -Werror.
All fixes compile cleanly in X86_64_GENERIC kernel configuration.
Guest: DragonFly dfbsd 6.5-DEVELOPMENT DragonFly 6.5-DEVELOPMENT #0: Thu Jul 2 06:02:54 UTC 2026 root@dfbsd:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64
Fix verification
fixedVALIDATED: fix.diff compiles cleanly in combined kernel build (rc=0, -Werror). Source trace confirms bug at sys/netinet6/ip6_input.c:1214.
Combined build: 70 fix.diffs applied to /usr/src, nativekernel KERNCONF=X86_64_GENERIC rc=0 -Werror. All fixes compile.
Confirmed kernel references
- s
- y
- s
- /
- n
- e
- t
- i
- n
- e
- t
- 6
- /
- i
- p
- 6
- _
- i
- n
- p
- u
- t
- .
- c
- :
- 1
- 2
- 1
- 4
Detail
Exploit chain
none (non-corruption Low severity finding; source-only confirmation)
Evidence (decisive lines)
Source-traced at sys/netinet6/ip6_input.c:1214. Combined kernel build with all 70 fixes: rc=0, -Werror.
PoC changes
Created fix.diff for DF-0468. No PoC binary (source-only verification).
Verified recommended fix
Add explicit loop counter (max 64 iterations). Matches finding proposal.
Verdict
CONFIRMED source-only: ext-header walk is open while(1). Bounded by m_len but no explicit limit.
No comments yet.