Skip to main content

Linux ksmbd EUVDEUVD-2026-80309

| CVE-2026-89788 CRITICAL
2026-09-16 Linux GHSA-29wc-2986-775f
Critical
Disputed · 9.8 Vendor: Linux
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to ksmbd SMB session
  2. Delivery
    Issue concurrent TREE_CONNECT and LOGOFF
  3. Exploit
    Win race freeing tree connection
  4. Execution
    Handler dereferences freed object
  5. Impact
    Kernel UAF crash or code execution

Vulnerability Assessment

Exploitation Conditions

Exploitation requires the target Linux host to be running the ksmbd in-kernel SMB3 server (CONFIG_SMB_SERVER) with an active export, and the attacker must be able to establish an SMB2 session - so authentication is required unless the share permits guest/null sessions. The concrete trigger is a race: an SMB2 TREE_CONNECT must be in-flight in smb2_tree_connect() at the same moment a concurrent session LOGOFF erases the tree-connection xarray entry and drops its reference, freeing the object before the handler finishes using it. Limiting factors: ksmbd is not enabled by default (most Linux SMB servers run userspace Samba instead), exploitation depends on winning a tight concurrency window (making reliable exploitation hard and non-automatable), and a valid session is normally needed to reach the tree-connect code path.

Impact

The input CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H = 9.8) is the Linux kernel CNA's characteristic auto-assigned maximal score and is over-stated for this bug. The vulnerability is a use-after-free in ksmbd's smb2_tree_connect() triggered by a race between publishing a new tree connection and a concurrent session LOGOFF freeing it. Two facts contradict the 9.8: (1) an SMB2 TREE_CONNECT is only reachable after a client has completed session setup, so exploitation requires an established SMB session (PR:L, not PR:N) unless the export permits guest/null sessions; and (2) it is a narrow concurrency race requiring precise timing to win against logoff teardown (AC:H, not AC:L). Realistically this is closer to CVSS ~7.5. Supporting signals reinforce lower urgency: EPSS is only 0.19% (9th percentile), there is no CISA KEV listing, and no public exploit code is referenced. SSVC-style read: exploitation status is 'none' (no public exploit identified), automatable is 'no' (requires a valid session plus a timing race, not a simple scan-and-hit), technical impact is 'total' (kernel-context memory corruption from a UAF, potentially escalatable to code execution or at minimum a crash/DoS). Net: a legitimately serious in-kernel memory-corruption bug that warrants prompt patching where ksmbd is enabled, but NOT a drop-everything 9.8 mass-exploitation threat. The headline score and 'Information Disclosure' tag both mischaracterize it.

Exploit ScenarioDerived

An attacker with (or able to obtain) valid credentials to a Linux host running the ksmbd in-kernel SMB server opens a session and issues an SMB2 TREE_CONNECT while concurrently issuing a session LOGOFF, racing the handler so the tree-connection object is freed by logoff cleanup while smb2_tree_connect() still references it. Winning the race yields a kernel use-after-free that can crash the server (DoS) or, with heap grooming, be steered toward privilege escalation. No public exploit code is identified at time of analysis, and the tight timing window makes reliable exploitation non-trivial.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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 – Sep 16, 2026

A use-after-free in the Linux kernel's in-kernel ksmbd SMB3 server allows an authenticated attacker with an established SMB2 session to race an SMB2 TREE_CONNECT request against a concurrent session LOGOFF, so the tree-connection object is freed while smb2_tree_connect() is still initializing it and building the response. Successful triggering yields memory corruption in kernel context that can be leveraged for both confidentiality and integrity impact (KASAN reports slab-use-after-free at fs/smb/server/smb2pdu.c:2872). The CVE carries a 9.8 base score from the kernel CNA, but the assessed vector is AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H, reflecting that exploitation requires a valid session and precise timing; EPSS is low (0.19%, 9th percentile), there is no CISA KEV listing, and no public exploit code has been identified at time of analysis.

RemediationAI

Vendor-released patches are available: the fix commits https://git.kernel.org/stable/c/4e30fbd26e84efa2e5cbec4eb11e126ac0c79313 and https://git.kernel.org/stable/c/b5ec6c462aab1062cf5d1e667ba7c6442f737055 should be applied via the corresponding Linux stable updates (EUVD version data references Linux 7.2.6 and 7.3-rc2, with backports for the 5.15.x, 6.1.x and 6.6.x stable lines); confirm the running kernel package version contains the fix and reboot, since ksmbd runs in-kernel. If patching must be deferred, the highest-value compensating control is to stop exposing ksmbd entirely: unload the ksmbd module (and ensure CONFIG_SMB_SERVER is not built in or is not loaded), or migrate the share to userspace Samba - the trade-off is that in-kernel performance and configuration benefits are lost and Samba must be independently hardened. Restricting SMB2 access to trusted source addresses via firewall rules and the ksmbd subnet allow-list reduces the attack surface but does not eliminate the race for any permitted client. Where ksmbd must stay enabled, disable guest/anonymous and null-session access so a valid credential is required (raising the bar from PR:N to PR:L and addressing the assessed prerequisite), and reduce concurrent LOGOFF/TREE_CONNECT churn from untrusted clients by limiting session lifetimes and connection counts; note that none of these workarounds remove the underlying use-after-free and all have operational side effects on legitimate SMB clients. Review the vendor advisory references at https://nvd.nist.gov/vuln/detail/CVE-2026-89788 and https://vuldb.com/vuln/405557 for any updated guidance.

