Skip to main content

Linux kernel ksmbd EUVDEUVD-2026-26520

| CVE-2026-31711 HIGH
Memory Leak (CWE-401)
2026-05-01 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.5
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. Recon
    Scan for TCP 445 ksmbd listeners
  2. Delivery
    Open multiple connections with max RFC1002 lengths
  3. Exploit
    Induce memory pressure
  4. Install
    Trigger alloc_transport() failures
  5. C2
    Leak active_num_conn slots
  6. Execute
    Exhaust max_connections threshold
  7. Impact
    Deny all new SMB connections

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

Remote network access to TCP port 445 on a Linux system running the ksmbd kernel module (not the userspace Samba daemon). No authentication or special privileges required - attack is pre-authentication. Exploitation depends on triggering alloc_transport() memory allocation failures during connection setup, which can occur naturally under memory pressure or be artificially induced by an attacker holding open multiple connections with large RFC1002 stream lengths (up to MAX_STREAM_PROT_LEN, 0x00FFFFFF bytes). The ksmbd module must be loaded and actively listening for SMB connections. Default ksmbd configuration with standard max_connections settings (typically 10-100 connections) is exploitable. Systems using userspace Samba instead of in-kernel ksmbd are not affected. Limiting factor: Requires cumulative allocation failures equal to max_connections parameter before service denial occurs - single failures cause gradual degradation rather than immediate outage. Natural memory pressure on loaded hosts can trigger the condition without attacker action, making this partly a reliability issue as well as a security vulnerability.

Impact

This represents a moderate real-world risk despite the high CVSS 7.5 score. The CVSS vector (AV:N/AC:L/PR:N/UI:N) correctly identifies network-accessible, low-complexity, unauthenticated attack surface, but the impact is purely availability (A:H) with no confidentiality or integrity compromise. The EPSS score of 0.11% (30th percentile) indicates very low observed exploitation probability in the wild, and absence from CISA KEV confirms no confirmed active exploitation. However, the attack is trivially executable - simply connecting to TCP port 445 during memory pressure conditions causes permanent service degradation. The vulnerability is concerning for infrastructure running ksmbd in production (SMB file sharing servers) because: (1) the trigger is reachable pre-authentication, (2) cumulative failures from legitimate workload spikes can organically exhaust the pool without malicious intent, (3) recovery requires module reload or system reboot, and (4) attackers can artificially create memory pressure by holding connections with large stream lengths. Prioritization depends heavily on whether ksmbd is actually deployed - many Linux environments use Samba (userspace) instead. For systems running ksmbd with external network exposure, this warrants prompt patching; for unexposed or non-ksmbd systems, priority is lower despite the CVSS score.

Exploit ScenarioDerived

