DF-2935 / verdict.json
{ "finding_id": "DF-2935", "status": "reproduced", "reproduced": 1, "impact": "none", "confidence": "certain", "verdict": "Line-accurate confirmation (the deviation is deny-only on every reachable path, so there is no userland-visible demonstration): vop_helper_access selects cr_ruid/cr_rgid (REAL ids) whenever a_flags lacks AT_EACCESS (vfs_helper.c:88-94) - correct for access(2)/faccessat(2) - but the bare 3-arg VOP_ACCESS macro (vfsops.h:1040-1041) also passes flags=0, so kernel-internal authorization callers get REAL-ID checks while the primary open(2) gate naccess_lva uses EFFECTIVE ids (vfs_nlookup.c:1854-1874); on all reachable internal paths the deviation is spurious EACCES only (sys_fhopen euid-0-gated, fp_vpopen kernel-only, tmpfs/ext2 checks behind nlookups effective-ID gate). Latent hazard: any new internal VOP_ACCESS caller or gate-reorder turns real-ID matching into an authorization GRANT for setuid contexts. Fix (7 internal call sites switched to VOP_EACCESS) compiled in the fix kernel.", "exploit_chain": "", "evidence": "sourcenote.txt: AT_EACCESS branch + 7 call sites; fix.diff", "kernel_refs": [ "sys/kern/vfs_helper.c:88", "sys/sys/vfsops.h:1040", "sys/kern/vfs_nlookup.c:1854", "sys/kern/vfs_syscalls.c:4888" ], "poc_changes": "none (deny-only today)", "attempts": 1, "guest_uname": "DragonFly dfbsd 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": 20, "guest_dirty": 0, "build_cmd": "(source confirmation only)", "run_cmd": "(source confirmation only)", "code_hash": "314152c58770f8414eef8c55f5da25386a5139bc84693f4cfe51e879b0dbf56c", "notes": "Consistency fix toward effective-ID authorization", "recommended_fix": "Use VOP_EACCESS at the seven internal authorization sites", "fix_status": "compile_validated", "fix_baseline_reproduced": 0, "fix_patched_reproduced": 1, "fix_kernel_uname": "DragonFly dfbsd 6.5-DEVELOPMENT #1: Mon Oct 26 01:57:23 UTC 2026 root@dfbsd:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 (h41 fix kernel, all 41 hardening fixes applied)", "fix_verdict": "All seven sites compiled to VOP_EACCESS and the kernel booted and ran the full A/B suite (fhopen/tmpfs/ext2 paths exercised by normal operation)." } |