CVE-2025-40045: ASoC: codecs: wcd937x: set the comp soundwire port correctly
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.
Security readout for executives and security teams
Plain-English summary
A Linux audio codec driver flaw can access memory outside an intended array when configuring certain SoundWire headphone-compressor ports. Successful abuse could compromise confidentiality, integrity, and availability, but the supplied scoring indicates an attacker first needs local access and low-level privileges.
Executive priority
Treat as a high-priority endpoint or device patching issue where affected audio hardware and untrusted local access coexist. It is less urgent for systems without the wcd937x codec path. No supplied evidence supports emergency response for active exploitation.
Technical view
In the wcd937x ASoC codec, HPHL_COMP and HPHR_COMP SoundWire ports may be set to zero. Subsequent logic can address element -1 of the port_map array, potentially causing memory corruption. CVSS 3.1 scores it 7.8: local, low complexity, low privileges, no user interaction, with high impact.
Likely exposure
Exposure appears limited to affected Linux kernels using the wcd937x audio codec path. The bundle lists versions including 6.11, 6.12.53, 6.17.3, and 6.18, but its version data is ambiguous. Confirm applicability through distribution or device-vendor guidance.
Exploitation context
The supplied CVSS vector describes local exploitation requiring low privileges, without user interaction. CISA KEV status is false, and the supplied sources provide no evidence of active exploitation. Exact triggering conditions and practical exploitability are not documented in the bundle.
Researcher notes
The vulnerable condition is an apparent port-index underflow: a zero port value leads to access of port_map[-1]. The sources characterize the result only as potential memory corruption. They do not establish a reliable privilege-escalation path, affected hardware inventory, or complete fixed-version boundaries.
Mitigation direction
Apply the applicable vendor kernel update incorporating the referenced stable fix.
Prioritize devices that use the wcd937x codec and permit untrusted local access.
Restrict local account access until affected systems are updated.
Consult distribution or device-vendor guidance for precise fixed-version mapping.
Validation and detection
Inventory running kernel versions on systems with wcd937x audio hardware.
Confirm whether the wcd937x codec driver is present or active.
Compare installed kernels with vendor advisories and referenced stable fixes.
After updating, verify systems boot normally and audio functions correctly.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-40045 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
0ADP providers
4Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.