CVE-2026-139536: ASoC: rt5682-sdw: always cancel jack work on remove
ASoC: rt5682-sdw: always cancel jack work on remove
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.19 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - 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
In rt5682_sdw_remove(), cancel jack_detect_work unconditionally instead of only when hw_init is true.
Event History
Frequently Asked Questions
Under what condition can the pending work be left behind during device removal?
The issue occurs when the SoundWire slave becomes unattached and rt5682_update_status() clears hw_init after jack_detect_work has already been queued. The remove path then skips cancellation because it only cancels the work when hw_init is true.
What is the impact of removing the device in this state?
Delayed jack-detection work can remain pending after the codec private data has been freed. When that work runs, it may access freed private data.
What does the fix change?
The fix cancels jack_detect_work unconditionally during rt5682_sdw_remove(). This avoids relying on the mutable hw_init state, since the work object is initialized during probe.