CVE-2026-139533: ASoC: rt712-sdca: always cancel jack work on remove
In the Linux kernel, the following vulnerability has been resolved:
ASoC: rt712-sdca: always cancel jack work on remove
rt712sdcasdwremove() cancels the jack work only when hwinit is true. rt712sdcaupdatestatus() clears hwinit when the SoundWire slave becomes unattached, but jack work may already have been queued by rt712sdcainterruptcallback() or the jack initialization path.
A remove after that status update can therefore skip the cancellation and leave delayed work pending after the codec private data has been freed.
The work objects are initialized during probe, so cancel them unconditionally instead of relying on the mutable hwinit state.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In rt712_sdca_sdw_remove(), cancel jack work unconditionally instead of only when hw_init is true.
Event History
Frequently Asked Questions
What conditions are required to trigger the vulnerability?
The rt712-sdca SoundWire codec must have queued jack-related delayed work, then become unattached so that hw_init is cleared, followed by device removal. In that sequence, removal can skip cancellation of the queued work.
What is the consequence of an affected removal sequence?
Delayed jack work can remain pending after the codec's private data has been freed. If that work later runs, it may access freed private data.
Is this limited to systems where hardware initialization succeeds?
No. The problematic path occurs when hw_init has been cleared after the SoundWire slave becomes unattached, even though jack work may already have been initialized and queued.
How does the resolved code prevent the issue?
It cancels the jack work unconditionally during rt712_sdca_sdw_remove(). The work objects are initialized during probe, so cancellation no longer depends on the mutable hw_init state.