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 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.
Mixer controls store a channel identifier in the mixer->reg field, which is not identical to the port identifier. The correct port id should be retrieved from the chan_info array. Incorrect use of channel id instead of port id for indexing the port_map array can cause out-of-bounds write or read operations, leading to corruption of the wcd938x_sdw_priv structure. This is a classic case of uncontrolled resource consumption or memory corruption (CWE-400).
Local attackers or malicious processes can cause memory corruption in the kernel, which may result in privilege escalation, system instability, or system crash. In extreme cases, full system control is possible.
Apply patches available from the vendor according to references — fixes have been published in the Linux kernel stable repository under commits: 9167f2712dc8, aa7152f9f117, and c5c1546a654f. It is recommended to update the kernel to a version containing the indicated patches.
Linux kernel containing the ASoC driver for the wcd938x codec — specific versions indicated in vendor references (commits in the Linux kernel stable repository).
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux Kernel
OSLinux5.175.14 – 5.15.22 (bez)5.16 – 5.16.8 (bez)
Related vulnerabilities
Type confusion w V8 (Google Chrome) — zdalne uszkodzenie sterty
Commvault Command Center – nieuwierzytelniony RCE przez path traversal w ZIP
IBM Aspera Faspex 4.4.2 Patch Level 1 and earlier could allow a remote attacker to execute arbitrary code on t...
VMware Workspace ONE Access and Identity Manager contain a remote code execution vulnerability due to server-s...
VMware Workspace One Access, Access Connector, Identity Manager, and Identity Manager Connector address have a...