Skip to main content

Linux kernel ksmbd EUVDEUVD-2026-27748

| CVE-2026-43185 CRITICAL
Uncontrolled Recursion (CWE-674)
2026-05-06 Linux GHSA-vcg7-gx5w-x44c
9.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Recon
    Scan for ksmbd SMB Direct listeners
  2. Delivery
    Connect to port 5445/TCP
  3. Exploit
    Send crafted negotiation with 0x80000000 preferred_send_size
  4. Install
    Trigger signedness bug in size validation
  5. C2
    Send oversized message payload (>1420 bytes)
  6. Execute
    Overflow heap buffer in kernel memory
  7. Impact
    Overwrite kernel data structures
  8. Step 8
    Execute arbitrary code as root

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Requires Linux kernel ksmbd module actively loaded and listening for SMB connections with SMB Direct (RDMA over Converged Ethernet or InfiniBand) support compiled and enabled. The vulnerable code path is only reachable when a client initiates SMB Direct protocol negotiation specifically, not through standard SMB2/SMB3 connections. Most Linux distributions ship ksmbd as an optional module not loaded by default, significantly limiting attack surface. Systems explicitly configured for high-performance SMB file sharing using RDMA transport are at risk. No authentication, user interaction, or non-default SMB configuration is required beyond having SMB Direct enabled. Standard SMB connections over TCP port 445 without RDMA do not trigger this vulnerability. The specific function smb_direct_prepare_negotiation() must be reached, which occurs during the initial protocol handshake before any authentication exchange.

Impact

Despite the critical CVSS 9.8 score indicating maximum severity across confidentiality, integrity, and availability with network vector (AV:N) and no authentication required (PR:N), the low EPSS score of 0.02% (4th percentile) suggests minimal observed exploitation in the wild. The attack requires the target system to have ksmbd module loaded with SMB Direct/RDMA support enabled, which is not a default configuration on most Linux distributions. The vulnerability is automatable once prerequisites are met (AC:L), enabling wormable exploitation scenarios. Real-world risk stratifies based on deployment: extremely high for Linux-based NAS devices and file servers with SMB Direct enabled, moderate for general Linux servers (where ksmbd adoption remains limited compared to userspace Samba), and negligible for systems without ksmbd loaded. The availability of vendor patches across all maintained kernel branches significantly reduces ongoing risk for patched systems. Priority should be highest for internet-facing SMB services and environments where SMB Direct performance features are enabled. The pre-authentication nature makes this particularly dangerous as it requires no valid credentials to trigger.

Exploit ScenarioDerived

An external attacker scans for Linux servers with ksmbd SMB Direct services exposed on port 5445/TCP. Without requiring authentication, the attacker initiates an SMB Direct negotiation and sends a specially crafted negotiation request with preferred_send_size set to 0x80000000. The signedness bug causes the kernel to accept this value as the maximum receive size. The attacker immediately follows with a second SMB Direct message containing 2000 bytes of payload data, significantly exceeding the corrupted size limit. This triggers a heap buffer overflow in kernel space, overwriting adjacent memory structures. By carefully crafting the overflow payload with ROP chains or kernel exploit primitives, the attacker achieves arbitrary code execution in kernel context, gaining complete control over the system. Public exploit code availability is unknown based on provided data, but the detailed vulnerability description provides sufficient information for skilled attackers to develop reliable exploits.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 08, 2026

Heap buffer overflow in Linux kernel ksmbd SMB Direct negotiation allows remote unauthenticated attackers to achieve arbitrary code execution. The vulnerability stems from a signedness bug where a malicious SMB Direct client sends a crafted preferred_send_size value (0x80000000) that bypasses minimum size validation, then follows with an oversized message (>1420 bytes) triggering heap corruption. With CVSS 9.8 critical severity and network-accessible attack vector requiring no authentication, this represents a severe pre-auth remote code execution risk. EPSS score of 0.02% suggests limited observed exploitation activity. Vendor patches available across multiple stable kernel branches.

RemediationAI

