net: dsa: lantiq_gswip: Fix refcount leak in gswip_gphy_fw_list
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 14fceff4771e51b23b4485b575cf9e5b3414b89b · < 0737e018a05e2aa352828c52bdeed3b02cff2930| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: dsa: lantiq_gswip: Fix refcount leak in gswip_gphy_fw_list
Every iteration of for_each_available_child_of_node() decrements the reference count of the previous node. when breaking early from a for_each_available_child_of_node() loop, we need to explicitly call of_node_put() on the gphy_fw_np. Add missing of_node_put() to avoid refcount leak.
From the CVE record · Linux
The Linux kernel's lantiq_gswip driver can leak a device-tree node reference when a loop in gswip_gphy_fw_list exits early. The input does not describe an attacker action or specify whether exploitation requires network or local access, authentication, or user interaction.
Engineers running the Linux kernel with the lantiq_gswip driver should check their deployments; affected versions are not specified.