# CVE-2025-40045: ASoC: codecs: wcd937x: set the comp soundwire port correctly

- 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.24%, higher than 9% of CVEs (2026-11-30)
- Published: 2025-10-28T11:48:23.431Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ASoC: codecs: wcd937x: set the comp soundwire port correctly

For some reason we endup with setting soundwire port for
HPHL_COMP and HPHR_COMP as zero, this can potentially result
in a memory corruption due to accessing and setting -1 th element of
port_map array.

(As written by CVE List.)

## Affected

- Linux Linux: from 82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 before abcd537aae3b84c6d10ad147e99a204bcb56b234; from 82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 before 1a1ca38392e7e896075afc8905ddaea525ed30f7; from 82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 before 66a940b1bf48a7095162688332d725ba160154eb; 6.11 (not affected: before 6.11; from 6.12.53 up to 6.12.*; from 6.17.3 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/abcd537aae3b84c6d10ad147e99a204bcb56b234>
- <https://git.kernel.org/stable/c/1a1ca38392e7e896075afc8905ddaea525ed30f7>
- <https://git.kernel.org/stable/c/66a940b1bf48a7095162688332d725ba160154eb>

## Sources

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

---

Page: https://cve.day/CVE-2025-40045 · Whole record: https://cve.day/CVE-2025-40045.json · Rebuilt by cve.day 2026-11-25T22:59:06.933Z
