Skip to main content

Linux Kernel CVE-2025-40045

HIGH
2025-10-28 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local low-privileged access
  2. Delivery
    Exercise wcd937x audio codec path
  3. Exploit
    Trigger zero/negative port_map index
  4. Execution
    Out-of-bounds write in kernel memory
  5. Impact
    Kernel corruption enabling DoS or privilege escalation

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access with at least low privileges (PR:L) on a device whose kernel includes and loads the wcd937x ASoC driver bound to a Qualcomm WCD937x codec over the SoundWire bus - the flaw is not reachable on systems lacking this hardware/driver combination. The specific trigger is the code path that sets and indexes the SoundWire port for HPHL_COMP/HPHR_COMP compander components, where the port value of zero leads to a negative array index. Limiting factors: no remote vector (AV:L), the affected driver is hardware-specific and not present in typical server/cloud kernels, and no user interaction is required (UI:N).

Impact

The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 7.8 High) indicates a local, low-complexity attack requiring low privileges with high confidentiality, integrity, and availability impact - consistent with in-kernel memory corruption reachable from a local context. However, the practical attack surface is narrow: exploitation requires the target device to actually use the WCD937x codec over SoundWire, which limits reach to specific Qualcomm-based hardware rather than general-purpose servers. The low EPSS score (0.20%, 10th percentile) and absence of KEV listing or public PoC reinforce that this is not currently a widespread exploitation priority. No conflicting signals were observed; the local-only vector and low EPSS are mutually consistent. The realistic risk is a local privilege-escalation or denial-of-service primitive on affected embedded/mobile hardware rather than a remotely wormable threat.

Exploit ScenarioDerived

A local low-privileged user on an embedded or mobile device using the WCD937x codec triggers audio-path operations that exercise the mis-initialized compander port mapping, driving an out-of-bounds write at port_map[-1] and corrupting adjacent kernel memory. Depending on heap layout, this could crash the kernel (denial of service) or be shaped into a privilege-escalation primitive. No public proof-of-concept exists at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Memory corruption in the Linux kernel's wcd937x ASoC audio codec driver occurs because the SoundWire port for the HPHL_COMP and HPHR_COMP compander components is set to zero, causing an out-of-bounds access at index -1 of the port_map array during driver operation. Local low-privileged users on devices using this Qualcomm codec can trigger kernel memory corruption (CVSS 7.8). There is no public exploit identified at time of analysis, EPSS risk is low (0.20%, 10th percentile), and the fix has already been merged upstream.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the stable-tree commits referenced at git.kernel.org/stable/c/1a1ca38392e7e896075afc8905ddaea525ed30f7, /66a940b1bf48a7095162688332d725ba160154eb, and /abcd537aae3b84c6d10ad147e99a204bcb56b234, or upgrade to the distribution kernel package that incorporates them. Where immediate patching is not possible on affected Qualcomm hardware, a compensating control is to blacklist or unload the wcd937x kernel module (e.g., prevent the snd-soc-wcd937x module from loading) if the codec is not required, accepting the trade-off of losing headphone/audio functionality on that codec. Restricting local access to trusted users also reduces exposure given the local-only attack vector, though it does not remediate the underlying flaw.

Affected ProductsAI

The affected product is the Linux kernel, specifically the ASoC wcd937x codec driver used with Qualcomm WCD937x audio codecs on SoundWire-equipped hardware. Exact affected version ranges are not provided as CPE data in the input; the fix is distributed across three stable-tree commits (git.kernel.org/stable/c/1a1ca38392e7e896075afc8905ddaea525ed30f7, /66a940b1bf48a7095162688332d725ba160154eb, and /abcd537aae3b84c6d10ad147e99a204bcb56b234), indicating multiple maintained stable branches were patched. Any kernel build including the wcd937x driver prior to these commits should be considered affected until confirmed otherwise against distribution changelogs.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the wcd937x codec driver under the ALSA System-on-Chip (ASoC) subsystem, which manages a Qualcomm WCD937x audio codec attached over the SoundWire (SDW) bus. The driver maintains a port_map array that maps logical codec components to physical SoundWire ports. The bug arises when the compander (COMP) ports for the left and right headphone channels (HPHL_COMP, HPHR_COMP) are incorrectly initialized to zero; downstream logic then decrements or indexes this into a negative offset, reading/writing the '-1'th element of port_map. This is a classic out-of-bounds/buffer-overflow condition (aligning with the 'Buffer Overflow' tag); NVD lists CWE as N/A, so the exact weakness class was not formally assigned.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Reachable only via local access on hardware with the wcd937x driver, requiring low privileges (PR:L, AV:L); in-kernel memory corruption yields high C/I/A within an unchanged scope.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 6.1 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

The Linux kernel's wcd937x audio codec driver contains a memory corruption vulnerability (CVE-2025-40045, CVSS 7.8) affecting Qualcomm-based devices including phones and embedded systems. Local users can trigger kernel memory corruption leading to system instability or data loss. Organizations should prioritize identifying affected devices and planning for patch deployment once released.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict local user access on affected systems through application of principle of least privilege, disable audio codec drivers on systems where audio functionality is not required, implement kernel exploit detection and prevention controls (SELinux/AppArmor hardening), and establish monitoring for kernel memory corruption events and audio subsystem errors in system logs.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Low
niche Qualcomm WCD937x codec driver, hardware-specific footprint
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.0/base-os-container:latest Container suse/sl-micro/6.0/kvm-os-container:latest Container suse/sl-micro/6.0/rt-os-container:latest Container suse/sl-micro/6.0/toolbox:latest Image SL-Micro Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Affected
Image SLES-Azure-3P Image SLES-Azure-Basic Image SLES-Azure-Standard Image SLES-BYOS-Azure Image SLES-BYOS-EC2 Image SLES-BYOS-GCE Image SLES-CHOST-BYOS-Aliyun Image SLES-CHOST-BYOS-Azure Image SLES-CHOST-BYOS-EC2 Image SLES-CHOST-BYOS-GCE Image SLES-CHOST-BYOS-GDC Image SLES-CHOST-BYOS-SAP-CCloud Image SLES-EC2 Image SLES-EC2-ECS Image SLES-GCE Image SLES-GCE-3P Image SLES-Hardened-BYOS-Azure Image SLES-Hardened-BYOS-EC2 Image SLES-Hardened-BYOS-GCE Image SLES-SAPCAL-Azure Image SLES-SAPCAL-EC2 Image SLES-SAPCAL-GCE Affected
Image SLES-SAP-Azure Image SLES-SAP-Azure-3P Image SLES-SAP-BYOS-Azure Image SLES-SAP-BYOS-EC2 Image SLES-SAP-BYOS-GCE Image SLES-SAP-EC2 Image SLES-SAP-GCE Image SLES-SAP-GCE-3P Affected
SUSE Linux Enterprise High Availability Extension 16.0 Fixed
SUSE Linux Enterprise Server 16.0 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy