ASoC: fsl_xcvr: Revert fix missing lock in fsl_xcvr_mode_put()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f514248727606b9087bc38a284ff686e0093abf1 · < 0886dc6326c3cc596799c4340d342898301cf52a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: fsl_xcvr: Revert fix missing lock in fsl_xcvr_mode_put()
This reverts commit f51424872760 ("ASoC: fsl_xcvr: fix missing lock in fsl_xcvr_mode_put()").
The original patch attempted to acquire the card->controls_rwsem lock in fsl_xcvr_mode_put(). However, this function is called from the upper ALSA core function snd_ctl_elem_write(), which already holds the write lock on controls_rwsem for the whole put operation. So there is no need to simply hold the lock for fsl_xcvr_activate_ctl() again.
Acquiring the read lock while holding the write lock in the same thread results in a deadlock and a hung task, as reported by Alexander Stein.
From the CVE record · Linux
The fsl_xcvr_mode_put() function can try to acquire a read lock while the ALSA core already holds the write lock in the same thread. An ALSA control write that reaches this function can deadlock and leave the task hung. The input does not specify authentication requirements or whether a remote attacker can trigger it.
Engineers running Linux kernels with the ASoC fsl_xcvr driver should check their builds; affected versions are not specified.