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

daioctl(DAIOCTRIM) reads its 16-byte argument by direct user-pointer dereference with no copyin: kernel page fault (panic) on unmapped user pointer and user-memory race across the synchronous loop

Summary

ap->a_data cast to off_t* and dereferenced raw: an unmapped pointer faults the kernel at the del_num[1] load (panic), and no copyin snapshot exists - the same sloppiness family as DF-1019/2275/2276 but the missing copyin itself is distinct. Root-gated (RESTRICTEDROOT). copyin-then-validate fix (also unblocks real EINVAL checks).

Discussion (0)

No comments yet.

PoC verification

Evidence pack

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

Fix verification

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

Confirmed kernel references

Detail

Evidence (decisive lines)

static trace in finding markdown

Verified recommended fix

see finding markdown

Verdict

untested (Low; sketch PoCs documented, root-gated / perf-accounting / evil-disk classes)