{
  "finding_id": "DF-5306",
  "status": "reproduced",
  "reproduced": true,
  "impact": "panic",
  "confidence": "certain",
  "verdict": "Reproduced on the QEMU guest with the KLD harness that compiles the real uvc driver sources. A crafted config blob whose VC header declares bIfaceNums=0 makes the real uvc_drv_parse_ctrl() return success with sc->data==NULL; the real uvc_drv_init_video(sc, ctrl, NULL) then faults at uvc_drv.c:1513 (data->num_altsetting): Fatal trap 12, fault virtual address 0xa, backtrace cmpb $0x1,0xa(%r9). Guest died (db> prompt, vm.sh status down). DoS only (NULL-page read, no write primitive). Fix validated: with fix.diff applied to the guest /usr/src and the harness rebuilt, the same trigger yields parse_ctrl ret=22 (EINVAL) and init_video returns NULL with the guest alive.",
  "exploit_chain": "crafted USB webcam with VC interface but bIfaceNums=0 (or no VC header) -> uvc_drv_parse_ctrl returns 0 with sc->data NULL -> uvc_drv_attach calls uvc_drv_init_video(sc, ctrl, NULL) -> NULL deref at uvc_drv.c:1513 -> kernel panic at attach",
  "evidence": "run.log / panic.txt (Fatal trap 12, fault VA 0xa, Stopped at sysctl_harness+0x30b: cmpb $0x1,0xa(%r9)); fix.log (post-fix: ret=22, returned 0 (no panic), uptime shows guest up)",
  "kernel_refs": [
    "sys/bus/u4b/uvc/uvc_drv.c:2109",
    "sys/bus/u4b/uvc/uvc_drv.c:2112",
    "sys/bus/u4b/uvc/uvc_drv.c:1513",
    "sys/bus/u4b/uvc/uvc_drv.c:2731"
  ],
  "poc_changes": "No finding seed existed; same from-scratch harness as DF-5305, second mode (sysctl hw.uvcharness=2) exercises the NULL-data path.",
  "attempts": 2,
  "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": 2100,
  "guest_dirty": 0,
  "build_cmd": "cp uvcharness.c Makefile /root/build/ && cd /root/build && make",
  "run_cmd": "kldload /root/build/uvcharness.ko; sysctl hw.uvcharness=2",
  "code_hash": "9425426536799947ba46b93c33c288a70afeb9064800e79373dab40ec681d9cc",
  "notes": "The first ssh session for the panic trigger hung (kernel died mid-sysctl); panic captured via vm.sh log. Guest reset to clean with-src snapshot afterwards. Distinct from DF-2351 (nfmt/nfrm/nitv uint8 truncation NULL-deref): different root cause (missing VS-interface handling) and different trigger.",
  "recommended_fix": "Reject VC headers with vsnum<1 or bLength<12+vsnum (EINVAL), and guard uvc_drv_attach()/uvc_drv_init_video() against sc->data==NULL (see fix.diff).",
  "fix_status": "fixed",
  "fix_baseline_reproduced": 1,
  "fix_patched_reproduced": 0,
  "fix_verdict": "fix.diff applied to guest /usr/src; rebuilt harness; identical trigger produces EINVAL at parse and a clean NULL return from uvc_drv_init_video with the guest surviving (uptime verified). Baseline panic vs patched survival recorded in run.log vs fix.log.",
  "fix_evidence": "fix.log, panic.txt, run.log"
}