Apply vendor-supplied patches immediately for all systems running ksmbd with SMB Direct support. Fixed kernel versions include commits ceae058eb707ddd0d68f0872f9d9f23b7c30c37b, 55abc475d096da4a5356b6efb0cfdc6156bc1550, and 6b4f875aac344cdd52a1f34cc70ed2f874a65757 available in stable branches 6.18.16, 6.19.6, and 7.0. Update to latest stable kernel version for your distribution via standard package management. Patches available at https://git.kernel.org/stable/c/ceae058eb707ddd0d68f0872f9d9f23b7c30c37b and related commit URLs. For systems requiring SMB services but unable to patch immediately, disable ksmbd module entirely and migrate to userspace Samba server (rmmod ksmbd, blacklist ksmbd in modprobe configuration). If SMB Direct/RDMA features are not required, disable RDMA support in ksmbd configuration as compensating control, though this reduces performance for legitimate high-speed storage workloads. Restrict network access to SMB ports (445/TCP, 5445/TCP for ksmbd) to trusted networks only via firewall rules, recognizing this only mitigates internet-based attacks and does not protect against insider threats or lateral movement scenarios. Monitor kernel logs for ksmbd-related crashes or memory corruption indicators.

Affected VersionsENISA

Linux patch: 6.19.6
Linux patch: 0
Linux patch: 6.18.16
Linux 0626e6641f6b467447c81dd7678a69c66f7746cf <ceae058eb707ddd0d68f0872f9d9f23b7c30c37b
Linux patch: 7.0
Linux 0626e6641f6b467447c81dd7678a69c66f7746cf <55abc475d096da4a5356b6efb0cfdc6156bc1550
Linux 0626e6641f6b467447c81dd7678a69c66f7746cf <6b4f875aac344cdd52a1f34cc70ed2f874a65757
Linux 5.15

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

The ksmbd module is Linux kernel's in-kernel SMB3 server implementation, providing native Windows file sharing support. The vulnerability exists in the SMB Direct (RDMA) code path within smb_direct_prepare_negotiation(), which handles SMB over RDMA transport negotiation. The function incorrectly casts unsigned 32-bit integers (u32) from network-controlled fields to signed integers before comparison using min_t(int, ...). In C, when 0x80000000 is interpreted as a signed 32-bit integer, it becomes -2147483648, causing it to pass minimum size validation. This signedness error (related to CWE-195 Signed to Unsigned Conversion Error and CWE-681 Incorrect Conversion between Numeric Types) allows an attacker to set an artificially small maximum receive size, then send a message exceeding allocated buffer bounds. The heap overflow occurs because subsequent message processing trusts the corrupted size value without re-validation. This affects the kernel's memory management subsystem directly, making it a critical pre-authentication attack surface.

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 (Linux) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SUSE CRITICAL

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

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

Lifecycle Timeline

3
CVSS changed
May 08, 2026 - 13:22 NVD
9.8 (CRITICAL)
Patch available
May 06, 2026 - 13:32 EUVD
CVE Published
May 06, 2026 - 11:27 nvd
CRITICAL 9.8

DescriptionCVE.org

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

ksmbd: fix signededness bug in smb_direct_prepare_negotiation()

smb_direct_prepare_negotiation() casts an unsigned __u32 value from sp->max_recv_size and req->preferred_send_size to a signed int before computing min_t(int, ...). A maliciously provided preferred_send_size of 0x80000000 will return as smaller than max_recv_size, and then be used to set the maximum allowed alowed receive size for the next message.

By sending a second message with a large value (>1420 bytes) the attacker can then achieve a heap buffer overflow.

This fix replaces min_t(int, ...) with min_t(u32)

Executive ViewAI

Why It Matters

CVE-2026-43185 is a critical pre-authentication remote code execution vulnerability in Linux kernel ksmbd (SMB Direct protocol handler) affecting any system exposing SMB services. An unauthenticated attacker can remotely trigger arbitrary code execution through a heap buffer overflow, compromising server confidentiality, integrity, and availability without requiring valid credentials or user interaction. Organizations running vulnerable Linux kernels with SMB Direct enabled must prioritize patching to prevent immediate compromise of file servers, NAS appliances, and domain controllers.

Business Impact: Severe
Compensating Controls

Patch vendor-released kernel updates immediately. Interim mitigations pending patch deployment: (1) Disable SMB Direct at the kernel module level or via kernel parameter if operationally feasible; (2) Restrict network access to SMB ports (445/TCP) using firewall rules to only trusted internal subnets; (3) Monitor ksmbd process logs and kernel messages for anomalous SMB Direct negotiation attempts; (4) Consider disabling SMB service entirely on systems that do not require file-sharing functionality.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
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: Critical
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

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