Skip to main content

Linux ksmbd EUVDEUVD-2026-55567

| CVE-2026-68381 CRITICAL
Use After Free (CWE-416)
2026-08-10 Linux GHSA-gq9g-pv9h-2q5v
Critical
Disputed · 9.8 Vendor: Linux
View

Attack ChainAIDerived

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

  1. Access
    Connect to ksmbd SMB share
  2. Delivery
    Open file to acquire oplock/lease
  3. Exploit
    Abort connection during teardown
  4. Execution
    Race async break-notification worker
  5. Persist
    Worker dereferences freed ksmbd_conn
  6. Impact
    Kernel memory corruption / crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target host must have the ksmbd in-kernel SMB server built and actively serving shares over TCP/445 - a non-default configuration, since ksmbd must be explicitly enabled and most Linux systems use userspace Samba or no SMB server at all. Triggering the bug requires reaching the oplock or lease break code path, which needs an established SMB session with an open file handle (i.e. connectivity to a share, typically authenticated unless guest access is enabled), and then winning a race between connection teardown and the async break-notification worker. The chief limiting factors are this timing window (making exploitation unreliable and inconsistent with the feed's AC:L), the requirement that ksmbd specifically is in use, and network reachability of port 445.

Impact

The signals conflict sharply and should be reconciled before prioritization. The feed's CVSS 9.8 (AV:N/AC:L/PR:N/UI:N, full C/I/A impact) treats this as a trivial unauthenticated network RCE, but the description makes clear this is a race condition between connection teardown and an in-flight oplock/lease break - inherently AC:H, not AC:L, and reaching the oplock/lease path realistically requires an established SMB session with an open file handle, contradicting PR:N. EPSS agrees the raw score overstates reality: 0.17% probability at the 6th percentile. There is no CISA KEV listing and no public exploit identified at time of analysis. No SSVC decision data was provided. The most reliable real-world impact of a freed-conn UAF is a kernel crash (denial of service); memory-disclosure (the feed's 'Information Disclosure' tag) or code execution are theoretically possible but would require winning a narrow race and defeating allocator/hardening mitigations. Net: a legitimate memory-safety bug worth patching on any host actually running ksmbd, but not the drop-everything emergency the 9.8 implies - the elevated base score is auto-generated and not consistent with the described mechanism.

Exploit ScenarioDerived

An attacker with SMB access to a ksmbd share opens a file to obtain an oplock/lease, then abruptly tears down the TCP connection at the moment the server queues an oplock or lease break notification, racing teardown against the async worker so the worker dereferences a freed ksmbd_conn. Reliably won, this corrupts kernel memory for a denial-of-service crash and potentially information disclosure or code execution; no public exploit is identified at time of analysis, and the network attack vector is offset by high timing complexity.

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 – Aug 14, 2026

Use-after-free in the Linux kernel's in-kernel SMB server (ksmbd) allows the async oplock/lease break notification worker to operate on a freed ksmbd_conn object when connection teardown races with a pending break notification. Affected kernels span the 6.6.x through 6.18 stable series (fixed in 6.6.148, 6.12.101, 6.14, 6.18.42 and related patch releases); the fix pins a real conn reference for the queued work item. Rated CVSS 9.8 by the automated feed, but this is a timing-dependent race with no public exploit identified at time of analysis and a low EPSS score (0.17%, 6th percentile).

RemediationAI

Vendor-released patch: upgrade to a fixed stable kernel - 6.6.148, 6.12.101, 6.14, or 6.18.42 (mainline 7.1.6 / 7.2-rc4), matching your branch, or apply your distribution's backport of the referenced git.kernel.org stable commits (e.g. 6ecb252efa0b413ac3d9979fb4eec247f8fc1258). Because exploitation requires the in-kernel SMB server to be reachable, the most effective compensating control where patching must wait is to stop and unload the ksmbd module (modprobe -r ksmbd) if the host is not intentionally serving SMB via ksmbd - many environments run userspace Samba instead and can disable ksmbd with no service impact. If ksmbd must stay running, restrict TCP/445 exposure with a firewall so only trusted management/client networks can reach the SMB service and require authenticated (non-guest) shares, which raises the bar for reaching the vulnerable oplock/lease path; the trade-off is reduced accessibility for legitimate clients on other subnets. Track the advisory via the NVD entry (https://nvd.nist.gov/vuln/detail/CVE-2026-68381).

