Skip to main content

Linux ksmbd EUVDEUVD-2026-26526

| CVE-2026-31717 HIGH
2026-05-01 416baaa9-dc9f-4396-8d5f-8c081fb06d67
8.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
    Authenticate to ksmbd server
  2. Delivery
    Monitor for user disconnections
  3. Exploit
    Enumerate orphaned durable handles
  4. Execution
    Craft DHnC reconnect request with predicted persistent ID
  5. Persist
    Hijack handle without owner validation
  6. Impact
    Access files with original owner privileges

Vulnerability Assessment

Exploitation Conditions

Exploitation requires the target Linux system to be running the ksmbd kernel module (in-kernel SMB server) with SMB services exposed and accepting client connections. The attacker must possess valid SMB authentication credentials (any low-privilege user account on the server) as indicated by CVSS PR:L. Critically, exploitation depends on the existence of orphaned durable handles from disconnected SMB sessions-handles become orphaned when clients disconnect without properly closing files, typically due to network interruptions or client-side crashes. The attacker must successfully predict or enumerate the 128-bit persistent ID associated with the orphaned handle, which may involve brute-force attempts or protocol-level reconnaissance. No special ksmbd configuration, non-default features, or specific file types are required-all files opened with durable handle requests are vulnerable. The vulnerability affects default ksmbd configurations and is remotely exploitable over the network (AV:N) with low attack complexity (AC:L).

Impact

Real-world risk assessment shows moderate-to-low priority despite the CVSS 8.8 score. The CVSS vector (AV:N/AC:L/PR:L/UI:N) indicates network-exploitable conditions with low complexity, but the PR:L (low privileges required) constraint means attackers need existing SMB authentication. The 0.02% EPSS score (4th percentile) suggests security researchers and threat actors assess this as unlikely to be exploited at scale. No CISA KEV listing, no public POC, and no reports of active exploitation further reduce urgency. However, the impact remains severe in environments where ksmbd is deployed: successful handle hijacking grants complete file access (C:H/I:H/A:H) with the victim's permissions, potentially exposing sensitive data or enabling privilege escalation if the original handle owner had elevated rights. Primary risk factors are: (1) ksmbd adoption remains limited compared to Samba userspace implementations, reducing attack surface, (2) exploitation requires the attacker to predict 128-bit persistent IDs or wait for handle orphaning events, and (3) patches are widely available across supported kernel versions. Organizations running ksmbd in multi-tenant or untrusted-user environments face higher risk than single-user deployments.

Exploit ScenarioDerived

An attacker with valid low-privilege SMB credentials connects to a ksmbd-enabled Linux file server. They monitor for orphaned durable handles created when legitimate users disconnect unexpectedly (network interruptions, client crashes). The attacker crafts SMB2_CREATE requests with Durable Handle Reconnect (DHnC) flags, attempting to reconnect using predicted or brute-forced persistent IDs. Upon successful reconnection, ksmbd grants full access to the file with the original owner's permissions, bypassing ACL checks. The attacker reads sensitive files, modifies data, or maintains persistent access through the hijacked handle. No public POC exists, but the attack vector is straightforward for attackers familiar with SMB2 protocol internals and handle enumeration techniques.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
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 03, 2026

Authentication bypass in Linux kernel's ksmbd SMB server allows any authenticated SMB user to hijack orphaned durable file handles by predicting persistent IDs, enabling unauthorized file access with the original owner's privileges. The flaw violates MS-SMB2 requirements for SecurityContext validation during durable handle reconnection. Vendor patches are available across multiple stable kernel branches (6.18.25, 7.0.2, 7.1-rc1). EPSS exploitation probability is low at 0.02% (4th percentile), and no active exploitation or public POC has been identified. CVSS 8.8 reflects high impact but requires low-privilege authentication.

RemediationAI

