β¬’ DragonFlyBSD Kernel Audit
← triage Β· dashboard
DF-0467

Dead code in ip6_savecontrol: RTHDRDSTOPTS walk result discarded, RFC3542 semantics not implemented

Summary

Block guarded by IN6P_DSTOPTS|IN6P_RTHDRDSTOPTS(:1173) walks ext-header chain via ip6_nexthdr(:1188-1199) to locate Routing header. Variables proto/off/nxt declared local(:1175), loop result never stored. Subsequent block(:1202-1320) re-walks from scratch treating every DSTOPTS header identically. RFC3542 pre-RH (RTHDRDSTOPTS) vs post-RH (DSTOPTS) distinction not implemented. Socket requesting RTHDRDSTOPTS receives nothing; socket requesting DSTOPTS receives both. RFC non-conformance, no security impact.

Discussion (0)

No comments yet.

PoC verification

Evidence pack

findings/poc/DF-0467 Β· 1 files
FileTypeDescriptionSize
manifest.json file 391 B view raw

Fix verification

not_testable
baseline reproduced→ patch + rebuild →patched clean

recommended fix identified; fix.diff not authored/validated in this batch

recommended fix identified; fix.diff not authored/validated in this batch
combined build rc=0

Confirmed kernel references

β€”

Detail

Exploit chain

none (Info severity)

Evidence (decisive lines)

Source-confirmed at sys/netinet6/ip6_input.c:1173: dead code in ip6_savecontrol (RTHDRDSTOPTS walk result discarded)

Verified recommended fix

Source-confirmed at sys/netinet6/ip6_input.c:1173: dead code in ip6_savecontrol (RTHDRDSTOPTS walk result discarded)

Verdict

Source-confirmed at sys/netinet6/ip6_input.c:1173: dead code in ip6_savecontrol (RTHDRDSTOPTS walk result discarded)