CVE-2026-98670: iio: adc: xilinx-xadc: free IRQ before cancelling the unmask worker on unbind
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iio: adc: xilinx-xadc: free IRQ before cancelling the unmask worker on unbind
The ZYNQ XADC alarm IRQ handler queues zynq_unmask_work via schedule_delayed_work(); that work is cleared by a devm callback. Register the devm callback before devm_request_irq() so the devres LIFO teardown frees the IRQ first, ensuring the handler can no longer queue work by the time the workqueue is cleared. Otherwise the handler could re-arm the work and run it after the xadc structure has been freed.
This issue was found by an in-house static analysis tool.
The Linux kernel CVE team has assigned CVE-2026-98670 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.12 with commit 2a9685d1a3b7644ca08d8355fc238b43faef7c3e and fixed in 6.12.113 with commit a29d385ad7b340c952a3935af2b33488db1eb3a6 Issue introduced in 5.12 with commit 2a9685d1a3b7644ca08d8355fc238b43faef7c3e and fixed in 6.18.56 with commit a5fe2d1b55faba6d00fd87ad491b6cb603046304 Issue introduced in 5.12 with commit 2a9685d1a3b7644ca08d8355fc238b43faef7c3e and fixed in 7.2.10 with commit 49ea8a359e362bfbb32a647c8eb7962fbb37234e Issue introduced in 5.12 with commit 2a9685d1a3b7644ca08d8355fc238b43faef7c3e and fixed in 7.3-rc6 with commit 0f3f427076240e75ff265e61645627a71ca4918c Issue introduced in 5.10.200 with commit e96eb8853f334f96312968e4f01c5a452db54c00
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-98670
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/adc/xilinx-xadc-core.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/a29d385ad7b340c952a3935af2b33488db1eb3a6 https://git.kernel.org/stable/c/a5fe2d1b55faba6d00fd87ad491b6cb603046304 https://git.kernel.org/stable/c/49ea8a359e362bfbb32a647c8eb7962fbb37234e https://git.kernel.org/stable/c/0f3f427076240e75ff265e61645627a71ca4918c