ASoC: codecs: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe()
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: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe()
When snd_soc_dapm_new_controls() or snd_soc_dapm_add_routes() fails, wcd937x_soc_codec_probe() returns without releasing 'wcd937x->clsh_info', which is allocated by wcd_clsh_ctrl_alloc. Add wcd_clsh_ctrl_free() to prevent potential memory leak.
From the CVE record · Linux
The Linux kernel's wcd937x codec probe can leak allocated memory if adding audio controls or routes fails. The input does not describe how an attacker could trigger this failure or specify access or user-interaction requirements.
Engineers running the Linux kernel with the wcd937x codec should check their installations; affected versions are not specified.