Skip to main content

Linux ksmbd EUVDEUVD-2026-59280

| CVE-2026-72381 CRITICAL
2026-08-15 Linux GHSA-qx34-9c4p-jvq8
Critical
Disputed · 9.8 Vendor: Linux
View

Attack ChainAIDerived

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

  1. Access
    Reach exposed ksmbd share over SMB
  2. Delivery
    Establish SMB2 session and open durable handle
  3. Exploit
    Issue two concurrent durable reconnects on same persistent_id
  4. Execution
    Race owner.name compare-read against reopen kfree()
  5. Persist
    Trigger use-after-free strcmp on freed buffer
  6. Impact
    Kernel crash or slab info leak

Vulnerability Assessment

Exploitation Conditions

Requires the target to be running the in-kernel ksmbd SMB server (CONFIG_SMB_SERVER) with at least one exported share reachable over SMB2/SMB3, and the durable-handle feature in use. The attacker must establish SMB sessions capable of opening durable handles and then issue two concurrent durable reconnects (DH2C/DHnC) targeting the same persistent_id, winning a narrow timing race between the owner.name compare-read and the reopen-success kfree(). Limiting factors: the vulnerable code lives only in ksmbd (the vast majority of Linux hosts use userspace Samba or run no SMB server, so they are unaffected); durable handles presuppose an established SMB session, so the CVSS PR:N is optimistic and realistically at least authenticated SMB access is needed; and the race is timing-dependent, making the input AC:L rating optimistic versus the high-complexity reality.

Impact

The input CVSS of 9.8 (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H) substantially overstates realistic risk and conflicts with the described mechanics. This is a use-after-free READ (a strcmp dereference of a freed 8-byte buffer), so the primary observable impacts are a kernel crash (DoS) and possible limited information disclosure - matching the 'Information Disclosure' tag - not the full C:H/I:H/A:H the score implies, and certainly not straightforward remote code execution. The AC:L rating is questionable: exploitation depends on winning a race between two concurrent durable reconnects on the same persistent_id, which is closer to high attack complexity. PR:N is also doubtful because durable handles presuppose an established SMB session (owner.name is populated during session_fd_check/logoff), implying at least authenticated SMB access. Corroborating signals point to lower priority: EPSS is only 0.21% (11th percentile), there is no CISA KEV listing, and no POC is referenced. Net assessment: a genuine memory-safety bug worth patching on any host running ksmbd, but a moderate real-world priority - not a wormable critical - and effectively irrelevant to the majority of Linux hosts that use userspace Samba or run no SMB server at all.

Exploit ScenarioDerived

An attacker who can reach an exposed ksmbd share opens a file with a durable handle, then fires two concurrent SMB2 durable reconnect requests (DH2C/DHnC) against the same persistent_id. By timing the reconnects so one thread's owner-name comparison races the other thread's reopen-success kfree(), the strcmp() dereferences freed kmalloc-8 memory, crashing the kernel or potentially leaking adjacent slab contents. No public exploit is identified at time of analysis, and the tight race window makes reliable triggering 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 – Aug 17, 2026

A use-after-free in the Linux kernel's in-kernel SMB3 server (ksmbd) durable-handle path lets a concurrent SMB2 durable reconnect (DH2C/DHnC) read the freed fp->owner.name buffer via strcmp() in ksmbd_vfs_compare_durable_owner(), as caught by KASAN. Only systems that enable and export shares over ksmbd are affected, and exploitation requires winning a tight race between two reconnects on the same persistent_id. No public exploit identified at time of analysis, and EPSS is low (0.21%), consistent with a hard-to-time kernel race rather than a turnkey remote exploit despite the 9.8 input score.

RemediationAI

Vendor-released patch: upgrade to a fixed stable kernel - 6.18.40, 6.12.97, 6.6.145, 7.1.5, or 7.2-rc2 (or later on your branch), which serialize both sides of the race with fp->f_lock; reference the stable commits at https://git.kernel.org/stable/c/fb978d72052704c6b06c6b0f129fcd60b77169f5 and https://nvd.nist.gov/vuln/detail/CVE-2026-72381. Where immediate patching is not possible, the most effective compensating control is to stop using the in-kernel server: disable/unload the ksmbd module (rmmod ksmbd, blacklist it, or boot a kernel without CONFIG_SMB_SERVER) and serve SMB via userspace Samba instead, which is not affected by this code path - the trade-off is a service migration and a possible performance change. If ksmbd must stay enabled, restrict TCP 445 to trusted management networks and require authenticated, least-privilege SMB sessions, and consider disabling durable/persistent handle support in the share configuration to remove the vulnerable reconnect path, accepting reduced client resiliency across brief network interruptions.

Affected VersionsENISA

