Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to ksmbd SMB session
-
DeliveryIssue concurrent TREE_CONNECT and LOGOFF
-
ExploitWin race freeing tree connection
-
ExecutionHandler dereferences freed object
-
ImpactKernel 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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)AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
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
Lifecycle Timeline
4DescriptionCVE.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.
Articles & Coverage 1
Executive ViewAI
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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 |
| SUSE Linux Enterprise High Availability Extension 16.0 | Affected |
| SUSE Linux Enterprise High Availability Extension 16.1 | Affected |
| SUSE Linux Enterprise High Availability Extension 16.1 | Affected |
| SUSE Linux Enterprise Micro 5.3 | Not-Affected |
| SUSE Linux Enterprise Micro 5.3 | Not-Affected |
| SUSE Linux Enterprise Micro 5.3 | Not-Affected |
| SUSE Linux Enterprise Micro 5.3 | Not-Affected |
| SUSE Linux Enterprise Micro 5.4 | Not-Affected |
| SUSE Linux Enterprise Micro 5.4 | Not-Affected |
| SUSE Linux Enterprise Micro 5.4 | Not-Affected |
| SUSE Linux Enterprise Micro 5.4 | Not-Affected |
| SUSE Linux Enterprise Micro 5.5 | Not-Affected |
| SUSE Linux Enterprise Micro 5.5 | Not-Affected |
| SUSE Linux Enterprise Micro 5.5 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Micro 6.0 | Not-Affected |
| SUSE Linux Micro 6.0 | Not-Affected |
| SUSE Linux Micro 6.0 | Not-Affected |
| SUSE Linux Micro 6.1 | Not-Affected |
| SUSE Linux Micro 6.1 | Not-Affected |
| SUSE Linux Micro 6.1 | Not-Affected |
| SUSE Linux Micro 6.2 | Affected |
| SUSE Linux Micro 6.2 | Affected |
| SUSE Linux Micro Extras 6.0 | Not-Affected |
| SUSE Linux Micro Extras 6.0 | Not-Affected |
| SUSE Linux Micro Extras 6.0 | Not-Affected |
| SUSE Linux Micro Extras 6.1 | Not-Affected |
| SUSE Linux Micro Extras 6.1 | Not-Affected |
| SUSE Real Time Module 15 SP7 | Not-Affected |
| openSUSE Leap 16.0 | Affected |
| SUSE Linux Enterprise High Performance Computing 12 SP5 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP6 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP6 | Not-Affected |
| SUSE Linux Enterprise Server 11 SP4 LTSS EXTREME CORE | Not-Affected |
| SUSE Linux Enterprise Server 11 SP4 LTSS EXTREME CORE | Not-Affected |
| SUSE Linux Enterprise Server 12 SP5 | Not-Affected |
| SUSE Linux Enterprise Server 12 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 12 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP6 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Not-Affected |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | Not-Affected |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Not-Affected |
| SUSE CaaS Platform 4.0 | Not-Affected |
| SUSE Enterprise Storage 6 | Not-Affected |
| SUSE Enterprise Storage 7 | Not-Affected |
| SUSE Enterprise Storage 7.1 | Not-Affected |
| SUSE Linux Enterprise Desktop 11 SP4 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP6 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Not-Affected |
| SUSE Linux Enterprise Micro 5.0 | Not-Affected |
| SUSE Linux Enterprise Micro 5.1 | Not-Affected |
| SUSE Linux Enterprise Micro 5.2 | Not-Affected |
| SUSE Linux Enterprise Micro 5.2 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Server 11 SP4 | Not-Affected |
| SUSE Linux Enterprise Server 11 SP4-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP1-BCL | Not-Affected |
| SUSE Linux Enterprise Server 15 SP1-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP1-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP2-BCL | Not-Affected |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP3-BCL | Not-Affected |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Not-Affected |
| SUSE Manager Proxy 4.0 | Not-Affected |
| SUSE Manager Proxy 4.1 | Not-Affected |
| SUSE Manager Proxy 4.2 | Not-Affected |
| SUSE Manager Proxy 4.3 | Not-Affected |
| SUSE Manager Proxy LTS 4.3 | Not-Affected |
| SUSE Manager Retail Branch Server 4.0 | Not-Affected |
| SUSE Manager Retail Branch Server 4.1 | Not-Affected |
| SUSE Manager Retail Branch Server 4.2 | Not-Affected |
| SUSE Manager Retail Branch Server 4.3 | Not-Affected |
| SUSE Manager Retail Branch Server LTS 4.3 | Not-Affected |
| SUSE Manager Server 4.0 | Not-Affected |
| SUSE Manager Server 4.1 | Not-Affected |
| SUSE Manager Server 4.2 | Not-Affected |
| SUSE Manager Server 4.3 | Not-Affected |
| SUSE Manager Server LTS 4.3 | Not-Affected |
| SUSE Real Time Module 15 SP4 | Not-Affected |
| SUSE Real Time Module 15 SP5 | Not-Affected |
| openSUSE Leap 15.3 | Not-Affected |
| openSUSE Leap 15.4 | Not-Affected |
| openSUSE Leap 15.4 | Not-Affected |
| openSUSE Leap 15.5 | Not-Affected |
| openSUSE Leap 15.5 | Not-Affected |
| openSUSE Leap 15.6 | Not-Affected |
EUVD-2026-80309
GHSA-29wc-2986-775f
NVD
CVE.org
EPSS
VulDB
Exploit-DB