Kernel memory corruption via zero SoundWire port
Published Oct 28, 2025 · Updated Oct 28, 2025
Memory corruption in the Linux kernel wcd937x ASoC codec driver allows local users to alter kernel memory via an ALSA control write. The HPHL_COMP and HPHR_COMP controls leave mc->reg at -1 because SND_SOC_NOPM is used as their register, and wcd937x_set_compander truncates the derived port number to 255 before indexing channel and port maps. Reachability requires a local low-privileged user able to issue an ALSA element-write ioctl on the WCD937x control device; the out-of-bounds accesses compromise kernel confidentiality, integrity, and availability.
Summary
What happened
Memory corruption in the Linux kernel wcd937x ASoC codec driver allows local users to alter kernel memory via an ALSA control write. The HPHL_COMP and HPHR_COMP controls leave mc->reg at -1 because SND_SOC_NOPM is used as their register, and wcd937x_set_compander truncates the derived port number to 255 before indexing channel and port maps. Reachability requires a local low-privileged user able to issue an ALSA element-write ioctl on the WCD937x control device; the out-of-bounds accesses compromise kernel confidentiality, integrity, and availability.
The record
- CVE
- CVE-2025-40045
- Published
- Oct 28, 2025
- Updated
- Oct 28, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 28, 2025CVE publishedPublication date reported by the CVE source.
- Oct 28, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=6.11
- Affected versionversion=82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 <1a1ca38392e7e896075afc8905ddaea525ed30f7
- Affected versionversion=82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 <66a940b1bf48a7095162688332d725ba160154eb
- Affected versionversion=82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 <abcd537aae3b84c6d10ad147e99a204bcb56b234
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo