Skip to main content

Linux Kernel ksmbd CVE-2025-40084

HIGH
2025-10-29 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.1
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 control of ksmbd.mountd IPC peer
  2. Delivery
    Send truncated IPC response message
  3. Exploit
    handle_response reads handle without size check
  4. Execution
    4-byte out-of-bounds read past payload
  5. Impact
    Leak adjacent kernel memory or crash kernel

Vulnerability Assessment

Exploitation Conditions

Exploitation requires that the ksmbd in-kernel SMB server (CONFIG_SMB_SERVER) is built and running, and that the attacker can deliver a malformed or truncated response message over the ksmbd IPC channel from the ksmbd.mountd side - i.e. the attacker must control or influence the normally-privileged ksmbd.mountd userspace daemon. Limiting factors: this is not remotely reachable by an ordinary SMB network client, the trigger is on the trusted management IPC path rather than the wire protocol, the over-read is bounded to 4 bytes, and the CVSS AV:L confirms local rather than network exploitation. Systems without ksmbd enabled are not affected.

Impact

The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H, score 7.1) rates confidentiality and availability impact as High, but this appears optimistic for a bounded 4-byte over-read: realistic confidentiality impact is limited leakage, while a malformed dereference more plausibly yields a crash (availability). Crucially, the malformed message originates from ksmbd.mountd, which normally runs as root; genuine exploitation therefore presupposes an attacker who can already influence or replace that trusted userspace peer, which is a higher bar than the PR:L in the vector implies. EPSS is low (0.19%, 9th percentile), there is no KEV listing and no known POC, all consistent with a low real-world exploitation priority. This is best characterized as a defensive hardening fix against a malformed/compromised trusted component rather than a remotely reachable, widely exploitable vulnerability - verify the trust boundary of ksmbd.mountd in your deployment before prioritizing.

Exploit ScenarioDerived

An attacker who has gained the ability to influence or supplant the ksmbd.mountd userspace helper sends a truncated IPC response whose declared payload is smaller than 4 bytes; handle_response() reads past the payload, leaking a small amount of adjacent kernel memory or causing an invalid access that faults the kernel. Given AV:L/AC:L, the primitive is low-complexity once the attacker controls the IPC peer, but no public POC or in-the-wild exploitation is known.

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

Out-of-bounds read in the Linux kernel's ksmbd in-kernel SMB server allows a 4-byte read past a declared IPC payload boundary when handle_response() in transport_ipc.c dereferences a message handle without first validating that the payload is at least 4 bytes long. The flaw is triggered by a malformed or truncated message from the userspace ksmbd.mountd helper, potentially leaking a small amount of adjacent kernel memory or crashing the kernel. There is no public exploit identified at time of analysis, it is not in CISA KEV, and EPSS is low at 0.19% (9th percentile).

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the stable-tree commits referenced by NVD (e.g. git.kernel.org/stable/c/2dc125f5da134c0915a840b62565c60a595673dd and the four sibling commits) or update to your distribution's kernel package that incorporates them. As a compensating control until patched, unload or disable the ksmbd server (stop the ksmbd service and prevent the ksmbd kernel module from loading, or build without CONFIG_SMB_SERVER) if SMB serving is not required - the trade-off is loss of in-kernel SMB file-sharing functionality. Because the malformed message must come from ksmbd.mountd, also ensure the ksmbd.mountd userspace daemon and its binary/permissions are not tamperable by unprivileged users, reducing the chance that a compromised helper can drive the truncated-message path.

Affected ProductsAI

The affected product is the Linux kernel, specifically the ksmbd in-kernel SMB server component (fs/smb/server/transport_ipc.c). NVD does not publish explicit fixed version numbers here; instead, five stable-tree fix commits are referenced (git.kernel.org commits 2dc125f5da134c0915a840b62565c60a595673dd, 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0, 867ffd9d67285612da3f0498ca618297f8e41f01, 898d527ed94c19980a4d848f10057f1fed578ffb, and a02e432d5130da4c723aabe1205bac805889fdb2), indicating backports across multiple stable branches. Only kernels built with ksmbd (CONFIG_SMB_SERVER) and actually running the ksmbd server are exposed; no CPE strings were supplied in the input to pin exact version ranges.

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

ksmbd is the Linux kernel's in-kernel SMB3 file server, which cooperates with a privileged userspace daemon (ksmbd.mountd) over a netlink/IPC channel for management operations such as user and share resolution. The affected code, handle_response() in fs/smb/server/transport_ipc.c, receives response messages from ksmbd.mountd and immediately interprets the first 4 bytes of the payload as an integer handle used to correlate the response with a pending request. Because the declared payload size is not checked against the minimum 4 bytes before the dereference, a short message causes a read beyond the intended payload - a classic out-of-bounds read (CWE-125), even though NVD lists the CWE as N/A. The tag 'Information Disclosure' reflects that the primary risk is leakage of adjacent kernel memory, with a secondary risk of an invalid access causing a fault.

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.1 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
vuln.today AI 5.1 MEDIUM

Trigger comes from the root-run ksmbd.mountd IPC peer, so PR:H; the over-read is bounded to 4 bytes (C:L) while a bad dereference can fault the kernel (A:H).

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

DescriptionCVE.org

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

ksmbd: transport_ipc: validate payload size before reading handle

handle_response() dereferences the payload as a 4-byte handle without verifying that the declared payload size is at least 4 bytes. A malformed or truncated message from ksmbd.mountd can lead to a 4-byte read past the declared payload size. Validate the size before dereferencing.

This is a minimal fix to guard the initial handle read.

Executive ViewAI

Why It Matters

Linux kernel ksmbd (in-kernel SMB server) contains a vulnerability that could leak sensitive system memory or crash file server systems when processing malformed network requests. Organizations operating Linux-based file servers or storage systems should assess their ksmbd deployment to prevent potential data exposure and service interruptions.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Disable ksmbd kernel module on systems where not operationally required. Implement network segmentation restricting SMB access to authorized clients only. Enable kernel hardening mechanisms (SMEP/SMAP) where available. Deploy ksmbd in containerized environments with restricted capabilities. Establish alerting on kernel crashes and unusual SMB protocol activity.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Medium
Linux kernel ubiquitous, but ksmbd SMB server is optional and not commonly enabled
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

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
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
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected

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