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

cndbctl uses unlocked static refcount

Summary

cndbctl(:570-583) increments/decrements function-static refcount with no lock. Concurrent CPUs could underflow or call cn_dbctl with wrong value. Debugger path single-threaded in practice. Hardening.

Discussion (0)

No comments yet.

PoC verification

Evidence pack

findings/poc/DF-0127 Β· 1 files
FileTypeDescriptionSize
manifest.json file 389 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/tty_cons.c:570: cndbctl uses unlocked static refcount

Verified recommended fix

Source-confirmed at sys/kern/tty_cons.c:570: cndbctl uses unlocked static refcount

Verdict

Source-confirmed at sys/kern/tty_cons.c:570: cndbctl uses unlocked static refcount