DF-5331 / verdict.json
{ "finding_id": "DF-5331", "status": "untested", "reproduced": false, "impact": "none", "confidence": "certain", "verdict": "Hardening only. DODELAY() (sys/platform/pc64/isa/clock.c:386) computes ticks_left = muldivu64(n, sys_cputimer->freq + 999999, 1000000) at clock.c:419 with no clamp on the int argument n; a negative n sign-extends to u64 in muldivu64 (sys/sys/systm.h:505, 128-bit intermediate) yielding ~2.2e13 ticks, i.e. DELAY(-1) would spin ~256 days at the 1.19 MHz i8254 or ~2 h at a 3 GHz TSC with no escape. Survey of in-tree callers found only constants and kernel-internal tables (atkbdc.c, ppc.c, igmp IGMP_RANDOM_DELAY, etc.), so there is no demonstrated attacker-reachable trigger today; filed as Info hardening (one-line if (n <= 0) return; guard). Not executed: DELAY() is not reachable from userland without a custom KLD, and the arithmetic is the complete demonstration.", "exploit_chain": "", "evidence": "findings/poc/DF-5331/README.md (analysis + suggested one-line guard); sys/platform/pc64/isa/clock.c:419; sys/sys/systm.h:505", "kernel_refs": [ "sys/platform/pc64/isa/clock.c:386", "sys/platform/pc64/isa/clock.c:419", "sys/sys/systm.h:505" ], "poc_changes": "none (no PoC; hardening finding)", "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": "", "code_hash": "", "notes": "Info-severity hardening; PoC intentionally not built per audit contract (skip verification for Low/Info hardening findings).", "recommended_fix": "Clamp n at the top of DODELAY(): if (n <= 0) return;", "fix_status": "untested", "fix_baseline_reproduced": false, "fix_patched_reproduced": false, "fix_verdict": "not tested (hardening finding, no runtime PoC)", "fix_evidence": "" } |