# CVE-2022-48716: ASoC: codecs: wcd938x: fix incorrect used of portid

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2024-06-20T11:13:09.315Z
- Modified: 2026-08-05T08:51:53.731Z
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from e8ba1e05bdc016700c85fad559a812c2e795442f before aa7152f9f117b3e66b3c0d4158ca4c6d46ab229f; from e8ba1e05bdc016700c85fad559a812c2e795442f before 9167f2712dc8c24964840a4d1e2ebf130e846b95; from e8ba1e05bdc016700c85fad559a812c2e795442f before c5c1546a654f613e291a7c5d6f3660fc1eb6d0c7; 5.14 (not affected: before 5.14; from 5.15.22 up to 5.15.*; from 5.16.8 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: from e8ba1e05bdc0 before aa7152f9f117; from e8ba1e05bdc0 before 9167f2712dc8; from e8ba1e05bdc0 before c5c1546a654f; 5.14; from 5.14 before 5.15.22; from 5.16 before 5.16.8; 5.17 (not affected: before 5.14; from 5.15.22 up to 5.16; from 5.16.8 up to 5.17; 5.17)

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/aa7152f9f117b3e66b3c0d4158ca4c6d46ab229f> (patch)
- <https://git.kernel.org/stable/c/9167f2712dc8c24964840a4d1e2ebf130e846b95> (patch)
- <https://git.kernel.org/stable/c/c5c1546a654f613e291a7c5d6f3660fc1eb6d0c7> (patch)

## Sources

- CVE List: [CVE-2022-48716](https://www.cve.org/CVERecord?id=CVE-2022-48716), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-48716](https://nvd.nist.gov/vuln/detail/CVE-2022-48716), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-48716 · Whole record: https://cve.day/CVE-2022-48716.json · Rebuilt by cve.day 2026-11-25T22:58:19.832Z
