Skip to main content

Linux ksmbd EUVDEUVD-2026-126195

| CVE-2026-99289 HIGH
2026-11-16 Linux GHSA-gp3g-wh36-rm2h
8.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to ksmbd SMB service
  2. Delivery
    Open non-durable handle with AppInstanceId
  3. Exploit
    Race supersede against session teardown
  4. Execution
    Write-lock via freed session pointer
  5. Impact
    Kernel slab use-after-free corruption

Vulnerability Assessment

Exploitation Conditions

Requires the optional ksmbd (in-kernel SMB3 server) module to be loaded and serving shares - this is NOT a default configuration on typical Linux systems, which limits exposure sharply. The attacker must hold an authenticated SMB session (PR:L) and use the AppInstanceId supersede feature: opening a non-durable handle with an AppInstanceId and triggering ksmbd_close_fd_app_instance_id() from a second session. Exploitation additionally requires winning a race against session teardown (ksmbd_session_destroy() freeing the session concurrently with the supersede), so it is timing-dependent and not guaranteed on a single attempt. Limiting factors: ksmbd must be enabled and reachable, valid credentials are needed, and the UAF window depends on concurrent session lifecycle events.

Impact

This is a use-after-free in the Linux kernel's in-kernel SMB server (ksmbd), where a non-durable open retains a non-refcounted pointer (opinfo->sess) to a session that can be freed by ksmbd_session_destroy() while a concurrent session supersedes the open by AppInstanceId and takes a write lock through the stale pointer in the freed file table. The input CVSS is 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), implying a network, authenticated, low-complexity path to high confidentiality/integrity/availability impact. However, the signals conflict on complexity: the description explicitly frames this as a concurrency bug - 'Another session can supersede the open at the same time' - i.e. a race between session teardown and supersede, which argues for AC:H rather than the input's AC:L. The real-world priority is tempered by other signals: EPSS is only 0.20% (10th percentile), there is no CISA KEV listing, and no public exploit is referenced; the vuln.today decision label is 'this_week' (not act_now/emergency). Critically, exploitation requires that the optional ksmbd server be enabled and that the attacker hold an authenticated SMB session (PR:L), and that it win a race - so despite the high CVSS this is best treated as an important-but-not-emergency kernel fix to schedule, not evidence of mass exploitation. Note the CWE is 'N/A' and the 'Information Disclosure' tag understates the impact: a UAF taking a write lock on freed slab memory is a memory-corruption primitive, not primarily disclosure.

Exploit ScenarioDerived

An attacker with valid credentials to an SMB share served by ksmbd opens a non-durable handle carrying a specific AppInstanceId, then from a second authenticated session issues an open that supersedes it at the same moment the first session is being torn down, so the supersede dereferences and write-locks the already-freed session's file table. No public exploit code is referenced, and reliable exploitation depends on winning the teardown-vs-supersede race. Successful triggering yields kernel-level memory corruption (KASAN reports a slab-use-after-free in _raw_write_lock), which can lead to denial of service or potential privilege escalation.

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 – Nov 19, 2026

Use-after-free in the Linux kernel's in-kernel SMB3 server (ksmbd) can be triggered by an authenticated remote user who combines the AppInstanceId supersede feature with concurrent session teardown, causing a write lock to be taken through a stale session pointer inside freed memory. Only systems running the optional ksmbd module and serving shares are exposed, and the flaw is timing-dependent: the supersede must race ksmbd_session_destroy() freeing the session, which is why the assessed vector is AC:H rather than the NVD-published AC:L. Successful exploitation corrupts freed slab memory in the session's file-table structure and can yield confidentiality and integrity impact at kernel level; no public exploit code was identified at time of analysis and exploitation has not been confirmed in the wild (not in CISA KEV, EPSS ~0.20%).

RemediationAI

