net: dsa: microchip: Fix error path in PTP IRQ setup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
ae12e4e0ca231475bcef841c6a6722fa185fd520| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: dsa: microchip: Fix error path in PTP IRQ setup
If request_threaded_irq() fails during the PTP message IRQ setup, the newly created IRQ mapping is never disposed. Indeed, the ksz_ptp_irq_setup()'s error path only frees the mappings that were successfully set up.
Dispose the newly created mapping if the associated request_threaded_irq() fails at setup.
From the CVE record · Linux
The Linux kernel’s Microchip DSA PTP IRQ setup does not dispose of a newly created IRQ mapping if request_threaded_irq() fails. The input does not specify an attacker action, access requirements, or user interaction needed to trigger the failure.
Engineers running Linux kernels with the Microchip DSA PTP driver should check their kernel versions; affected versions were not provided.