⬢ DragonFlyBSD Kernel Audit
DF-3214 / verdict.json
← back to finding ↓ download raw
{
 "finding_id": "DF-3214",
 "status": "not_reproduced",
 "reproduced": 0,
 "impact": "leak",
 "confidence": "likely",
 "verdict": "Type confusion certain by inspection: both hash-walk matches call netaddr_match(AF_INET, &rp->rc_haddr, nd->nd_nam) unconditionally regardless of whether the entry stored an IPv4 address (RC_INETADDR) or a duped sockaddr (RC_NAM, the default for non-AF_INET transports), so a v6-created entry has its rc_nam heap pointer read as an IPv4 address - 32-bit equality oracle for a spoofer and a silently inert duplicate cache for v6. Dynamic proof requires running legacy kernel nfsd on an AF_INET6 datagram socket plus source-spoofed probes; the config gate (admin sets up v6 nfsd) kept it out of this batch. Fix branches on RC_INETADDR; compile-validated.",
 "exploit_chain": "",
 "evidence": "VERDICT.md walk over nfs_srvcache.c:194/:307 with the RC_INETADDR/RC_NAM storage at :258-275",
 "kernel_refs": [
  "sys/vfs/nfs/nfs_srvcache.c:194",
  "sys/vfs/nfs/nfs_srvcache.c:307",
  "sys/vfs/nfs/nfs_srvcache.c:258-275"
 ],
 "poc_changes": "",
 "attempts": 2,
 "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": 60,
 "guest_dirty": 0,
 "build_cmd": "n/a",
 "run_cmd": "n/a (needs nfsd on a v6 socket + spoofed v4 probes)",
 "code_hash": "",
 "notes": "",
 "recommended_fix": "branch the cache-walk match on RC_INETADDR"
}