Vendor-released patch: apply the kernel updates carrying the fix commits a5b190b352b0ba85f4debe436f42950ced10fadb and f728cfee6929057087c303d07d7a6a7c61196b48 (https://git.kernel.org/stable/c/a5b190b352b0ba85f4debe436f42950ced10fadb, https://git.kernel.org/stable/c/f728cfee6929057087c303d07d7a6a7c61196b48), which correspond to the EUVD patch markers for 7.3.2 and 7.4-rc1; kernels older than those fixes, including the 7.2 series as listed by EUVD, need the backported stable commit from their distribution vendor. Because exposure requires the optional ksmbd module to be loaded and serving shares, the most direct compensating control on systems that do not need in-kernel SMB service is to stop and unload it (unload the ksmbd module and remove any service configuration that reloads it), accepting that all SMB file sharing through ksmbd stops until a patched kernel is installed. Where ksmbd must remain in service, restrict TCP 445 to trusted management or client networks via host firewall or network policy, understanding that this narrows but does not eliminate exposure for any party holding valid SMB credentials. There are no finer-grained feature toggles documented in the available sources for disabling AppInstanceId supersede independently of the module.

Affected VersionsENISA

Linux 16c30649709d949b439273e61769028b1e706327 <a5b190b352b0ba85f4debe436f42950ced10fadb
Linux patch: 0
Linux patch: 7.3.2
Linux 7.2
Linux patch: 7.4-rc1
Linux 16c30649709d949b439273e61769028b1e706327 <f728cfee6929057087c303d07d7a6a7c61196b48

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

ksmbd is an optional in-kernel SMB3 file server that is not built into or loaded by default on typical Linux distributions. The vulnerable path is ksmbd_close_fd_app_instance_id(), which implements the SMB2 AppInstanceId semantics: a client opening a file with the same AppInstanceId as an existing open supersedes that earlier open. To do so it reaches the prior open's session through opinfo->sess, a pointer that, per the patch, is not refcounted. Session teardown detaches durable handles before freeing the session via ksmbd_session_destroy(), but it does not detach non-durable opens, so those opens keep a dangling opinfo->sess after the session slab is freed. If a second session performs a supersede at that moment, the code path takes a write lock through the stale pointer in the freed session's file table, producing the reported KASAN slab-use-after-free in _raw_write_lock (trace: _raw_write_lock -> ksmbd_close_fd_app_instance_id -> smb2_open, freed by ksmbd_session_destroy). No CWE identifier is supplied in the source data, though the defect class is a use-after-free rooted in missing reference counting on a session pointer. The upstream fix resolves the session by opinfo->session_id to obtain a proper reference (as smb2_break_collect_channels() does) and rechecks that opinfo->sess still points at the looked-up session before use; the lookup is deliberately performed without m_lock held, because destroy_previous_session() acquires m_lock under the session table lock and the reverse ordering would deadlock.

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 (Linux) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

Network SMB access with authenticated session gives AV:N/PR:L; the described concurrent supersede-vs-teardown race makes it AC:H; a kernel-slab UAF supports C:H/I:H/A:H.

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

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

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

Lifecycle Timeline

3
CVSS changed
Nov 19, 2026 - 14:22 NVD
8.8 (HIGH)
CVE Published
Nov 16, 2026 - 09:59 cve.org
HIGH 8.8
CVE Published
Nov 16, 2026 - 09:59 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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

ksmbd: fix app-instance non-durable supersede session UAF

ksmbd_close_fd_app_instance_id() supersedes a prior open that has the same AppInstanceId. It reaches that open's session through opinfo->sess. This pointer is not refcounted.

Session teardown detaches durable handles before it frees the session. It does not detach a non-durable open. That open still points at the session through opinfo->sess after the session is freed. Another session can supersede the open at the same time. The supersede then takes a write lock through the stale pointer, in the freed session's file table.

BUG: KASAN: slab-use-after-free in _raw_write_lock+0x71/0xd0 Call Trace: _raw_write_lock+0x71/0xd0 ksmbd_close_fd_app_instance_id+0xd9/0x670 [ksmbd] smb2_open+0x3e10/0xd910 [ksmbd] Freed by task 212: ksmbd_session_destroy+0x38d/0x480 [ksmbd]

Fix this by looking the session up by opinfo->session_id. The lookup returns a reference, as smb2_break_collect_channels() does. Recheck that opinfo->sess still points at it before using it.

Do the lookup without m_lock held. destroy_previous_session() takes m_lock under the session table lock, and taking them in the other order here would deadlock.

Executive ViewAI

Why It Matters

CVE-2026-99289 is a high-severity use-after-free vulnerability in the Linux kernel's ksmbd SMB3 server module. Only organizations running ksmbd to provide SMB file shares are exposed, and exploitation requires an authenticated remote user to win a timing-dependent race condition. A successful attack could corrupt kernel memory, potentially allowing data theft or modification on the affected server, but the narrow prerequisites and low EPSS score indicate a constrained threat landscape requiring focused remediation.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include disabling the optional ksmbd module where not essential, restricting SMB3 network access to trusted internal sources, enforcing strong authentication and least privilege for SMB users, monitoring for abnormal session teardown or memory corruption events, and applying kernel updates from the distribution vendor as soon as they become available.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Low
ksmbd in-kernel SMB server, rarely enabled versus userspace Samba
Social Media
1
Sightings
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
No
Human Impact
Medium

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

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