phy: renesas: rcar-gen2: Fix double of_node_put on phy creation failure
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:
phy: renesas: rcar-gen2: Fix double of_node_put on phy creation failure
for_each_child_of_node_scoped() releases the node reference on scope exit, so the explicit of_node_put(np) in the devm_phy_create() error path drops it twice.
Drop the redundant of_node_put() and let the scoped cleanup handle it.
From the CVE record · Linux
The Renesas R-Car Gen2 PHY code in the Linux kernel releases a node reference twice if PHY creation fails. The input does not specify an attacker action, exploit impact, access requirements, or user interaction.
Engineers running the Linux kernel should check whether their kernel includes the affected Renesas R-Car Gen2 PHY code; affected versions are not specified.