CVE-2025-68338
Unknown Unknown - Not Provided
Use-After-Free in Linux Kernel Microchip DSA IRQ Handling

Publication date: 2025-12-23

Last updated on: 2025-12-23

Assigner: kernel.org

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-23
Last Modified
2025-12-23
Generated
2026-05-07
AI Q&A
2025-12-23
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
microchip ksz_irq *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability occurs in the Linux kernel's Microchip DSA driver where the function ksz_irq_free() may be called on an uninitialized ksz_irq structure if an error happens during setup, such as when ksz_ptp_irq_setup() fails. This leads to freeing uninitialized IRQ numbers and/or domains, which is improper and can cause system instability or crashes. The fix involves using dsa_switch_for_each_user_port_continue_reverse() in the error path to ensure only fully initialized ports are iterated over and freed.


How can this vulnerability impact me? :

The vulnerability can cause system instability or crashes due to improper freeing of uninitialized IRQ numbers and domains. This may affect the reliability and availability of systems using the affected Linux kernel driver, potentially leading to unexpected behavior or downtime.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, ensure that the Linux kernel is updated to a version where the issue is resolved. Specifically, the fix involves using dsa_switch_for_each_user_port_continue_reverse() in the error path to avoid freeing uninitialized IRQ numbers. Applying the latest kernel patches or updates from your Linux distribution that include this fix is recommended.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart