Skip to main content

Linux Kernel CVE-2025-40317

| EUVDEUVD-2025-201628 HIGH
2025-12-08 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 access to affected SDM845 device
  2. Delivery
    Open ALSA PCM audio device
  3. Exploit
    Issue hw_params triggering SLIMbus regmap write
  4. Execution
    Kernel dereferences bad bus_context pointer
  5. Impact
    Invalid-address fault crashes kernel (DoS)

Vulnerability Assessment

Exploitation Conditions

Requires a system running an affected Linux kernel that is actually built with and using the SLIMbus regmap backend (regmap_slimbus) against a SLIMbus-connected audio codec - concretely the wcd934x codec on Qualcomm SDM845-class hardware (e.g. Dragonboard 845c). The trigger is a local user initiating a SLIMbus register access via the audio stack (e.g. PCM hw_params during playback), consistent with CVSS PR:L/UI:N. Limiting factors: the flaw is not reachable on hardware without a SLIMbus codec, requires local access and the ability to open/use the ALSA device, and is not remotely exploitable; the practical impact observed is a kernel crash rather than confirmed remote or unauthenticated compromise.

Impact

The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N, C:H/I:H/A:H, base 7.8) reflects a local, low-privilege issue with high impact - consistent with a kernel-space bad-pointer dereference reachable through normal audio ioctls. However, real-world risk is heavily constrained by hardware scope: the flaw only manifests on systems with a SLIMbus-connected codec (notably Qualcomm SDM845-class devices using wcd934x), not on general server/desktop fleets. EPSS is very low (0.05%, 16th percentile), the CVE is not on the CISA KEV list, and no POC is referenced, so this is not evidence of opportunistic exploitation. There is no SSVC record in the input. In practice the dominant observed impact is a reproducible kernel crash (denial of service) during playback; the C:H/I:H claim (memory disclosure/corruption from the wrong context pointer) is plausible but not independently demonstrated here. Net: a genuine correctness/stability bug worth patching on affected embedded/mobile platforms, but low priority for environments lacking SLIMbus audio hardware.

Exploit ScenarioDerived

On a Qualcomm SDM845 device with a wcd934x codec, a local user (or app such as aplay) opens the PCM device and issues SND_PCM_HW_PARAMS, driving wcd934x_hw_params() into a regmap write over SLIMbus. The bad bus_context pointer is dereferenced in slim_xfer_msg(), faulting on an invalid kernel address and crashing the system; no public exploit is required since ordinary audio playback triggers it.

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

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

Alert me

AnalysisAIv2 – Jul 30, 2026

Kernel memory corruption in the Linux kernel SLIMbus regmap layer (regmap-slimbus) occurs because __devm_regmap_init_slimbus() and __regmap_init_slimbus() passed an incorrect bus_context pointer, causing an invalid-address dereference during SLIMbus register I/O. On affected Qualcomm-based platforms (e.g. wcd934x audio codec on SDM845 boards), a local user triggering audio playback crashes the kernel and may corrupt or disclose memory. This is a resolved regression exposed by commit 4e65bda8273c; there is no public exploit identified at time of analysis and EPSS probability is negligible (0.05%).

Earlier versions of this analysis (1)
v1 Mar 15, 2026 - 17:54

RemediationAI