Linux patch: 6.18.40
Linux 00ce8d6789dae72d042a4522264964c72891ca37 <5a5ac2852cd326529d02f778bc1aa6184701f4d7
Linux 49110a8ce654bbe56bef7c5e44cce31f4b102b8a <38637163501fd9e2f684b8cd275d0db5d79f37c6
Linux 712cdf917e77a6444ce3836874829d770db20ee6 <fb978d72052704c6b06c6b0f129fcd60b77169f5
Linux patch: 7.2-rc2
Linux patch: 0
Linux patch: 7.1.5
Linux 6.18.25 <6.18.40
Linux patch: 6.12.97
Linux 7.0.2 <7.1
Linux 6.12.92 <6.12.97
Linux 6.6.142 <6.6.145
Linux 7.1
Linux c908c853f304a4969b5aa10eba0b50350cc65b80
Linux c7f0f0d01c88bdcb8b1694d7d321670013f7ed7d <93d4d46bf9d442a12ea87278049ec416962c627f
Linux 49110a8ce654bbe56bef7c5e44cce31f4b102b8a <ed98719be41389d416953b8ef9f07a07dfea6b2b
Linux patch: 6.6.145

Affected Packages

euvd linux fix: 6.6.145, 6.12.97, 6.18.40, 7.1

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 SMB2/SMB3 file-server implementation (an in-kernel alternative to userspace Samba) that manages open file handles as ksmbd_file (fp) objects. SMB2 durable handles let a client survive brief disconnects and reclaim a prior open using a persistent_id; on reconnect the server verifies ownership by comparing the stored fp->owner.name string. That name is a standalone kstrdup() buffer (allocated in session_fd_check()/smb2_session_logoff, landing in kmalloc-8) whose lifetime is decoupled from the fp refcount. The root cause is CWE-416 (use-after-free) driven by a CWE-362 concurrency race: ksmbd_vfs_compare_durable_owner() reads owner.name under no shared lock while ksmbd_reopen_durable_fd()'s success path kfree()s it. A prior fix (commit 7ce4fc40018d) serialized the fp->conn claim under global_ft.lock but left this compare-read versus reopen-free pair unserialized. The affected product per CPE is cpe:2.3:a:linux:linux (the kernel), specifically builds with CONFIG_SMB_SERVER (ksmbd) enabled.

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

Tight reconnect race gives AC:H; durable handles need an authenticated SMB session so PR:L; a read-UAF yields limited info leak (C:L) and kernel crash (A:H) rather than integrity impact.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:H
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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 17, 2026 - 06:22 NVD
9.8 (CRITICAL)
Patch available
Aug 15, 2026 - 07:20 EUVD
CVE Published
Aug 15, 2026 - 05:56 cve.org
CRITICAL 9.8
CVE Published
Aug 15, 2026 - 05:56 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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

ksmbd: fix use-after-free of fp->owner.name in durable handle owner check

Two concurrent SMB2 durable reconnects (DH2C/DHnC) on the same persistent_id race the fp->owner.name compare-read in ksmbd_vfs_compare_durable_owner() against the kfree() in ksmbd_reopen_durable_fd()'s reopen-success path. fp->owner.name is a standalone kstrdup() buffer whose lifetime is independent of the fp refcount, and the two sites share no lock: the compare reads the buffer while the reopen frees it, so the strcmp() can dereference freed memory.

Commit 7ce4fc40018d ("ksmbd: fix durable reconnect double-bind race in ksmbd_reopen_durable_fd") made the fp->conn claim atomic under global_ft.lock (closing the owner.name double-free and the ksmbd_file write-UAF), but the compare-read versus reopen-free pair was left unserialized.

BUG: KASAN: slab-use-after-free in strcmp+0x2c/0x80 Read of size 1 by task kworker strcmp ksmbd_vfs_compare_durable_owner smb2_check_durable_oplock smb2_open Freed by task kworker: kfree ksmbd_reopen_durable_fd smb2_open Allocated by task kworker: kstrdup session_fd_check smb2_session_logoff The buggy address belongs to the cache kmalloc-8

Serialize both sides of the race with fp->f_lock. The global durable file-table lock still protects the durable reconnect claim, but fp->owner.name is per-open state and does not need to block unrelated durable table lookups or reconnects. The teardown is left at its existing location after the reopen-success point so that an __open_id() rollback still retains owner.name for a later legitimate reconnect to verify.

Executive ViewAI

Why It Matters

CVE-2026-72381 creates a memory-safety vulnerability in Linux systems that use ksmbd to serve SMB files; the vulnerability could expose kernel memory through a carefully orchestrated race condition between concurrent SMB client reconnections. Despite the CRITICAL severity rating and 9.8 CVSS score, practical risk is significantly lower because no public exploit identified at time of analysis, and exploitation requires precise timing. Organizations operating Linux file servers with SMB3 via ksmbd should identify these systems and apply patches, but this is a high-priority rather than emergency-class vulnerability given these exploitation barriers.

Business Impact: High
Compensating Controls

Apply vendor patch. If patch deployment is delayed, implement network-level controls to restrict access to SMB ports (445/TCP) to known trusted clients; disable SMB durable-handle functionality in ksmbd configuration if operationally feasible; and enable kernel protections including address space layout randomization (ASLR) on affected systems to increase exploitation complexity.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Medium
Linux is ubiquitous but ksmbd is optional and rarely enabled versus userspace Samba
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 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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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 Not-Affected

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