CVE-2025-40045
published high CVSS 3.1 · 7.8ASoC: codecs: wcd937x: set the comp soundwire port correctly
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 to < abcd537aae3b84c6d10ad147e99a204bcb56b234 · 82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 to < 1a1ca38392e7e896075afc8905ddaea525ed30f7 · 82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 to < 66a940b1bf48a7095162688332d725ba160154eb · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.11 (affected) · 0 to < 6.11 (unaffected · semver) · 6.12.53 through 6.12.* (unaffected · semver) · 6.17.3 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultppc64le | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultppc64le | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20615-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaults390x | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20615-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20615-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultppc64le | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultppc64le | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20615-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaults390x | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20615-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20615-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultppc64le | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultppc64le | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20615-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaults390x | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20615-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20615-1 |
| SUSE / openSUSE | SLE-16 | kernel-64kbaarch64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-64kb-develaarch64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-64kb-extraaarch64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-azureaarch64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-azurex86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-develaarch64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-develx86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-extraaarch64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-extrax86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-vdsox86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaultaarch64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaultppc64le | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaults390x | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaultx86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-baseaarch64 | Advisory build | 6.12.0-160000.26.1.160000.2.7 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-baseppc64le | Advisory build | 6.12.0-160000.26.1.160000.2.7 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-basex86_64 | Advisory build | 6.12.0-160000.26.1.160000.2.7 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-develaarch64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-develppc64le | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-devels390x | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-develx86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-extraaarch64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-extrappc64le | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-extras390x | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-extrax86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-livepatchppc64le | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-livepatchs390x | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-livepatchx86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-vdsox86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-develnoarch | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-docsnoarch | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-docs-htmlnoarch | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmallaarch64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmallppc64le | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmallx86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmall-develaarch64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmall-develppc64le | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmall-develx86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmall-vdsox86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-macrosnoarch | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-obs-qaaarch64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-obs-qappc64le | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-obs-qas390x | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-obs-qax86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-sourcenoarch | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-source-vanillanoarch | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-symsaarch64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-symsppc64le | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-symss390x | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-symsx86_64 | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | SLE-16 | kernel-zfcpdumps390x | Advisory build | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cluster-md-kmp-64kbaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cluster-md-kmp-azureaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cluster-md-kmp-azurex86_64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cluster-md-kmp-defaultaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cluster-md-kmp-defaultppc64le | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cluster-md-kmp-defaults390x | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cluster-md-kmp-rtaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cluster-md-kmp-rtx86_64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dlm-kmp-64kbaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dlm-kmp-azureaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dlm-kmp-azurex86_64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dlm-kmp-defaultaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dlm-kmp-defaultppc64le | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dlm-kmp-defaults390x | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dlm-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dlm-kmp-rtaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dlm-kmp-rtx86_64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-allwinneraarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-alteraaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-amazonaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-amdaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-amlogicaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-apmaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-appleaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-armaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-broadcomaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-caviumaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-exynosaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-freescaleaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-hisiliconaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-lgaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-marvellaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | dtb-mediatekaarch64 | Advisory build | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable code is reached only through an ALSA control-element write ioctl (SNDRV_CTL_IOCTL_ELEM_WRITE) on /dev/snd/controlC*, which requires local access to the device node. There is no network or remote-peer input path into wcd937x_set_compander(). AC:L - A single ioctl writing a toggled value to "HPHL_COMP Switch" or "HPHR_COMP Switch" deterministically drives mc->reg == -1 into the ch_info[] index and the u8 truncation to 255, with no race, timing window, or unpredictable precondition. The out-of-bounds indices and written values derive from fixed module .data content, so they are identical on every boot of a given build. PR:L - No capability check exists on the path; the attacker only needs write access to the sound card's control node, which unprivileged desktop/embedded users hold via the audio group or logind ACLs and which the audio HAL holds on Android. Per the higher-severity rule this is Low rather than High. UI:N - The attacker performs the control write entirely on its own; no victim must open a file, mount anything, or interact with audio in any way. The codec controls are registered as soon as the WCD937x component probes. S:U - The out-of-bounds accesses corrupt kernel heap memory within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The path performs multiple unbounded reads — ch_info[-1], ch_info[255] roughly 3 KB past a 96-byte array, and sdw_slave->m_port_map[] indexed by an attacker-unbounded u8 — and the resulting heap out-of-bounds writes constitute memory corruption that can be leveraged for arbitrary read, so High applies. I:H - Two out-of-bounds writes occur past the small devm_kzalloc'd wcd937x_sdw_priv object (port_config[port_idx-1].num up to ~2 KB beyond, master_channel_map[mstr_port_num] up to ~1 KB beyond), corrupting adjacent slab objects with build-deterministic offsets — a heap write primitive suitable for control-flow hijacking. A:H - Out-of-bounds slab writes corrupt neighbouring allocations and readily produce KASAN reports, slab metadata damage, and kernel oops/panic; the far OOB read may also touch unmapped memory. Any kernel crash is scored High.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 to < abcd537aae3b84c6d10ad147e99a204bcb56b234 (affected · git)82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 to < 1a1ca38392e7e896075afc8905ddaea525ed30f7 (affected · git)82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 to < 66a940b1bf48a7095162688332d725ba160154eb (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.11 (affected)0 to < 6.11 (unaffected · semver)6.12.53 through 6.12.* (unaffected · semver)6.17.3 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
ASoC: codecs: wcd937x: set the comp soundwire port correctly
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 08c2b9e702ef6780c0fd5aa483d8c07fa28b3826ad148eb3d89614650fc883de
- Ingested
- 23 Sep 2026, 08:48:04 UTC
- Source record
- Official CVE record