⬢ DragonFlyBSD Kernel Audit
DF-5212 / manifest.json
← back to finding ↓ download raw
{
  "finding_id": "DF-5212",
  "verdict": "inconclusive",
  "impact": "panic",
  "reproduce": {
    "build": "cc -O2 -Wall -o /root/df5212/cxm_ir_getkey /root/df5212/cxm_ir_getkey.c   (module builds: (cd /root/df5212/base && make) / (cd /root/df5212/fix && make))",
    "run": "/root/df5212/cxm_ir_getkey &  while root runs: while :; do kldunload cxm; kldload cxm; done",
    "expected": "on cxm hardware: panic (UAF of freed softc / dangling sc->iicbus device_t after the 50 ms tsleep at cxm_ir.c:114) within a few unload iterations. On this guest: exit 3 'hardware absent' (kldload cxm yields no /dev/cxm0)."
  },
  "kernel_refs": [
    "sys/dev/video/cxm/cxm_ir.c:100-117",
    "sys/dev/video/cxm/cxm_ir.c:114",
    "sys/dev/video/cxm/cxm.c:2306",
    "sys/dev/video/cxm/cxm.c:1884-1885",
    "sys/dev/video/cxm/cxm.c:1944-2004",
    "sys/dev/video/cxm/cxm.c:2894-2898"
  ],
  "artifacts": [
    "README.md", "VERDICT.md", "cxm_ir_getkey.c", "build.sh", "run.sh",
    "build.log", "fix_build.log", "run.log", "env.txt", "fix.diff",
    "manifest.json", "verdict.json"
  ]
}