net: dsa: microchip: Don't free uninitialized ksz_irq
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 |
|
|
6.12.616.17.116.18In the Linux kernel, the following vulnerability has been resolved:
net: dsa: microchip: Don't free uninitialized ksz_irq
If something goes wrong at setup, ksz_irq_free() can be called on uninitialized ksz_irq (for example when ksz_ptp_irq_setup() fails). It leads to freeing uninitialized IRQ numbers and/or domains.
Use dsa_switch_for_each_user_port_continue_reverse() in the error path to iterate only over the fully initialized ports.
From the CVE record · Linux
The Linux kernel’s Microchip DSA driver can free uninitialized IRQ numbers or domains if setup fails, such as when PTP IRQ setup fails. The input does not establish an attacker path, authentication requirements, or user-interaction requirements.
Engineers running Linux kernels that use the Microchip DSA driver should check their deployments; affected versions were not provided.