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

sub_info->uvc_info stores a dangling pointer to the initializer's dead stack frame (persisted in the heap control graph)

Summary

build_mapping stores &tmp_info (a stack local of initialize_control) into heap sub_infos that outlive the frame; the wholesale struct copy does not fix up the back-pointer. Never dereferenced today (grep-verified) - latent landmine toward a stack-content disclosure if any future path follows it (the Linux driver does for get/set). Re-point-after-copy fix.

Discussion (0)

No comments yet.

PoC verification

Evidence pack

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

Fix verification

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

Confirmed kernel references

Detail

Evidence (decisive lines)

static trace uvc_ctrls.c:776 vs :817/:857

Verified recommended fix

re-point uvc_info at &ctrl->info after the struct copy

Verdict

untested (Info latent; never dereferenced today)