ASoC: codecs: wcd9335: Fix missing free of regulator supplies
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: codecs: wcd9335: Fix missing free of regulator supplies
Driver gets and enables all regulator supplies in probe path (wcd9335_parse_dt() and wcd9335_power_on_reset()), but does not cleanup in final error paths and in unbind (missing remove() callback). This leads to leaked memory and unbalanced regulator enable count during probe errors or unbind.
Fix this by converting entire code into devm_regulator_bulk_get_enable() which also greatly simplifies the code.
From the CVE record · Linux
The Linux kernel’s wcd9335 codec driver fails to release regulator supplies when probing fails or the driver is unbound, causing leaked memory and an unbalanced regulator enable count. The input does not establish how an attacker could trigger this or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the wcd9335 codec driver should check their kernel versions against the vendor advisory; affected versions were not provided.