What’s Vulnerable › Vulnerabilities
CVE-2025-40045: ASoC: codecs: wcd937x: set the comp soundwire port correctly
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-10-28 · updated 2026-10-19
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.
Affected products
- Linux kernel: 6.11 — fixed in 6.18
How to fix
Upgrade to a fixed version: Linux kernel 6.18. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/1a1ca38392e7e896075afc8905ddaea525ed30f7
- https://git.kernel.org/stable/c/66a940b1bf48a7095162688332d725ba160154eb
- https://git.kernel.org/stable/c/abcd537aae3b84c6d10ad147e99a204bcb56b234
Get alerted when CVE-2025-40045 or the next vulnerability affects your stack