Skip to main content

Linux Kernel ksmbd CVE-2025-68246

HIGH
2025-12-16 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. Access
    Reach ksmbd host on TCP/445
  2. Delivery
    Open SMB connections from one IP
  3. Exploit
    Exceed per-IP connection limit
  4. Execution
    Rejection path leaks accepted socket
  5. Persist
    Repeat to exhaust kernel sockets
  6. Impact
    SMB service DoS / host instability

Vulnerability Assessment

Exploitation Conditions

Exploitation requires that the target run the Linux kernel ksmbd in-kernel SMB server (CONFIG_SMB_SERVER enabled) and be network-reachable on TCP/445, and that ksmbd's per-IP connection limit be configured/reached - the leak is triggered specifically on the code path where an accepted connection is rejected for exceeding the per-IP limit. No authentication or user interaction is needed (PR:N/UI:N). The principal limiting factor is deployment: hosts using user-space Samba rather than ksmbd, or with 445 firewalled from untrusted sources, are not exposed; the impact is availability degradation only (C:N/I:N), not code execution or data disclosure.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, base 7.5) describes a network-reachable, low-complexity, unauthenticated availability-only impact, which is internally consistent for a DoS resource leak. However, real-world priority is tempered by several factors: EPSS is very low (0.16%), there is no CISA KEV listing and no public exploit identified, and exploitation is only possible where ksmbd is actually enabled and exposed - a comparatively narrow deployment surface versus user-space Samba. A conflict exists in the intelligence: the input Tags label this 'Information Disclosure,' but the CVSS vector shows C:N/I:N/A:H (pure availability, no confidentiality), and the description describes a socket leak DoS - the 'Information Disclosure' tag appears mislabeled and should be treated as availability/DoS. Net assessment: a genuine but lower-tier priority - real for internet- or LAN-exposed ksmbd hosts, but not a widespread mass-exploitation threat.

Exploit ScenarioDerived

An attacker with network reachability to a ksmbd host on TCP/445 scripts a loop that repeatedly opens SMB connections from a single IP past the configured per-IP connection limit; each rejected attempt leaks one kernel socket. Sustained over time, kernel socket/memory exhaustion degrades or crashes the SMB service and can destabilize the host. No public proof-of-concept is identified, but the low attack complexity (AC:L) and lack of authentication make weaponization trivial to script.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 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

Remote unauthenticated denial of service in the Linux kernel's ksmbd in-kernel SMB server allows an attacker to exhaust kernel socket resources by repeatedly tripping the per-IP connection limit. When ksmbd_kthread_fn() rejects a connection that exceeds the per-IP limit, it sets ret = -EAGAIN and continues the accept loop without releasing the just-accepted socket, leaking one socket per rejected attempt from a single source IP. This is a resource-leak DoS with no public exploit identified at time of analysis and a low EPSS score (0.16%, 6th percentile).

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the kernel update that backports the fix that releases client_sk before continuing the accept loop, available via the stable commits at https://git.kernel.org/stable/c/35521b5a7e8a184548125f4530552101236dcda1 and its companions (4587a7826be1ae0190dba10ff70b46bb0e3bc7d3, 5746b2a0f5eb3d79667b3c51fe849bd62464220e, 7a3c7154d5fc05956a8ad9e72ecf49e21555bfca, 98a5fd31cbf72d46bf18e50b3ab0ce86d5f319a9). Until distro kernels ship the fix, the most effective compensating control is to avoid exposing ksmbd to untrusted networks: restrict TCP/445 to trusted management or client subnets via host/network firewall (trade-off: legitimate remote SMB clients on other networks lose access), or where ksmbd is not required, disable/unload the ksmbd module and use user-space Samba instead (trade-off: performance and feature differences). Rate-limiting new inbound 445 connections per source IP at an upstream firewall slows resource exhaustion but does not fully close the leak.

Affected ProductsAI

The affected component is the ksmbd in-kernel SMB server within the mainline and stable Linux kernel trees (present since 5.15). No CPE strings were provided in the input, so exact vulnerable version ranges are not enumerated by NVD here; the fix is distributed across multiple stable branches as evidenced by the five kernel.org stable commits (35521b5a7e8a, 4587a7826be1, 5746b2a0f5eb, 7a3c7154d5fc, 98a5fd31cbf7). Any kernel built with CONFIG_SMB_SERVER (ksmbd) enabled and serving SMB, prior to picking up these backports, should be considered affected. Distribution-specific fixed package versions should be confirmed against each vendor's kernel advisory.

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

The flaw resides in ksmbd, the kernel-space SMB3 file server introduced in Linux 5.15 as a higher-performance alternative to user-space Samba. It listens on TCP/445 and spawns a kernel thread (ksmbd_kthread_fn) that accepts inbound connections. ksmbd enforces a per-IP connection cap to limit abuse; when that cap is exceeded the accept loop bails out with -EAGAIN but fails to call the socket-release path (sock_release/ksmbd free of client_sk) on the socket it already accepted. The upstream fix releases client_sk before continuing the loop. The root cause is a missing-resource-release / memory (socket) leak, corresponding to CWE-772 (Missing Release of Resource after Effective Lifetime) / CWE-401, even though the NVD CWE field is unpopulated. Because the leaked object is a kernel socket structure, repeated triggering steadily consumes non-swappable kernel memory and socket handles.

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
vuln.today AI 7.5 HIGH

Remote, low-complexity, unauthenticated socket-leak reachable on TCP/445 with no user interaction; impact is availability exhaustion only, hence C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 4.7 MEDIUM
AV:L/AC:H/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
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

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

ksmbd: close accepted socket when per-IP limit rejects connection

When the per-IP connection limit is exceeded in ksmbd_kthread_fn(), the code sets ret = -EAGAIN and continues the accept loop without closing the just-accepted socket. That leaks one socket per rejected attempt from a single IP and enables a trivial remote DoS.

Release client_sk before continuing.

This bug was found with ZeroPath.

Executive ViewAI

Why It Matters

CVE-2025-68246 is a remotely-exploitable denial-of-service vulnerability in the Linux kernel's ksmbd SMB server (CVSS 7.5) that allows unauthenticated attackers to exhaust kernel socket resources and force SMB service unavailability. Organizations operating Linux-based file servers, NAS appliances, or infrastructure relying on ksmbd face business continuity risk. No vendor patch currently exists, requiring immediate deployment of network and configuration-level mitigations.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: enforce per-IP connection rate limiting at kernel parameters level, restrict SMB network access via firewall to trusted sources only (ports 445, 139), disable ksmbd if not operationally essential, implement continuous kernel resource monitoring for socket exhaustion detection, add rate limiting at network perimeter, and consider userspace Samba deployment as architectural alternative.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Low
in-kernel SMB server rarely enabled; most deployments use user-space Samba
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 No
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
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
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
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
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

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