ASoC: codecs: wcd938x: fix incorrect used of portid
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.15.225.16.85.17In the Linux kernel, the following vulnerability has been resolved:
ASoC: codecs: wcd938x: fix incorrect used of portid
Mixer controls have the channel id in mixer->reg, which is not same as port id. port id should be derived from chan_info array. So fix this. Without this, its possible that we could corrupt struct wcd938x_sdw_priv by accessing port_map array out of range with channel id instead of port id.
From the CVE record · Linux
The Linux kernel’s wcd938x codec can use a mixer channel ID where a port ID is required. Accessing the port map with that ID can go out of bounds and corrupt a private driver structure. The input does not specify how an attacker could trigger this or what access or user interaction is required.
Engineers running Linux systems that use the wcd938x codec should check their kernel; affected versions are not specified.