An unauthenticated remote attacker scans for Linux systems with TCP port 445 open running ksmbd. The attacker opens multiple TCP connections to port 445, each sending initial SMB negotiation packets with maximum RFC1002 stream lengths (0x00FFFFFF bytes, ~16MB) but never completing the handshake, holding the connections open to create sustained memory pressure on the target. Under memory pressure, alloc_transport() begins failing intermittently during legitimate and malicious connection attempts. Each allocation failure permanently leaks one active_num_conn counter slot without decrementing. After sufficient cumulative failures (either from the attacker's connections or organic load), the leaked counter reaches max_connections threshold. All subsequent SMB connection attempts from any client are immediately rejected with 'Limit the maximum number of connections' error, rendering the SMB service unavailable until the ksmbd module is reloaded or the system reboots. The attack requires no authentication, special privileges, or user interaction.

Act Now Prioritize within 24-48h. Why: Active threat signals + CRITICAL/HIGH severity.
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 03, 2026

Resource exhaustion in Linux kernel ksmbd server allows remote unauthenticated attackers to permanently deny SMB service by consuming connection slots through forced allocation failures. The vulnerability leaks active_num_conn counter values when alloc_transport() fails during TCP connection setup on port 445, permanently consuming slots from the max_connections pool until module reload. Attackers can accelerate exhaustion by holding open connections with large RFC1002 lengths (up to 16MB) to trigger memory pressure. EPSS score of 0.11% suggests low observed exploitation probability, and no public exploit or CISA KEV listing exists. Vendor patches available for kernel versions 6.6.136, 6.12.84, 7.0.2, and 7.1-rc1.

RemediationAI

Upgrade the Linux kernel to a patched version: 6.6.136 or later in the 6.6.x series, 6.12.84 or later in the 6.12.x series, 7.0.2 or later in the 7.0.x series, or 7.1-rc1 or later in mainline. Patch commit references are available at https://git.kernel.org/stable/c/283027aa93380380a0994f35dde3ec95318f2654 (6.6), https://git.kernel.org/stable/c/295a9fc6789d1011c36ded9f0f2907bb34fa0de4 (6.12), https://git.kernel.org/stable/c/6551300dc452ac16a855a83dbd1e74899542d3b3 (7.0), and https://git.kernel.org/stable/c/97f8d2648ef4871e4cd335e2d769cb40054a6772 (7.1). If immediate patching is not feasible, implement these compensating controls with noted trade-offs: (1) Unload the ksmbd module and use userspace Samba instead (eliminates vulnerability but requires service migration and configuration changes), (2) Restrict TCP port 445 access to trusted networks only via firewall rules (reduces attack surface but may break legitimate remote access), (3) Increase max_connections parameter in ksmbd configuration to provide headroom against organic leaks (delays exhaustion but does not prevent it and increases memory footprint), or (4) Implement connection rate limiting at the network edge to slow deliberate exhaustion attempts (mitigates active attacks but does not address organic allocation failures). Note that temporary mitigation via ksmbd module reload clears the leaked counter but requires service interruption and does not prevent recurrence.

Affected VersionsENISA

Linux patch: 7.1-rc1
Linux 0d0d4680db22eda1eea785c47bbf66a9b33a8b16 <97f8d2648ef4871e4cd335e2d769cb40054a6772
Linux patch: 6.6.136
Linux patch: 6.12.84
Linux 4210c3555db4b38bade92331b153e583261f05f9
Linux patch: 0
Linux 0d0d4680db22eda1eea785c47bbf66a9b33a8b16 <fb48185bcd946d42de7017cf27f912f8ab26acf0
Linux 6.2
Linux 0d0d4680db22eda1eea785c47bbf66a9b33a8b16 <295a9fc6789d1011c36ded9f0f2907bb34fa0de4
Linux patch: 6.18.25
Linux 0d0d4680db22eda1eea785c47bbf66a9b33a8b16 <283027aa93380380a0994f35dde3ec95318f2654
Linux d5d7847e57ac69fa99c18b363a34419bcdb5a281
Linux 0d0d4680db22eda1eea785c47bbf66a9b33a8b16 <6551300dc452ac16a855a83dbd1e74899542d3b3
Linux patch: 7.0.2

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 component implements an in-kernel SMB server for Linux, introduced in kernel 5.15. This vulnerability affects the TCP transport layer initialization in ksmbd_tcp_new_connection() function. The code path involves ksmbd_kthread_fn() pre-incrementing the active_num_conn atomic counter before calling ksmbd_tcp_new_connection(). When alloc_transport() returns NULL due to memory allocation failure, the function exits with -ENOMEM without decrementing the counter, creating a permanent leak. The active_num_conn counter gates new connections against server_conf.max_connections; once leaked slots equal the configured maximum, atomic_inc_return() rejects all subsequent connections. RFC1002 is the NetBIOS session service protocol used by SMB, with MAX_STREAM_PROT_LEN defining the maximum message size (0x00FFFFFF bytes, approximately 16MB). The vulnerability mirrors a similar issue addressed in commit 77ffbcac4e56 for the kthread_run() failure path but was missed in the earlier alloc_transport() error handling.

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.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
SUSE HIGH

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

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

Lifecycle Timeline

4
CVSS changed
May 03, 2026 - 07:22 NVD
7.5 (HIGH)
Patch released
May 03, 2026 - 07:16 nvd
Patch available
Patch available
May 01, 2026 - 15:02 EUVD
CVE Published
May 01, 2026 - 14:16 nvd
HIGH 7.5

DescriptionCVE.org

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

smb: server: fix active_num_conn leak on transport allocation failure

Commit 77ffbcac4e56 ("smb: server: fix leak of active_num_conn in ksmbd_tcp_new_connection()") addressed the kthread_run() failure path. The earlier alloc_transport() == NULL path in the same function has the same leak, is reachable pre-authentication via any TCP connect to port 445, and was empirically reproduced on UML (ARCH=um, v7.0-rc7): a small number of forced allocation failures were sufficient to put ksmbd into a state where every subsequent connection attempt was rejected for the remainder of the boot.

ksmbd_kthread_fn() increments active_num_conn before calling ksmbd_tcp_new_connection() and discards the return value, so when alloc_transport() returns NULL the socket is released and -ENOMEM returned without decrementing the counter. Each such failure permanently consumes one slot from the max_connections pool; once cumulative failures reach the cap, atomic_inc_return() hits the threshold on every subsequent accept and every new connection is rejected. The counter is only reset by module reload.

An unauthenticated remote attacker can drive the server toward the memory pressure that makes alloc_transport() fail by holding open connections with large RFC1002 lengths up to MAX_STREAM_PROT_LEN (0x00FFFFFF); natural transient allocation failures on a loaded host produce the same drift more slowly.

Mirror the existing rollback pattern in ksmbd_kthread_fn(): on the alloc_transport() failure path, decrement active_num_conn gated on server_conf.max_connections.

Repro details: with the patch reverted, forced alloc_transport() NULL returns leaked counter slots and subsequent connection attempts -- including legitimate connects issued after the forced-fail window had closed -- were all rejected with "Limit the maximum number of connections". With this patch applied, the same connect sequence produces no rejections and the counter cycles cleanly between zero and one on every accept.

Executive ViewAI

Why It Matters

CVE-2026-31711 is a denial-of-service vulnerability in the Linux kernel ksmbd SMB server that allows unauthenticated remote attackers to exhaust connection slots and permanently disable SMB services until the module is reloaded. Organizations running vulnerable Linux kernel versions on systems exposing SMB services (port 445) risk business disruption to file sharing and network access, with recovery requiring manual intervention. The 0.11% EPSS score indicates low current exploitation likelihood, but the simplicity of the attack and lack of authentication requirements warrant prompt patching.

Business Impact: Medium
Compensating Controls

Apply vendor patch. Interim mitigations if patching is delayed: (1) Restrict network access to port 445 at firewall/security group level to trusted IP ranges only; (2) Implement rate limiting on TCP connection attempts to port 445; (3) Disable ksmbd if SMB service is not required; (4) Monitor system logs for connection exhaustion patterns and trigger module reload procedures as a temporary remediation.

Threat Intelligence Overview

EPSS Score
0.1%
Top 70% exploitable
Threat Intel
1
1 sources
Data Quality
7 sources
Confidence: High

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 Yes
Deciding rule
Active threat signals + CRITICAL/HIGH 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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: +10
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: High
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

Threat IntelligenceMISP

CISA Advisories
Sources: Microsoft MSRC, CISA (public domain)

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