CVE-2022-48716: ASoC: codecs: wcd938x: fix incorrect used of portid
In 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 chaninfo array. So fix this. Without this, its possible that we could corrupt struct wcd938xsdwpriv by accessing portmap array out of range with channel id instead of port id.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.16.10-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1 - Compensating control
In the Linux kernel ASoC wcd938x codec code, derive the port ID from the chan_info array before accessing port_map; do not use the mixer control channel ID from mixer->reg as the port_map index.
Event History
Frequently Asked Questions
What is the severity of CVE-2022-48716?
CVE-2022-48716 has been classified as a medium severity vulnerability in the Linux kernel.
What systems are affected by CVE-2022-48716?
CVE-2022-48716 affects versions of the Linux kernel that handle ASoC codecs, specifically the wcd938x driver.
How do I fix CVE-2022-48716?
To fix CVE-2022-48716, update your Linux kernel to the latest stable version that contains the patch for this vulnerability.
What type of vulnerability is CVE-2022-48716?
CVE-2022-48716 is a coding error that involves incorrect usage of portid in audio mixer controls within the Linux kernel.
Can CVE-2022-48716 lead to system compromise?
While CVE-2022-48716 is primarily a coding error, its impact can affect audio processing functionality but does not directly lead to system compromise.