ASoC: codecs: wcd-mbhc-v2: fix resource leaks on component remove
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: codecs: wcd-mbhc-v2: fix resource leaks on component remove
The MBHC resources must be released on component probe failure and removal so can not be tied to the lifetime of the component device.
This is specifically needed to allow probe deferrals of the sound card which otherwise fails when reprobing the codec component:
snd-sc8280xp sound: ASoC: failed to instantiate card -517 genirq: Flags mismatch irq 299. 00002001 (mbhc sw intr) vs. 00002001 (mbhc sw intr) wcd938x_codec audio-codec: Failed to request mbhc interrupts -16 wcd938x_codec audio-codec: mbhc initialization failed wcd938x_codec audio-codec: ASoC: error at snd_soc_component_probe on audio-codec: -16 snd-sc8280xp sound: ASoC: failed to instantiate card -16
From the CVE record · Linux
The Linux kernel’s wcd-mbhc-v2 codec code does not release MBHC resources when component probing fails or the component is removed. If sound card probing is deferred, a later codec reprobe can fail and prevent the sound card from initializing. The input does not describe an attacker, access requirements, or user interaction.
Engineers running Linux kernels with the affected ASoC wcd-mbhc-v2 codec code should check their deployments; affected versions are not specified.