CVE-2025-68338
JSON

Not scored

net: dsa: microchip: Don't free uninitialized ksz_irq

Severity
Not scored
Exploit likelihood
0.20% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In 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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom cc13ab18b201ab630f03511060ba289b70052959 before 9428654c827fa8d38b898135d26d39ee2d544246, from cc13ab18b201ab630f03511060ba289b70052959 before 32abbcf4379a0f851d7eb9d4389e7bf5c64bf6c0, from cc13ab18b201ab630f03511060ba289b70052959 before 25b62cc5b22c45face094ae3e8717258e46d1d19, 6.3
Not affected: before 6.3, from 6.12.61 up to 6.12.*, from 6.17.11 up to 6.17.*, from 6.18 up to *
CVE List

What each source says

CVE List

In 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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: dsa: microchip: No liberar ksz_irq no inicializado Si algo sale mal durante la configuración, se puede llamar a ksz_irq_free() sobre un ksz_irq no inicializado (por ejemplo, cuando ksz_ptp_irq_setup() falla). Esto lleva a la liberación de números IRQ y/o dominios no inicializados. Usar dsa_switch_for_each_user_port_continue_reverse() en la ruta de error para iterar solo sobre los puertos completamente inicializados.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-68338 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-68338 changed 2026-10-19Public domain