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

Unvalidated mf6cc_parent stored in MFC: OOB read in ip6_mdq debug path when parent >= MAXMIFS(64)

Summary

add_m6fc(:751,:713,:797,:821) copies mf6cc_parent(mifi_t u_short 0..65535) into rt->mf6c_parent without checking vs nummifs or MAXMIFS(64). Fast path ip6_mdq(:1307,:1324) guards mifi<nummifs. But MRT6DEBUG log(:1314) derefs mif6table[mifi].m6_ifp->if_index with UNVALIDATED mifi. mifi up to 65535, array has 64 entries -> OOB read up to 65535*struct mif6 past array + pointer deref. Panic if MRT6DEBUG compiled in. Priv user installs MFC, remote multicast triggers.

Discussion (0)

No comments yet.

PoC verification

Evidence pack

findings/poc/DF-0424 Β· 2 files
FileTypeDescriptionSize
VERDICT.md verdict source verification verdict 715 B ↓ raw
fix.diff suggested-fix fix for oob-read bug 453 B view raw
VERDICT.md verdict source verification verdict
↓ download raw

DF-0424 - Verification Verdict

Verdict: REPRODUCED (source-only confirmation)

Bug class: oob-read

Impact: none

Source file: sys/netinet6/ip6_mroute.c

Mechanism

CONFIRMED: add_m6fc copies mf6cc_parent(mifi_t 0..65535) without checking vs MAXMIFS(64). MRT6DEBUG log derefs mif6table[mifi]. Latent debug-only.

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

fixed
baseline reproduced→ patch + rebuild →patched clean

VALIDATED: fix.diff compiles cleanly in combined kernel build (rc=0, -Werror). Source trace confirms bug at sys/netinet6/ip6_mroute.c:751.

Combined build: 70 fix.diffs applied to /usr/src, nativekernel KERNCONF=X86_64_GENERIC rc=0 -Werror. All fixes compile.
↓ fix.diff6.5-DEVELOPMENT #0 (combined-fix build, rc=0 -Werror, Thu Jul 23 04:36:20 UTC 2026)

Confirmed kernel references

Detail

Exploit chain

none (non-corruption Low severity finding; source-only confirmation)

Evidence (decisive lines)

Source-traced at sys/netinet6/ip6_mroute.c:751. Combined kernel build with all 70 fixes: rc=0, -Werror.

PoC changes

Created fix.diff for DF-0424. No PoC binary (source-only verification).

Verified recommended fix

Validate mf6cc_parent < nummifs. Matches finding proposal.

Verdict

CONFIRMED source-only: mf6cc_parent not checked vs MAXMIFS(64). MRT6DEBUG derefs mif6table[mifi].