CVE-2026-139335: platform: cznic: turris-omnia-mcu: stop button emulation producers
In the Linux kernel, the following vulnerability has been resolved:
platform: cznic: turris-omnia-mcu: stop button emulation producers
The legacy MCU IRQ thread can requeue button-release emulation work after its managed cleanup has canceled it. Since the IRQ is still active at that point, the newly queued work can outlive device teardown and access freed MCU state.
Use disabledelayedworksync() to prevent further queueing and drain the worker before the IRQ action is released. Keep the parent IRQ active while the worker completes. devmaddactionorreset() also drains the work if action registration fails.
This issue was identified as part of our ongoing research while reviewing kernel code.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
For the Linux kernel platform driver cznic:turris-omnia-mcu, stop button-emulation producers and use disable_delayed_work_sync() to prevent further queueing and drain the work. Register the cleanup with devm_add_action_or_reset() so the worker is drained before the IRQ action is released, including if action registration fails; keep the parent IRQ active while the worker completes.
Event History
Frequently Asked Questions
When can the use-after-free occur?
It can occur during device teardown when the legacy MCU IRQ thread remains active and requeues button-release emulation work after managed cleanup has canceled that work. The newly queued work can then run after the MCU state has been freed.
What is the relevant remediation behavior?
Cleanup must prevent additional delayed-work queueing and synchronously drain the worker before the IRQ action is released, while keeping the parent IRQ active until the worker finishes. The resolved code uses disable_delayed_work_sync() and registers managed cleanup with devm_add_action_or_reset().