ASoC: codecs: wcd934x: handle channel mappping list correctly
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 |
|
|
5.10.855.15.85.16In the Linux kernel, the following vulnerability has been resolved:
ASoC: codecs: wcd934x: handle channel mappping list correctly
Currently each channel is added as list to dai channel list, however there is danger of adding same channel to multiple dai channel list which endups corrupting the other list where its already added.
This patch ensures that the channel is actually free before adding to the dai channel list and also ensures that the channel is on the list before deleting it.
This check was missing previously, and we did not hit this issue as we were testing very simple usecases with sequence of amixer commands.
From the CVE record · Linux
The Linux kernel’s wcd934x codec driver can corrupt a DAI channel list when the same channel is added to multiple lists. The input does not establish whether an attacker can trigger this, or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the wcd934x codec driver should check their installations; affected versions are not specified.