Description
In the Linux kernel, the following vulnerability has been resolved: ASoC: rt5682-sdw: always cancel jack work on remove rt5682_sdw_remove() cancels jack_detect_work only when hw_init is true. rt5682_update_status() clears hw_init when the SoundWire slave becomes unattached, but jack_detect_work may already have been queued by rt5682_interrupt_callback() 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 object is initialized during probe, so cancel it unconditionally instead of relying on the mutable hw_init state.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
4e81b38d942666558fb5bdbfca3856abc60a152d to < 1287f2283453c87f7ef9ee8412e1e605207a3d8eaffectedac63716da3070f8cb6baaba3a058a0c7f22aeb5b to < e265227b67804c4369a14482b8bd9d8d39c4017caffectedac63716da3070f8cb6baaba3a058a0c7f22aeb5b to < c075668d8b8ffc4e993ff248253824cf5a0f4bf2affectedac63716da3070f8cb6baaba3a058a0c7f22aeb5b to < 142c8fb3071e680eb65e588558c80cabbace1befaffectedac63716da3070f8cb6baaba3a058a0c7f22aeb5b to < 173498a15712114b586f57c74e89fbb07a849389affectedac63716da3070f8cb6baaba3a058a0c7f22aeb5b to < 3c0312610320ffd452532673cef0fa20f03ea6fcaffectedac63716da3070f8cb6baaba3a058a0c7f22aeb5b to < 9a98f7e955d35e0831fb179e88e98cf9bc0e001eaffectedf3a2c0631302613f41fd8f7ce9882c633d66b9a5affected5.15.56 to < 5.15.226affected5.18.13 to < 5.19affected
Linux Linux
Default version status: affected
5.19affected0 to < 5.19unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/1287f2283453c87f7ef9ee8412e1e605207a3d8e ↗
- https://git.kernel.org/stable/c/e265227b67804c4369a14482b8bd9d8d39c4017c ↗
- https://git.kernel.org/stable/c/c075668d8b8ffc4e993ff248253824cf5a0f4bf2 ↗
- https://git.kernel.org/stable/c/142c8fb3071e680eb65e588558c80cabbace1bef ↗
- https://git.kernel.org/stable/c/173498a15712114b586f57c74e89fbb07a849389 ↗
- https://git.kernel.org/stable/c/3c0312610320ffd452532673cef0fa20f03ea6fc ↗
- https://git.kernel.org/stable/c/9a98f7e955d35e0831fb179e88e98cf9bc0e001e ↗