CVE-2026-98496: net: airoha: npu: cancel wdt_work after releasing the WDT IRQ
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: airoha: npu: cancel wdt_work after releasing the WDT IRQ
airoha_npu_remove() calls cancel_work_sync() on each core's wdt_work, but the watchdog IRQ that queues it is requested with devm_request_irq() and is freed only after .remove() returns. airoha_npu_wdt_handler() can therefore schedule_work() again once the cancel has returned. struct airoha_npu, which contains the work, is devm_kzalloc()'d and is freed in that same unwind, so the late work dereferences freed memory.
Register the work with devm_work_autocancel() before devm_request_irq() and drop .remove(). Devres runs in reverse order, so the IRQ is freed before cancel_work_sync(), including when probe fails. A cancel left in .remove() cannot get that order. Initializing the work first also stops a pending watchdog interrupt from queuing an uninitialized work item. Probe currently calls INIT_WORK() only after devm_request_irq().
This issue was identified during our ongoing static-analysis research while reviewing kernel code.
The Linux kernel CVE team has assigned CVE-2026-98496 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit 23290c7bc190def4e1ca61610992d9b7c32e33f3 and fixed in 6.18.55 with commit aca91d8fa0ecbc990ebf9a688c684dda78a43c00 Issue introduced in 6.15 with commit 23290c7bc190def4e1ca61610992d9b7c32e33f3 and fixed in 7.2.9 with commit da9d42531f3a6dfea2e9c775b62a46185dbf280a Issue introduced in 6.15 with commit 23290c7bc190def4e1ca61610992d9b7c32e33f3 and fixed in 7.3-rc5 with commit 4bdee8060d1e4581624e68fbd369b1afb14df4bc
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-98496
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/net/ethernet/airoha/airoha_npu.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/aca91d8fa0ecbc990ebf9a688c684dda78a43c00 https://git.kernel.org/stable/c/da9d42531f3a6dfea2e9c775b62a46185dbf280a https://git.kernel.org/stable/c/4bdee8060d1e4581624e68fbd369b1afb14df4bc