clocksource/drivers/nxp-pit: Fix IRQ leak on cpuhp_setup_state error path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 05520e035f8332c8e33f3011b5ca016fde61793d, Kernel cdcd861123248e871c2ec2be968b0a1b2a5a34b0 and Kernel d53c29a89a15e56a1797f3ef249955e544782e04.
In the Linux kernel, the following vulnerability has been resolved: clocksource/drivers/nxp-pit: Fix IRQ leak on cpuhp_setup_state error path When cpuhp_setup_state fails after pit_clockevent_per_cpu_init has successfully called request_irq, the error handling jumps directly to out_pit_clocksource_unregister without freeing the registered IRQ. This leaks the IRQ line and, since kfree(pit) follows, leaves a dangling pointer registered as the interrupt handler's dev_id, potentially leading to a use-after-free if the IRQ fires afterwards. Fix it by calling pit_clockevent_per_cpu_exit to properly release the IRQ before falling through to the existing cleanup chain.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.18, >=bee33f22d7c30626e711b4900e3f460b6e0e104f <05520e035f8332c8e33f3011b5ca016fde61793d, >=bee33f22d7c30626e711b4900e3f460b6e0e104f <cdcd861123248e871c2ec2be968b0a1b2a5a34b0, >=bee33f22d7c30626e711b4900e3f460b6e0e104f <d53c29a89a15e56a1797f3ef249955e544782e04 | 05520e035f8332c8e33f3011b5ca016fde61793d, cdcd861123248e871c2ec2be968b0a1b2a5a34b0, d53c29a89a15e56a1797f3ef249955e544782e04 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket