net: dsa: microchip: ksz_common: Fix refcount leak bug
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 |
|
|
5.15.585.18.155.19In the Linux kernel, the following vulnerability has been resolved:
net: dsa: microchip: ksz_common: Fix refcount leak bug
In ksz_switch_register(), we should call of_node_put() for the reference returned by of_get_child_by_name() which has increased the refcount.
From the CVE record · Linux
The Linux kernel’s Microchip KSZ switch registration code can leak a device-tree node reference when ksz_switch_register() calls of_get_child_by_name() without releasing the reference. The input does not describe an attacker action or specify network access, authentication, or user-interaction requirements.
Engineers running the Linux kernel with Microchip KSZ switch support should check their kernel versions against the vendor advisory; affected versions are not specified in the input.