net: dsa: mv88e6xxx: Fix refcount leak in mv88e6xxx_mdios_register
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a3c53be55c955b7150cda17874c3fcb4eeb97a89 · < e0d763d0c7665c7897e4f5a0847ab0c82543345f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: dsa: mv88e6xxx: Fix refcount leak in mv88e6xxx_mdios_register
of_get_child_by_name() returns a node pointer with refcount incremented, we should use of_node_put() on it when done.
mv88e6xxx_mdio_register() pass the device node to of_mdiobus_register(). We don't need the device node after it.
Add missing of_node_put() to avoid refcount leak.
From the CVE record · Linux
The Linux kernel's mv88e6xxx MDIO registration code does not release a device-node reference after use, causing a reference-count leak. The input does not describe how an attacker could trigger or exploit the leak, or specify access or user-interaction requirements.
Engineers running the Linux kernel should check whether their build includes the affected mv88e6xxx code; affected versions are not specified.