mfd: tps65217: Use devres for IRQ domain and wake teardown
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
Description
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 tps65217_remove() before the MFD children are unbound: the i2c core only releases the parent's devres after the remove callback returns, whereas devm_mfd_add_devices() registered its own devres action which unbinds the children. Children that requested interrupts from the domain (e.g. tps65217-charger) therefore call free_irq() on virtual IRQs whose descriptors have already been disposed. With CONFIG_SPARSE_IRQ free_irq() 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 enable_irq_wake() in tps65217_irq_init() by registering disable_irq_wake() as a devres action as well. Only do so when enabling actually succeeded, since the parent chip may not support setting wake-up.
| Product | Versions |
|---|---|
| Linux Linux | 6556bdacf646fcaa0586123ba85412de1c8f0eee to before c879c50d4019af0cde5baa2355a20cb96477de20 Affected6556bdacf646fcaa0586123ba85412de1c8f0eee to before 0159dd82ca05a23f5512632f569635fc51c50897 Affected6556bdacf646fcaa0586123ba85412de1c8f0eee to before 3085eccfdab176c4b4957b5cb78e61d30580ded2 Affected6556bdacf646fcaa0586123ba85412de1c8f0eee to before bbf6326db27f400d59c673b61bcdfec0789af437 Affected6556bdacf646fcaa0586123ba85412de1c8f0eee to before cf662773b6bc3dd0c2807630d153e0b9332fa21e Affected6556bdacf646fcaa0586123ba85412de1c8f0eee to before 42e39e25b62e2d0b63e8cf0426b720b486353ecc Affected6556bdacf646fcaa0586123ba85412de1c8f0eee to before 9be904fdb42eec5cde37587958f585e76be6f487 Affected6556bdacf646fcaa0586123ba85412de1c8f0eee to before cffd44d2d89524e2dda6adc7b0dd59363be1c8e6 Affected |
| Linux Linux | 4.9 Affectedbefore 4.9 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/c879c50d4019af0cde5baa2355a20cb96477de20
- https://git.kernel.org/stable/c/0159dd82ca05a23f5512632f569635fc51c50897
- https://git.kernel.org/stable/c/3085eccfdab176c4b4957b5cb78e61d30580ded2
- https://git.kernel.org/stable/c/bbf6326db27f400d59c673b61bcdfec0789af437
- https://git.kernel.org/stable/c/cf662773b6bc3dd0c2807630d153e0b9332fa21e
- https://git.kernel.org/stable/c/42e39e25b62e2d0b63e8cf0426b720b486353ecc
- https://git.kernel.org/stable/c/9be904fdb42eec5cde37587958f585e76be6f487
- https://git.kernel.org/stable/c/cffd44d2d89524e2dda6adc7b0dd59363be1c8e6
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.