⬢ DragonFlyBSD Kernel Audit
DF-3721 / verdict.json
← back to finding ↓ download raw
{
  "finding_id": "DF-3721",
  "status": "inconclusive",
  "reproduced": 0,
  "impact": "none",
  "confidence": "certain",
  "verdict": "Source-certain, hardware-gated: mxge_dma_test (if_mxge.c:430-488) divides by the device-returned tick count (cmd.data0 & 0xffff) at :459/:469/:479 with no zero check; a device answering the DMA benchmark with repetitions<<16|0 (fault/hang/hostile firmware) triggers an integer divide-by-zero -> kernel panic. Reachable at attach (mxge_reset :1225 via :4363), at every open (:3341) and inside watchdog recovery (mxge_watchdog_reset :3658-3664 reloads firmware and reopens), so a flaky NIC panics the host exactly when recovery is attempted. Guest has no Myricom device; not runtime-testable.",
  "exploit_chain": "",
  "evidence": "findings/poc/DF-3721/VERDICT.md; fix.diff (zero-divisor guards on all three sites, git-apply clean); env.txt",
  "kernel_refs": [
    "sys/dev/netif/mxge/if_mxge.c:459",
    "sys/dev/netif/mxge/if_mxge.c:469",
    "sys/dev/netif/mxge/if_mxge.c:479",
    "sys/dev/netif/mxge/if_mxge.c:1225",
    "sys/dev/netif/mxge/if_mxge.c:3658"
  ],
  "poc_changes": "No seed PoC; hardware-gated.",
  "attempts": 1,
  "guest_uname": "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",
  "runtime_sec": 30,
  "guest_dirty": 0,
  "build_cmd": "n/a (hardware-gated)",
  "run_cmd": "n/a (hardware-gated)",
  "code_hash": "",
  "notes": "Same device-garbage-to-panic class as DF-1147-family; #DE in kernel context is fatal on DragonFly.",
  "recommended_fix": "Treat (cmd.data0 & 0xffff) == 0 as a failed benchmark: status=EIO via the existing abort path.",
  "fix_status": "not_testable",
  "fix_baseline_reproduced": 0,
  "fix_patched_reproduced": 0,
  "fix_verdict": "fix.diff git apply --check clean; not buildable without mxge hardware.",
  "fix_evidence": "findings/poc/DF-3721/fix.diff"
}