DF-3021 / verdict.json
{ "finding_id": "DF-3021", "status": "not_reproduced", "reproduced": 0, "impact": "none", "confidence": "likely", "verdict": "Not exercised: triggering needs a device destroyed under an open fd (root-mediated revoke/driver detach), then fstat(fd) racing the detach. Line-verified: devfs_fo_stat calls vn_stat (guarded getattr) then unconditionally executes sb->st_rdev = devid_from_dev(DEVFS_NODE(vp)->d_dev) at devfs_vnops.c:1432, while devfs_vop_getattr carries an explicit node==NULL EIO guard at :565. Certain-by-inspection NULL-deref window; unreachable without a root-triggered destroy race on this rig.", "exploit_chain": "", "evidence": "VERDICT.md + run.log + sources", "kernel_refs": [ "sys/vfs/devfs/devfs_vnops.c:1432", "sys/vfs/devfs/devfs_vnops.c:565" ], "poc_changes": "none", "attempts": 0, "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": 0, "guest_dirty": 0, "build_cmd": "", "run_cmd": "see README.md", "code_hash": null, "notes": "fix_status: not_testable (not reproduced)", "recommended_fix": "diff: cache node = DEVFS_NODE(vp) once at fo_stat entry and return EIO when NULL (mirroring getattr), or hold vp locked across the stat critical section.\n" } |