intel_dp_add_mst_connector error path leaks the allocated intel_connector (drm_connector_cleanup without kfree)
Summary
err: label runs drm_connector_cleanup but never kfrees the :451 allocation (the :462-464 init-failure path correctly frees). Reachable on attach_encoder failure or path-property blob ENOMEM during hub plug-in storms - one kzalloc-sized leak per failed add. One-line kfree fix. i915+MST hw-gated.
Discussion (0)
PoC verification
Evidence pack
findings/poc/DF-4771 Β· 1 files| File | Type | Description | Size | |
|---|---|---|---|---|
| verdict.json | file | 872 B | view raw |
Fix verification
not_testableConfirmed kernel references
Detail
Exploit chain
MST hub plug/unplug loop under ENOMEM pressure on path-blob alloc -> connector cleanup without kfree -> permanent kernel heap leak per cycle
Evidence (decisive lines)
findings/poc/DF-4771/ (this verdict)
Verdict
Source-certain error-path leak, hardware-gated: intel_dp_add_mst_connector err: label runs drm_connector_cleanup but never kfrees the intel_connector allocated at :451 (the :462-464 path correctly frees). Reachable on drm_connector_attach_encoder failure or drm_connector_set_path_property/blob ENOMEM during hub plug-in storms - one kzalloc-sized leak per failed add. No i915+MST on guest. One-line kfree fix.
No comments yet.