CVE-2026-98656: iio: trigger: cancel reenable_work before freeing trigger
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iio: trigger: cancel reenable_work before freeing trigger
iio_trigger_notify_done_atomic() defers ->reenable() into trig->reenable_work on the system workqueue, and the worker dereferences the owning trigger through container_of(). Nothing cancels this work before iio_trig_release() frees the trigger, so a worker armed by the last in-flight IRQ can outlive the free and touch freed memory.
Cancel it at the top of iio_trig_release(), which every free path reaches through the device core's final put_device().
Found by an in-house static analysis tool.
The Linux kernel CVE team has assigned CVE-2026-98656 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.17 with commit 9020ef659885f2622cfb386cc229b6d618362895 and fixed in 6.12.113 with commit cf513df1a2c75566cdc802d9da47f62e8d6cfd18 Issue introduced in 5.17 with commit 9020ef659885f2622cfb386cc229b6d618362895 and fixed in 6.18.56 with commit e64703280ce7a23a43c27efebeb7da457c88bf5c Issue introduced in 5.17 with commit 9020ef659885f2622cfb386cc229b6d618362895 and fixed in 7.2.10 with commit 882d0011c59ff8ac15188ec9ce071399ecfa10ad Issue introduced in 5.17 with commit 9020ef659885f2622cfb386cc229b6d618362895 and fixed in 7.3-rc6 with commit 2a57b9246cecd5dd797a42eb310d6c8816f26d9e Issue introduced in 5.15.17 with commit a18aeac73c0f692ba40964f5f56e182312ae843b Issue introduced in 5.16.3 with commit 2c5c948451d57596640b20887b06b523d376eb24
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98656
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/iio/industrialio-trigger.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/cf513df1a2c75566cdc802d9da47f62e8d6cfd18 https://git.kernel.org/stable/c/e64703280ce7a23a43c27efebeb7da457c88bf5c https://git.kernel.org/stable/c/882d0011c59ff8ac15188ec9ce071399ecfa10ad https://git.kernel.org/stable/c/2a57b9246cecd5dd797a42eb310d6c8816f26d9e