Primary remediation is upgrading to patched kernel versions: 6.18.25, 7.0.2, or 7.1-rc1 and later from the stable kernel tree. Enterprise Linux users should apply distribution-specific updates when available through their vendor's security update channels (e.g., Red Hat RHSA, Ubuntu USN, SUSE SUSE-SU advisories). Organizations unable to immediately patch can implement these compensating controls: (1) Disable ksmbd module entirely if not required (rmmod ksmbd and blacklist in /etc/modprobe.d/), noting this eliminates all in-kernel SMB server functionality; (2) Restrict SMB client access to trusted networks only via firewall rules on TCP 445/139, accepting the trade-off of reduced remote accessibility; (3) Limit SMB user accounts to least-privilege access and implement strict file ACLs, reducing impact of handle hijacking but not preventing the vulnerability; (4) Monitor kernel logs for unusual SMB2_CREATE DHnC requests from unexpected users via auditd rules, though this provides detection not prevention. The durable handle timeout setting cannot mitigate this issue as orphaned handles remain vulnerable during their entire lifetime. Patching remains the only complete fix. Reference: https://git.kernel.org/stable/c/c908c853f304a4969b5aa10eba0b50350cc65b80

Affected VersionsENISA

Linux patch: 6.18.25
Linux patch: 7.0.2
Linux patch: 0
Linux c8efcc786146a951091588e5fa7e3c754850cb3c <49110a8ce654bbe56bef7c5e44cce31f4b102b8a
Linux c8efcc786146a951091588e5fa7e3c754850cb3c <00ce8d6789dae72d042a4522264964c72891ca37
Linux 8df4bcdb0a4232192b2445256c39b787d58ef14d
Linux c8efcc786146a951091588e5fa7e3c754850cb3c <c908c853f304a4969b5aa10eba0b50350cc65b80
Linux patch: 7.1-rc1
Linux 6.9

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

This vulnerability affects ksmbd, the in-kernel SMB3 server implementation introduced in Linux 5.15. Durable handles are an SMB2+ feature allowing clients to maintain file access across network interruptions or client reconnections. Per MS-SMB2 specification section 3.3.5.9, servers must verify that the SecurityContext (authentication credentials) of a reconnection request matches the original opener's context. The ksmbd implementation failed to capture and validate the original opener's UID, GID, and account name when processing SMB2_CREATE requests with Durable Handle Reconnect (DHnC) flags. This created a time-of-check-to-time-of-use (TOCTOU) race where orphaned handles (from disconnected sessions) remained accessible without ownership verification. The patch introduces a durable_owner structure to ksmbd_file and implements ksmbd_vfs_compare_durable_owner() for identity validation during handle reconnection attempts.

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 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/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
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
May 03, 2026 - 07:22 NVD
8.8 (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 8.8

DescriptionCVE.org

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

ksmbd: validate owner of durable handle on reconnect

Currently, ksmbd does not verify if the user attempting to reconnect to a durable handle is the same user who originally opened the file. This allows any authenticated user to hijack an orphaned durable handle by predicting or brute-forcing the persistent ID.

According to MS-SMB2, the server MUST verify that the SecurityContext of the reconnect request matches the SecurityContext associated with the existing open. Add a durable_owner structure to ksmbd_file to store the original opener's UID, GID, and account name. and catpure the owner information when a file handle becomes orphaned. and implementing ksmbd_vfs_compare_durable_owner() to validate the identity of the requester during SMB2_CREATE (DHnC).

Executive ViewAI

Why It Matters

CVE-2026-31717 is a high-severity authentication bypass in Linux kernel's ksmbd SMB server that allows authenticated users to hijack file handles and access files with elevated privileges, potentially exposing sensitive data across SMB-connected systems. Organizations running affected kernel versions face risk of unauthorized file access from internal or network-based SMB users, requiring prompt patching to maintain SMB server integrity.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigations pending vendor patching: restrict SMB access to trusted network segments using firewall rules, disable ksmbd durable handle feature if operationally feasible, and implement network segmentation to limit lateral movement from compromised SMB sessions.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Data Quality
6 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.0%
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
Open
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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: 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

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