In the Linux kernel, the following vulnerability has been resolved: ALSA: hda: Reject codec reset on ASoC (ext_ops) buses Writing to the reconfig or clear sysfs nodes of a codec handled by ASoC (SOF via hdac_hda, AVS via codecs/hda) hangs the writer. snd_hda_codec_reset() sets card->shutdown and calls device_release_driver(). With ext_ops the driver unbind unregisters the ASoC component, which unbinds and frees the whole ASoC card: - snd_card_disconnect() returns early as card->shutdown is already set, so the card's child devices are not removed and snd_card_free() waits for the card release forever. - Even without that, freeing the card removes the codec's hwdep device, which owns the sysfs node the reset was issued from, deadlocking in kernfs while waiting for the active write to finish. The legacy HDA driver keeps the card across a driver rebind, ASoC does not, so the reset cannot be supported there. Return -EOPNOTSUPP and skip the misleading "codec is being used" messages in the callers.
https://git.kernel.org/stable/c/ecf162478713c8688ee7377b599bedd580764ef0
https://git.kernel.org/stable/c/db13dbefa22eef5d20173766d7e1e71a1f9dc7dc
https://git.kernel.org/stable/c/be351c87b1208ff469163c2627957de1ce655d1a
https://git.kernel.org/stable/c/bdf82e1e3f592ddb311736801a546d9489be6489
https://git.kernel.org/stable/c/a4311e9447bbb219044db38897f95be112f46a8a
https://git.kernel.org/stable/c/9e48f7fa5dffb4f05fc8fdb4851a946fcf45a7d9
https://git.kernel.org/stable/c/7e7174e076265f1b9c47465b80dc2ffe5bcb8753
https://git.kernel.org/stable/c/151957c54443a1b7d4e9e03e7fd65c852ea43b9c