β¬’ DragonFlyBSD Kernel Audit
← triage Β· dashboard
DF-0218

kcollect_setvalue divides by kcollect_samples without guard

Summary

kcollect_setvalue(:128-130) kcollect_index%kcollect_samples no >0 check. kern.collect_samples=0 -> div-by-zero. kcollect_ary NULL -> NULL deref. Requires kernel module calling it while disabled.

Discussion (0)

No comments yet.

PoC verification

Evidence pack

findings/poc/DF-0218 Β· 1 files
FileTypeDescriptionSize
manifest.json file 388 B view raw

Fix verification

not_testable
baseline reproduced→ patch + rebuild →patched clean

recommended fix identified; fix.diff not authored/validated in this batch

recommended fix identified; fix.diff not authored/validated in this batch
combined build rc=0

Confirmed kernel references

β€”

Detail

Exploit chain

none (Info severity)

Evidence (decisive lines)

Source-confirmed at sys/kern/kern_collect.c:128: kcollect_setvalue divides by kcollect_samples without guard

Verified recommended fix

Source-confirmed at sys/kern/kern_collect.c:128: kcollect_setvalue divides by kcollect_samples without guard

Verdict

Source-confirmed at sys/kern/kern_collect.c:128: kcollect_setvalue divides by kcollect_samples without guard