CVE-2026-100063: mfd: tps65217: Use devres for IRQ domain and wake teardown
In the Linux kernel, the following vulnerability has been resolved:
mfd: tps65217: Use devres for IRQ domain and wake teardown
Removing the parent device used to tear the IRQ domain down in tps65217remove() before the MFD children are unbound: the i2c core only releases the parent's devres after the remove callback returns, whereas devmmfdadddevices() registered its own devres action which unbinds the children. Children that requested interrupts from the domain (e.g. tps65217-charger) therefore call freeirq() on virtual IRQs whose descriptors have already been disposed. With CONFIGSPARSEIRQ freeirq() then returns early without stopping the threaded handler, leaking the irqaction, the IRQ kthread and a module reference.
Register the domain teardown as a devres action right after the domain is created instead. Devres actions are released in reverse order of registration, so the MFD children release their IRQs first, then the parent interrupt is freed and its thread stopped, and only then is the domain torn down. The same ordering covers probe failure, which no longer needs manual cleanup, and the remove callback can be dropped entirely.
Balance the enableirqwake() in tps65217irqinit() by registering disableirqwake() as a devres action as well. Only do so when enabling actually succeeded, since the parent chip may not support setting wake-up.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In tps65217_irq_init(), register the IRQ-domain teardown as a devres action immediately after creating the domain, and register disable_irq_wake() as a devres action only if enable_irq_wake() succeeded. This ensures the MFD children release their IRQs before the domain is torn down.