Affected VersionsENISA

Linux 6.6
Linux 5.15.145 <5.16
Linux 33b235a6e6ebe0f05f3586a71e8d281d00f71e2e <b5ec6c462aab1062cf5d1e667ba7c6442f737055
Linux patch: 7.3-rc2
Linux 7b58ee8d0b91359554cf219cd4f33872ea2afd66
Linux 33b235a6e6ebe0f05f3586a71e8d281d00f71e2e <4e30fbd26e84efa2e5cbec4eb11e126ac0c79313
Linux 6.1.71 <6.2
Linux patch: 0
Linux dd45db4d9bbc8f122a9b4db5ce94ae29fcf03d3c
Linux patch: 7.2.6

Affected Packages

euvd linux fix: 5.16, 6.2

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

ksmbd is the in-kernel SMB3 server built behind CONFIG_SMB_SERVER, an alternative to userspace Samba. When a client issues SMB2 TREE_CONNECT, the handler in fs/smb/server/smb2pdu.c calls ksmbd_tree_conn_connect(), which allocates a tree-connection object, publishes it into the session's xarray (sess->tree_conns) with a single reference, and returns the pointer; the handler then continues to initialize that object and construct the response. Because publication happens before initialization completes, a concurrent session LOGOFF can walk sess->tree_conns, xa_erase() the entry, and drop the reference - freeing the object while the connect handler still dereferences it. The root cause is a use-after-free (memory-safety class; no CWE was supplied in the source data) arising from an unbalanced reference-count/lifetime protocol across three teardown paths (normal error cleanup, SMB2 TREE_DISCONNECT, and LOGOFF). The upstream fix takes a second reference immediately after xa_store() succeeds while still holding tree_conns_lock - one reference owned by the xarray entry, one by the creating handler - claims the disconnected state and erases the exact entry atomically, and fails the connect if logoff removed the entry before initialization completed instead of marking a detached object TREE_CONNECTED. The affected artifact is the Linux kernel (CPE cpe:2.3:a:linux:linux), specifically builds with ksmbd enabled; note that ksmbd is commonly packaged as a module and is not enabled by default on most mainstream distributions.

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

Sources disagree (Medium–Critical)
Vendor (Linux) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

Reaching TREE_CONNECT needs an established SMB session (PR:L) and the flaw is a timing race against logoff (AC:H); kernel UAF gives total C/I/A impact within an unchanged scope.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat 5.5 MEDIUM

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

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

4
CVSS changed
Sep 16, 2026 - 15:22 NVD
9.8 (CRITICAL)
Patch available
Sep 16, 2026 - 10:02 EUVD
CVE Published
Sep 16, 2026 - 08:48 cve.org
CRITICAL 9.8
CVE Published
Sep 16, 2026 - 08:48 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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

ksmbd: fix tree connection use-after-free in smb2_tree_connect()

ksmbd_tree_conn_connect() publishes a new tree connection in sess->tree_conns with a single reference and returns its pointer to smb2_tree_connect(). The handler continues to initialize the object and build the response after publication. A concurrent session logoff can erase the connection and drop that reference, freeing the object while the handler still uses it.

BUG: KASAN: slab-use-after-free in smb2_tree_connect+0xe3d/0xf90 smb2_tree_connect (fs/smb/server/smb2pdu.c:2872) handle_ksmbd_work process_one_work worker_thread kthread

After xa_store() succeeds, take a second reference before releasing tree_conns_lock. The original reference belongs to the xarray entry and the second belongs to the creating smb2_tree_connect() handler.

Keep the references balanced in every path:

  • On normal exit or an error after publication, smb2_tree_connect()

drops its creator reference. Error cleanup also calls ksmbd_tree_conn_disconnect(), which drops the xarray reference only if it removes the exact entry.

  • SMB2 TREE_DISCONNECT uses the same helper to remove the entry and drop

its xarray reference. The request's existing lookup reference remains owned by the request and is released by the existing cleanup.

  • Session LOGOFF removes each entry and drops its xarray reference. If

it wins the race, later cleanup sees that the entry is gone and does not drop that reference again.

To enforce this ownership, claim the disconnected state and erase the exact entry atomically under tree_conns_lock. This guarantees one drop for the xarray reference and one drop by each in-flight user, regardless of which teardown path wins. If logoff removes the entry before initialization completes, fail the connect instead of marking the detached object TREE_CONNECTED.

Executive ViewAI

Why It Matters

A memory-corruption flaw in the Linux kernel's built-in ksmbd SMB3 file-sharing service can be triggered by a user who already holds a valid SMB session, potentially handing an attacker control over kernel memory on affected file servers and NAS appliances. Exposure is concentrated in organizations that run Linux-based SMB shares reachable by internal or external accounts, including any low-privilege or compromised credentials. Exploitation requires winning a narrow timing race and no public exploit code has been identified at time of analysis, so this is a patch-on-schedule item rather than an emergency - but the kernel-level confidentiality and integrity impact justifies prompt remediation.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
High
Linux kernel is ubiquitous but the ksmbd in-kernel SMB server is an optional, non-default module
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Vendor StatusVendor

SUSE

Severity: Important
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 Affected

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