DF-0449 / manifest.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | { "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" } ] } |