ASoC: fsl_micfil: balance mclk enable/disable
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 |
|
|
6.18.537.2.77.3In the Linux kernel, the following vulnerability has been resolved:
ASoC: fsl_micfil: balance mclk enable/disable
hw_params() enables mclk unconditionally and hw_free() disables it unconditionally, but the PCM core does not guarantee 1:1 pairing: hw_free() can run without hw_params(), and hw_params() can be called multiple times from the SETUP state. This triggers an "already disabled" WARN() in the first case and leaks an enable reference in the second, leaving the clock ungateable.
Guard both sides with the existing mclk_flag, as fsl_sai.c does with mclk_streams.
From the CVE record · Linux
The Linux kernel's fsl_micfil audio driver does not balance mclk enable and disable operations. If hw_free() runs without hw_params(), it can trigger a warning; repeated hw_params() calls can leak a clock enable reference and leave the clock ungateable. The input does not specify an attack method, authentication requirements, or user interaction.
Engineers running Linux kernels with the fsl_micfil audio driver should check their versions; affected versions are not specified.