CVE-2026-139353: ASoC: rt5645: Shut down the button timer on removal
In the Linux kernel, the following vulnerability has been resolved:
ASoC: rt5645: Shut down the button timer on removal
jackdetectwork can rearm btnchecktimer, and the timer callback can queue jackdetectwork. Deleting the timer before cancelling the work does not break this cycle: an already running worker can rearm the timer after timerdeletesync() returns. The timer can then outlive removal.
Use timershutdownsync() before cancelling the delayed work so that subsequent attempts to rearm the timer are ignored. The IRQ producer has already been removed at this point. Keep the restartable timer deletion in the suspend path.
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.
- Compensating control
In the Linux kernel ASoC rt5645 removal path, call timer_shutdown_sync() before cancelling the delayed work so subsequent attempts to rearm the button-check timer are ignored.
Event History
Frequently Asked Questions
When can this issue be triggered?
It can occur during removal of the rt5645 ASoC component, when jack_detect_work and btn_check_timer can continue to rearm one another. A worker already running when the timer is deleted may rearm the timer after timer_delete_sync() returns.
What is the impact of the removal race?
The button-check timer can outlive device removal. Its callback can queue jack_detect_work after removal, creating post-removal activity from the timer/work cycle.
What change mitigates the issue?
Use timer_shutdown_sync() before cancelling the delayed work during removal. This prevents subsequent attempts to rearm the timer; the suspend path retains restartable timer deletion.