AZL-114947: CVE-2026-99475 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
genirq: Defer kfree(irqaction) until irqthreaddtor() finishes
When an interrupt thread exits abnormally via doexit() (e.g. the interrupt handler oopses) without returning from irqthread(), a concurrent call to freeirq() could free the irqaction before the irqthreaddtor() exit task work runs.
irq thread (oopsed) freeirq() ------------------- ---------- doexit() exitmm() completevforkdone() -------> kthreadstop() returns exitfiles() ... kfree(action) exittaskwork() irqthreaddtor() action->... <- use-after-free
Track the pending exit work with the IRQTFEXITWORK thread flag, and have freeirq() wait for the bit to clear before kfree().
irqthreaddtor() only runs on irqthread abnormal exit. If that dtor also faults, freeirq() will hang indefinitely, but double IRQ thread faults require a reboot anyways.
[ tglx: Add missing include ]