CVE-2026-100063

mfd: tps65217: Use devres for IRQ domain and wake teardown

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

This vulnerability arises in the Linux kernel’s multi‑device file (MFD) driver for the tps65217 chip, where the parent device is torn down before its child devices release the IRQ descriptors they registered from the device’s IRQ domain. The early release causes the child modules to call free_irq on virtual IRQs that no longer have valid descriptors. Because the kernel’s free_irq then returns immediately without stopping the associated threaded interrupt handler, the handler thread continues to run, the irqaction remains registered, and a module reference is leaked. The result is a leak of kernel resources, which over time can lead to system instability or kernel crash. The weakness stems from improper resource cleanup ordering and is best described by CWE‑416, Use After Free. The impact affects confidentiality, integrity, and availability at the kernel level, potentially allowing a local attacker who can cause the driver to unload to trigger a crash or a denial‑of‑service condition.

Affected Systems

The bug is present in the Linux kernel for all vendors that ship a kernel containing the tps65217 MFD driver, such as the standard Linux distribution kernels. No specific version ranges are supplied in the data, so any kernel build that includes the vulnerable code path is potentially affected until the fix is applied.

Risk and Exploitability

The CVSS score is not provided in the input, and no EPSS score or KEV listing indicates that the vulnerability has been actively exploited yet. However, based on the nature of the bug, the likely attack vector is local and involves manipulating the removal of the tps65217 driver while its child devices remain bound. If executed successfully, the attacker could induce a kernel crash or persistent resource leakage, granting denial‑of‑service. Because the issue is a use‑after‑free in kernel space, a compromised system or privileged process that can trigger device unloads would be required. The lack of an EPSS score suggests a lower probability of exploitation at present, but its severity warrants timely mitigation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that contains the tps65217 driver fix shown in the provided commit references.
  • If a kernel upgrade cannot be performed immediately, ensure that tps65217 and all of its child MFD drivers (such as tps65217‑charger) are not unloaded or remapped while the parent is still active; adjust any custom init scripts to bind children only after the parent IRQ domain is fully established and to unbind them before parent removal.
  • Activate kernel crash logging (e.g., crash or kdump) and periodically review dmesg for IRQ handler leaks, then reboot the system if irregular IRQ activity is observed.

Generated by OpenCVE AI on November 30, 2026 at 16:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
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.
Title mfd: tps65217: Use devres for IRQ domain and wake teardown
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:23 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM