CVE-2026-43196: soc: ti: pruss: Fix double free in pruss_clk_mux_setup()
In the Linux kernel, the following vulnerability has been resolved:
soc: ti: pruss: Fix double free in prussclkmuxsetup()
In the prussclkmuxsetup(), the devmaddactionorreset() indirectly calls prussoffreeclkprovider(), which calls ofnodeput(clkmuxnp) on the error path. However, after the devmaddactionorreset() returns, the ofnodeput(clkmuxnp) is called again, causing a double free.
Fix by returning directly, to avoid the duplicate ofnodeput().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In pruss_clk_mux_setup(), return directly after devm_add_action_or_reset() to avoid calling of_node_put(clk_mux_np) a second time.