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)
PoC verification
Evidence pack
findings/poc/DF-5379 Β· 1 files| File | Type | Description | Size | |
|---|---|---|---|---|
| verdict.json | file | 920 B | view raw |
Fix verification
not_testablebaseline 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)
No comments yet.