DF-3185 / verdict.json
{ "finding_id": "DF-3185", "status": "not_reproduced", "reproduced": 0, "impact": "none", "confidence": "certain", "verdict": "Line-accurate confirmation; no runtime demonstration attempted (the defect is a boolean oracle with no byte disclosure - practical effect equals invoking the control op). procfs_subr.c:496 compares buflen+1 bytes against nm->nm_name; with an embedded NUL in the /proc/<pid>/ctl string (permitted by vfs_getuserstr) the bcmp reads past the rodata entrys NUL into adjacent .rodata. FreeBSD-parity code. Fix bounds the comparison to strlen(nm_name) == buflen + content equality; compiled in the F40FIX build (procfs in kernel).", "exploit_chain": "", "evidence": "VERDICT.md with path:line citations; run.log where a live demo exists; fix.diff", "kernel_refs": [ "sys/vfs/procfs/procfs_subr.c:496" ], "poc_changes": "n/a - oracle-only, no observable output", "attempts": 0, "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": 30, "guest_dirty": 0, "build_cmd": "see build.sh", "run_cmd": "see run.sh", "code_hash": null, "notes": "", "recommended_fix": "require strlen(nm_name)==buflen and compare buflen bytes", "fix_status": "compile_validated", "fix_verdict": "fix.diff applied in the F40FIX verification kernel build (RC=0, zero -Werror errors); no runtime A/B for this item (line-certain hardening)" } |