drm/bridge: synopsys: dw-dp: fix error paths of dw_dp_bind
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/bridge: synopsys: dw-dp: fix error paths of dw_dp_bind
Fix several issues in dw_dp_bind() error handling:
1. Missing return after drm_bridge_attach() failure - the function continued execution instead of returning an error.
2. Resource leak: drm_dp_aux_register() is not a devm function, so drm_dp_aux_unregister() must be called on all error paths after aux registration succeeds. This affects errors from: - drm_bridge_attach() - phy_init() - devm_add_action_or_reset() - platform_get_irq() - devm_request_threaded_irq()
3. Bug fix: platform_get_irq() returns the IRQ number or a negative error code, but the error path was returning ERR_PTR(ret) instead of ERR_PTR(dp->irq).
Use a goto label for cleanup to ensure consistent error handling.
From the CVE record · Linux
The Linux kernel’s Synopsys dw-dp bridge has several error-handling flaws in dw_dp_bind(), including a missing return after bridge attachment fails, an AUX resource leak, and an incorrect IRQ error return. The input does not describe what an attacker could do or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels that use the Synopsys dw-dp bridge should check their versions; affected versions are not specified.