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

usb_open() error path after successful fifo opens leaks the opened fifos with curr_cpd pointing at the freed cpd (latent β€” devfs_set_cdevpriv cannot currently fail for a fresh open)

Summary

If devfs_set_cdevpriv failed, usb_open kfrees cpd without fifo_close - f->curr_cpd dangles and the endpoint is EBUSY forever; a groomed replacement cpd would pointer-match and pass the ownership check. Currently unreachable (fresh-open cdevpriv cannot fail). Close-fifos-then-free hardening.

Discussion (0)

No comments yet.

PoC verification

Evidence pack

findings/poc/DF-5310 Β· 1 files
FileTypeDescriptionSize
verdict.json file 931 B view raw

Fix verification

not_testable
baseline no→ patch + rebuild →patched clean
per-fix-DF-5310

Confirmed kernel references

Detail

Evidence (decisive lines)

static trace in finding markdown

Verified recommended fix

see finding markdown

Verdict

untested (Medium ms-window TOCTOU overlapping the verified DF-5287 sink / Info latent)