Vendor-released patch: update to a fixed stable kernel - 6.1.159, 5.15.197, 5.10.247, 5.4.302, 6.6.117, 6.12.58, 6.17.8, or mainline 6.18 (see the kernel.org stable commits, e.g. https://git.kernel.org/stable/c/8143e4075d131c528540417a51966f6697be14eb and https://git.kernel.org/stable/c/a16e92f8d7dc7371e68f17a9926cb92d2244be7b). Distribution users should apply Ubuntu USN-8095-1 / USN-8096-1 (https://ubuntu.com/security/notices/USN-8095-1) and reboot into the patched kernel. If immediate patching is not possible on affected embedded boards, a compensating control is to avoid loading/using the SLIMbus audio path - e.g. do not load the regmap_slimbus / snd_soc_wcd934x modules or keep the codec unused - which prevents the faulting playback path at the cost of losing audio functionality on that device; this only helps where the SLIMbus codec is not required for operation.

Affected VersionsENISA

Linux 7d6f7fb053ad543da74119df3c4cd7bb46220471 <a16e92f8d7dc7371e68f17a9926cb92d2244be7b
Linux 7d6f7fb053ad543da74119df3c4cd7bb46220471 <d979639f099c6e51f06ce4dd8d8e56364d6c17ba
Linux patch: 6.1.159
Linux patch: 5.15.197
Linux 4.16
Linux patch: 5.10.247
Linux 7d6f7fb053ad543da74119df3c4cd7bb46220471 <c0f05129e5734ff3fd14b2c242709314d9ca5433
Linux patch: 6.17.8
Linux patch: 6.12.58
Linux patch: 5.4.302
Linux 7d6f7fb053ad543da74119df3c4cd7bb46220471 <2664bfd8969d1c43dcbe3ea313f130dfa6b74f4c
Linux 7d6f7fb053ad543da74119df3c4cd7bb46220471 <434f7349a1f00618a620b316f091bd13a12bc8d2
Linux patch: 0
Linux patch: 6.18
Linux 7d6f7fb053ad543da74119df3c4cd7bb46220471 <02d3041caaa3fe4dd69e5a8afd1ac6b918ddc6a1
Linux 7d6f7fb053ad543da74119df3c4cd7bb46220471 <b65f3303349eaee333e47d2a99045aa12fa0c3a7
Linux patch: 6.6.117
Linux 7d6f7fb053ad543da74119df3c4cd7bb46220471 <8143e4075d131c528540417a51966f6697be14eb

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

SLIMbus (Serial Low-power Inter-chip Media Bus) is used on Qualcomm SoCs to connect the CPU to audio codecs. The kernel's regmap abstraction provides a uniform register-access API over transports like I2C, SPI and SLIMbus; regmap_slimbus is the SLIMbus backend. During init, regmap stores a bus_context that is later handed back to the bus read/write callbacks (regmap_slimbus_read/write) which pass it to slim_read()/slim_xfer_msg(). The fix corrects the 3rd argument so the context is 'slimbus' (equivalent to &slimbus->dev) rather than a wrong pointer; the buggy value led to the call trace faulting in slim_xfer_msg while dereferencing an invalid virtual address. The root-cause class is an incorrect-pointer/invalid-pointer dereference (aligned with CWE-476/CWE-763-style pointer misuse); NVD lists CWE as N/A. The regression became reachable only after wcd934x switched from __regmap_init_slimbus() to the devm_ variant.

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 6.6 MEDIUM

Local audio-stack trigger by a low-priv user (AV:L/AC:L/PR:L); dominant confirmed impact is a kernel crash (A:H), with only inferred limited memory disclosure/corruption (C:L/I:L).

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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

Lifecycle Timeline

4
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 16, 2026 - 15:00 nvd
Patch available
CVE Published
Dec 08, 2025 - 01:16 cve.org
HIGH 7.8
CVE Published
Dec 08, 2025 - 01:16 nvd
N/A

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

regmap: slimbus: fix bus_context pointer in regmap init calls

Commit 4e65bda8273c ("ASoC: wcd934x: fix error handling in wcd934x_codec_parse_data()") revealed the problem in the slimbus regmap. That commit breaks audio playback, for instance, on sdm845 Thundercomm Dragonboard 845c board:

Unable to handle kernel paging request at virtual address ffff8000847cbad4 ... CPU: 5 UID: 0 PID: 776 Comm: aplay Not tainted 6.18.0-rc1-00028-g7ea30958b305 #11 PREEMPT Hardware name: Thundercomm Dragonboard 845c (DT) ... Call trace: slim_xfer_msg+0x24/0x1ac [slimbus] (P) slim_read+0x48/0x74 [slimbus] regmap_slimbus_read+0x18/0x24 [regmap_slimbus] _regmap_raw_read+0xe8/0x174 _regmap_bus_read+0x44/0x80 _regmap_read+0x60/0xd8 _regmap_update_bits+0xf4/0x140 _regmap_select_page+0xa8/0x124 _regmap_raw_write_impl+0x3b8/0x65c _regmap_bus_raw_write+0x60/0x80 _regmap_write+0x58/0xc0 regmap_write+0x4c/0x80 wcd934x_hw_params+0x494/0x8b8 [snd_soc_wcd934x] snd_soc_dai_hw_params+0x3c/0x7c [snd_soc_core] __soc_pcm_hw_params+0x22c/0x634 [snd_soc_core] dpcm_be_dai_hw_params+0x1d4/0x38c [snd_soc_core] dpcm_fe_dai_hw_params+0x9c/0x17c [snd_soc_core] snd_pcm_hw_params+0x124/0x464 [snd_pcm] snd_pcm_common_ioctl+0x110c/0x1820 [snd_pcm] snd_pcm_ioctl+0x34/0x4c [snd_pcm] __arm64_sys_ioctl+0xac/0x104 invoke_syscall+0x48/0x104 el0_svc_common.constprop.0+0x40/0xe0 do_el0_svc+0x1c/0x28 el0_svc+0x34/0xec el0t_64_sync_handler+0xa0/0xf0 el0t_64_sync+0x198/0x19c

The __devm_regmap_init_slimbus() started to be used instead of __regmap_init_slimbus() after the commit mentioned above and turns out the incorrect bus_context pointer (3rd argument) was used in __devm_regmap_init_slimbus(). It should be just "slimbus" (which is equal to &slimbus->dev). Correct it. The wcd934x codec seems to be the only or the first user of devm_regmap_init_slimbus() but we should fix it till the point where __devm_regmap_init_slimbus() was introduced therefore two "Fixes" tags.

While at this, also correct the same argument in __regmap_init_slimbus().

Executive ViewAI

Why It Matters

CVE-2025-40317 affects Qualcomm-based devices' audio systems, allowing local users to crash systems and potentially access sensitive data. Organizations deploying these platforms (particularly SDM845 boards with wcd934x codecs) face service disruption and data confidentiality risks; a vendor patch is available for immediate deployment.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Prevalence
Low
SLIMbus regmap only on specific Qualcomm SDM845-class embedded/mobile boards
Data Quality
5 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.1%
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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Image SL-Micro Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.115 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.146 Affected
Container suse/sl-micro/6.0/toolbox:latest Affected

References

Advisories & patches
ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2025-40317 ADVISORY https://ubuntu.com/security/notices/USN-8095-1 ADVISORY https://ubuntu.com/security/notices/USN-8096-1 ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0278/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0281/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0293/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0315/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20207/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20220/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20228/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20477/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20479/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20498/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20520/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20564/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20772/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20794/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20819/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20845/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20872/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20876/ REF https://git.kernel.org/stable/c/02d3041caaa3fe4dd69e5a8afd1ac6b918ddc6a1 REF https://git.kernel.org/stable/c/2664bfd8969d1c43dcbe3ea313f130dfa6b74f4c REF https://git.kernel.org/stable/c/434f7349a1f00618a620b316f091bd13a12bc8d2 REF https://git.kernel.org/stable/c/8143e4075d131c528540417a51966f6697be14eb REF https://git.kernel.org/stable/c/a16e92f8d7dc7371e68f17a9926cb92d2244be7b REF https://git.kernel.org/stable/c/b65f3303349eaee333e47d2a99045aa12fa0c3a7 REF https://git.kernel.org/stable/c/c0f05129e5734ff3fd14b2c242709314d9ca5433 REF https://git.kernel.org/stable/c/d979639f099c6e51f06ce4dd8d8e56364d6c17ba

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