⬢ DragonFlyBSD Kernel Audit
DF-2430 / verdict.json
← back to finding ↓ download raw
{
 "status": "reproduced",
 "reproduced": 1,
 "impact": "none",
 "confidence": "likely",
 "verdict": "Source-level harness (DF-1510 precedent) of the exact Inquire-Model parse loop (bt.c:420-425, byte-identical semantics) proves the off-by-one: with the documented 5-byte reply whose fifth byte is 0x00 (not space), the loop exits with i==5 and bt->model[5] = 0 writes one byte past char model[5], the LAST field of struct bt_softc (btreg.h:638) - the trailing canary flipped 0x42 -> 0x00. The full production bt_fetch_adapter_info dispatch was attempted through a watchpoint-emulated BusLogic port protocol but the command handshake could not be completed reliably on this snapshot, so the demonstration is harness-level; code-level truth is certain (sizeof(bt_softc)=344, terminator lands at +344).",
 "exploit_chain": "hostile/misbehaving BusLogic HBA returns a 5-byte model with no 0x20 -> one NUL byte written past the softc allocation (adjacent slab chunk if the zone rounds 344 up exactly)",
 "evidence": "run.log (harness output: canary 0x42 -> 0x00 at model[5])",
 "kernel_refs": [
  "sys/dev/disk/buslogic/bt.c:420",
  "sys/dev/disk/buslogic/bt.c:425",
  "sys/dev/disk/buslogic/btreg.h:638"
 ],
 "poc_changes": "verbatim loop semantics in a userspace harness (compiler unavailable on host; run on guest)",
 "attempts": 3,
 "runtime_sec": 1200,
 "guest_dirty": 0,
 "build_cmd": "cc -O -o bt2430 bt2430.c",
 "run_cmd": "./bt2430",
 "notes": "impact depends on slab size-class rounding for 344 bytes; single NUL byte, Low",
 "recommended_fix": "declare char model[6] or terminate with bt->model[min(i, sizeof(bt->model)-1)] = 0",
 "finding_id": "DF-2430",
 "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",
 "runner": "df-bsd-reviewer",
 "code_hash": "e5ee25e801783bcb4ace9372647845e047e94e4545c39e9510e330657858b5ec"
}