ASoC: da7219: Fix an error handling path in da7219_register_dai_clks()
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: da7219: Fix an error handling path in da7219_register_dai_clks()
If clk_hw_register() fails, the corresponding clk should not be unregistered.
To handle errors from loops, clean up partial iterations before doing the goto. So add a clk_hw_unregister(). Then use a while (--i >= 0) loop in the unwind section.
From the CVE record · Linux
The Linux kernel’s ASoC da7219 driver has an error-handling flaw in clock registration when clk_hw_register() fails. The input does not specify an attacker action, exploit conditions, or whether authentication or user interaction is needed.
Engineers running the Linux kernel should check whether their kernel includes the affected ASoC da7219 code; affected versions are not specified.