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

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)

No comments yet.

PoC verification

Evidence pack

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

Fix verification

not_testable
per-fix-DF-4771

Confirmed 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.