Affected VersionsENISA

Linux 6.12.20 <6.12.101
Linux 3aa660c059240e0c795217182cf7df32909dd917 <6ecb252efa0b413ac3d9979fb4eec247f8fc1258
Linux 6.14
Linux patch: 7.1.6
Linux patch: 6.6.148
Linux a4261bbc33fbf99b99c80aa3a2c5097611802980 <793e1c7041b93af96ff87e678329bc16aee7ba88
Linux patch: 0
Linux f17d1c63a76b0fe8e9c78023a86507a3a6d62cfa
Linux 6.13.8 <6.14
Linux 3aa660c059240e0c795217182cf7df32909dd917 <aa5d8f3f96aa11a4a54ce993c11ce8af11c546f9
Linux patch: 6.12.101
Linux patch: 7.2-rc4
Linux 09aeab68033161cb54f194da93e51a11aee6144b <0f72fc9659d7f585460d43c158055df5afdcffb6
Linux 3aa660c059240e0c795217182cf7df32909dd917 <14062c74e5b25c27edcff7a2fe0dc701c930b372
Linux 6.6.84 <6.6.148
Linux patch: 6.18.42

Affected Packages

euvd linux fix: 6.6.148, 6.12.101, 6.14

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 Linux kernel's native SMB3 file-server implementation (an in-kernel alternative to userspace Samba), handling CIFS/SMB protocol operations including oplocks and leases used for client-side caching coordination. The root cause is a lifetime/reference-counting bug (a use-after-free, CWE-416, though the feed reports CWE as N/A): smb2_oplock_break_noti() and smb2_lease_break_noti() stash a struct ksmbd_conn pointer into an async ksmbd_work and queue it on the ksmbd-io workqueue, incrementing only conn->r_count. That counter blocks the teardown path's pending-request wait but does not hold a reference on the ksmbd_conn allocation itself, so the last conn reference can be dropped and the object freed while the worker later dereferences it in ksmbd_conn_write() and ksmbd_conn_r_count_dec(). The affected CPE is cpe:2.3:a:linux:linux, the ksmbd subsystem specifically.

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 6.4 MEDIUM

Network-reachable but a teardown timing race gives AC:H; reaching the oplock path needs a session so PR:L; freed-conn UAF most reliably crashes the kernel (A:H) with limited, uncertain C/I.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
4.0 AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 7.0 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
Aug 13, 2026 - 23:37 NVD
9.8 (CRITICAL)
Patch available
Aug 10, 2026 - 14:18 EUVD
CVE Published
Aug 10, 2026 - 12:03 cve.org
CRITICAL 9.8
CVE Published
Aug 10, 2026 - 12:03 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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

ksmbd: pin conn during async oplock break notification

smb2_oplock_break_noti() and smb2_lease_break_noti() store a ksmbd_conn pointer in an async ksmbd_work and then queue that work on ksmbd-io. The work only increments conn->r_count, which prevents teardown from passing the pending-request wait after the increment, but it does not pin the struct ksmbd_conn object.

If connection teardown races with an oplock break notification, the last conn reference can be dropped before the queued worker finishes. The worker then uses the freed conn in ksmbd_conn_write() and ksmbd_conn_r_count_dec().

Take a real conn reference when publishing the conn pointer to the async work item, and drop it after the notification work has decremented r_count. Apply the same lifetime rule to lease break notification, which uses the same work->conn pattern.

Executive ViewAI

Why It Matters

A use-after-free race condition in the Linux kernel's SMB server (ksmbd) affecting kernel versions 6.6 through 6.18 could allow attackers to crash or potentially execute code on file-serving systems; however, real-world exploitation risk remains low as the race condition is timing-dependent, no public exploit code exists, and EPSS scoring indicates minimal exploitation likelihood. Organizations operating Linux-based network file storage should prioritize kernel updates to eliminate this kernel-level code execution vector.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigations: restrict inbound SMB access to trusted clients only, disable ksmbd on systems that do not require SMB file sharing, and segment SMB-serving systems from less-trusted networks.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Low
ksmbd is a niche in-kernel SMB server, rarely enabled versus userspace Samba
Data Quality
5 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 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

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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