DragonFlyBSD Kernel Audit
DF-0449 / manifest.json
← back to finding ↓ download raw
{
  "finding_id": "DF-0449",
  "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",
  "code_hash": "b9a306d0f9e7f73e4c245b4cc038294a3be6c13dd327ab55b89b5a9764a94a47",
  "tested_at": "2026-07-22T18:10:00Z",
  "verdict": "REPRODUCED",
  "impact": "panic",
  "confidence": "certain",
  "reproduce": {
    "build": "./build.sh",
    "run": "./run.sh",
    "expected": "kernel panic; see panic.txt / run.log. On a fixed kernel: exits 0, no panic."
  },
  "kernel_refs": [
    "sys/netgraph/netgraph/ng_parse.c:704",
    "sys/netgraph/netgraph/ng_parse.c:716",
    "sys/netgraph/netgraph/ng_parse.c:718",
    "sys/netgraph/netgraph/ng_parse.c:742",
    "sys/netgraph/netgraph/ng_parse.c:774",
    "sys/netgraph/netgraph/ng_parse.c:961",
    "sys/netgraph/netgraph/ng_base.c:1580",
    "sys/netgraph/netgraph/ng_base.c:1598",
    "sys/netgraph/netgraph/ng_base.c:1631",
    "sys/netgraph/netgraph/ng_base.c:1636",
    "sys/netgraph/netgraph/ng_base.c:1644",
    "sys/netgraph/netgraph/ng_base.c:290",
    "sys/netgraph/socket/ng_socket.c:172",
    "sys/conf/files:1756"
  ],
  "artifacts": [
    {
      "path": "ng_overflow.c",
      "type": "trigger-source",
      "desc": "NGM_ASCII2BINARY trigger: 2500-char string -> 501-byte heap overflow; clean ERANGE message on fixed kernels"
    },
    {
      "path": "build.sh",
      "type": "build-script",
      "desc": "cc -o ng_overflow ng_overflow.c"
    },
    {
      "path": "run.sh",
      "type": "run-script",
      "desc": "loads modules + runs ng_overflow as root"
    },
    {
      "path": "README.md",
      "type": "readme",
      "desc": "human-facing reproduction guide + impact analysis"
    },
    {
      "path": "VERDICT.md",
      "type": "verdict",
      "desc": "full root-cause analysis, trigger trace, fix before/after, 2026-07-16 re-validation note"
    },
    {
      "path": "run.log",
      "type": "run-log",
      "desc": "fresh 2026-07-16 baseline (unpatched #0) run: arglen=2553>2000 overflow confirmed"
    },
    {
      "path": "fix_run.log",
      "type": "run-log",
      "desc": "patched-module (sha256 6e225a12...) run: sendto ERANGE, clean 'bounds check fired (FIXED)' message"
    },
    {
      "path": "fix_build.log",
      "type": "build-log",
      "desc": "standalone netgraph.ko build (rc=0) + patched-module sha256 6e225a12..."
    },
    {
      "path": "leak_sample.txt",
      "type": "leak-sample",
      "desc": "hex of overflowed/OOB-read bytes (attacker's own A's, not pre-existing kernel data)"
    },
    {
      "path": "env.txt",
      "type": "environment",
      "desc": "uname, cc version, module hashes, INVARIANTS=1 note"
    },
    {
      "path": "fix.diff",
      "type": "suggested-fix",
      "desc": "add len>*buflen -> ERANGE check (with kfree) before bcopy in ng_string_parse, mirroring all sibling parse functions"
    },
    {
      "path": "manifest.json",
      "type": "manifest",
      "desc": "this file"
    },
    {
      "path": "build.log",
      "type": "build-log",
      "desc": "kernel build log excerpt proving -Werror clean compile of patched source"
    },
    {
      "path": "fix_apply.log",
      "type": "apply-log",
      "desc": "patch --dry-run output proving fix.diff applies cleanly on with-src"
    },
    {
      "path": "../fix_build_combined.log",
      "type": "build-log",
      "desc": "Combined 41-finding kernel build (rc=0, -Werror clean)"
    },
    {
      "path": "../fix_build_summary.txt",
      "type": "build-summary",
      "desc": "Summary of the combined 41-finding kernel build"
    }
  ]
}