DF-2822 / verdict.json
{ "finding_id": "DF-2822", "status": "reproduced", "reproduced": 1, "impact": "none", "confidence": "certain", "verdict": "Line-accurate confirmation of the latent boot-window (runtime demo impossible without re-ordering SYSINITs - the window is by definition empty of consumers today): rand_initialize() is called directly from init_x86_64 (machdep.c:2777) while ncpus==1, installing csprng_pcpu = &csprng_boot, exactly ONE struct (kern_nrandom.c:496); the real per-cpu array only appears at SYSINIT(rand1, SI_BOOT2_POST_SMP, SI_ORDER_SECOND) (:562). Between SI_BOOT2_START_APS (0x1a60000) and SI_BOOT2_POST_SMP (0x1cc0000) ncpus>1, while read_random (:697) and add_buffer_randomness_src (:659) index csprng_pcpu[gd_cpuid] unclamped - cpu>1 addresses memory past csprng_boot in .bss, spin_locks and mutates adjacent state. One new early-boot RNG consumer away from real silent corruption. Fix (gate to &csprng_boot until the array exists) compiled in the fix kernel.", "exploit_chain": "", "evidence": "sourcenote.txt: SYSINIT ordering + unclamped indexing map; fix.diff gating", "kernel_refs": [ "sys/platform/pc64/x86_64/machdep.c:2777", "sys/kern/kern_nrandom.c:496", "sys/kern/kern_nrandom.c:562", "sys/kern/kern_nrandom.c:697" ], "poc_changes": "none (boot window empty of consumers)", "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": "29993079afdccacf5998704f6a3de75adfbdd0e42ba8f59226ec2c6d114e3c56", "notes": "vkernel64 path identical (init.c:803)", "recommended_fix": "Force state=&csprng_boot while csprng_pcpu still aliases the boot state", "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": "Gating compiled and booted; no RNG consumer regression in the A/B suite." } |