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

sysref_get has no refcount overflow guard

Summary

sysref_get (sysref2.h:68) atomic_add_int(&refcnt,1) unchecked. ~2^30 gets overflow INT_MAX -> negative -> _sysref_put KKASSERT panic or (no INVARIANTS) state corruption -> premature free/UAF. Infeasible: each ref consumes kernel memory, OOM first.

Discussion (0)

No comments yet.

PoC verification

Evidence pack

findings/poc/DF-0169 Β· 1 files
FileTypeDescriptionSize
manifest.json file 387 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_sysref.c:66: sysref_get has no refcount overflow guard

Verified recommended fix

Source-confirmed at sys/kern/kern_sysref.c:66: sysref_get has no refcount overflow guard

Verdict

Source-confirmed at sys/kern/kern_sysref.c:66: sysref_get has no refcount overflow guard