Skip to main content

Linux Kernel ksmbd EUVDEUVD-2026-39289

| CVE-2026-53198 HIGH
Use After Free (CWE-416)
2026-06-25 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-62m5-m548-5v5f
8.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate to ksmbd SMB share
  2. Delivery
    Send blocking SMB2_LOCK (deferred lock)
  3. Exploit
    Issue first SMB2_CANCEL freeing file_lock
  4. Install
    Race second SMB2_CANCEL on same AsyncId
  5. C2
    Fire stale cancel_fn on freed lock
  6. Execute
    Trigger kernel slab use-after-free
  7. Impact
    Crash or corrupt kernel memory

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

Requires the target to be running the in-kernel ksmbd SMB server with at least one exported share, and the attacker must hold valid SMB credentials (authenticated session, PR:L). The attacker must first create a deferred/blocking byte-range lock via SMB2_LOCK, then send two SMB2_CANCEL requests for the same AsyncId within the window after the first cancel frees the file_lock but before connection teardown runs release_async_work(). Limiting factors: exploitation is gated by SMB authentication, depends on the non-default ksmbd server being enabled, and hinges on winning a narrow timing race between the two cancels - making reliable exploitation difficult and most often resulting in a kernel crash rather than controlled compromise.

Impact

Signals are mixed. The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N, 8.8) plus C:H/I:H/A:H implies high impact, but the bug is fundamentally a race condition (two SMB2_CANCELs must arrive in a narrow window before teardown), which realistically warrants higher attack complexity than AC:L - I independently assess AC:H. EPSS is low (0.18%, 8th percentile) and there is no KEV listing and no public exploit, consistent with a hard-to-win race rather than a turnkey exploit. The most reliable outcome of a kernel slab UAF is denial of service (panic), with kernel privilege escalation/code execution theoretically possible but non-trivial. Note a data conflict: the input Tags label this 'Information Disclosure', which does not match a write-oriented UAF in lock teardown - the practical impact is memory corruption/DoS, not primarily disclosure; verify intended impact with the kernel advisory. Net: real but lower-priority than the 8.8 suggests, gated by authentication and a timing race.

Exploit ScenarioDerived

An attacker with valid SMB credentials connects to a ksmbd-exported share, issues an SMB2_LOCK that blocks (deferred byte-range lock), then races two SMB2_CANCEL requests for the same AsyncId so the second fires the stale cancel callback against the already-freed file_lock. This triggers a kernel slab use-after-free that most likely panics the server (DoS) and could potentially be groomed toward kernel memory corruption. No public exploit is identified at time of analysis, though the issue has been reproduced with KASAN.

This Week Schedule remediation this week. Why: Active threat signals + CRITICAL/HIGH 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 – Jun 28, 2026

Use-after-free in the Linux kernel's in-kernel SMB server (ksmbd) lets an authenticated SMB client corrupt kernel slab memory by sending a second SMB2_CANCEL for the same AsyncId of a blocking byte-range lock. The first cancel frees the struct file_lock but takes an early-exit that never unlinks the async work or clears its cancel callback, leaving a live cancel_fn pointing at freed memory in the file_lock_cache (size 192) slab; a racing second cancel re-runs smb2_remove_blocked_lock() on the dangling pointer. The flaw was reproduced on mainline with KASAN by an authenticated client, EPSS is low (0.18%), and there is no public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to a fixed stable kernel - 6.1.176, 6.6.143, 6.12.94, 6.18.36, 7.0.13, or 7.1 (or later on each branch), which add the KSMBD_WORK_CANCELLED state guard so a cancel callback cannot fire twice; the upstream fix is commit f580d27e8928 and stable backports listed at git.kernel.org (e.g. https://git.kernel.org/stable/c/f580d27e8928828693df44ba2db0fffdbe11dfea). If you cannot patch immediately, the highest-leverage compensating control is to disable the in-kernel SMB server (unload/blacklist the ksmbd module and stop ksmbd.service) and serve SMB via userspace Samba instead, which removes the attack surface entirely at the cost of the ksmbd performance benefit. Where ksmbd must stay enabled, restrict it to trusted clients only - firewall TCP/445 to known management hosts and require strong SMB authentication - since exploitation needs an authenticated session; this limits but does not eliminate risk from a compromised credential.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <f580d27e8928828693df44ba2db0fffdbe11dfea
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <b7063c7426ea5a4d15e01b60538718765392f49d
Linux 0 <6.6.143
Linux 0 <6.12.94
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <89ae9df09d2c1fb4a4eb495c113a7ce1dca34147
Linux patch: 7.0.13
Linux patch: 6.1.176
Linux patch: 6.18.36
Linux 0 <7.0.13
Linux 0 <6.18.36
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <0da2e073f9cbf4985a0fd9acb71bc5ff599f8afd
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <2b2eda2821cff1d1b5a423b6ee7d8fc6fbc8e694
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <14d2eee0193ac3cd1bf3d014373449f0b8d35d6d
Linux patch: 6.6.143
Linux patch: 7.1
Linux 0 <6.1.176
Linux patch: 6.12.94

Affected Packages

euvd linux fix: 6.1.176, 6.6.143, 6.12.94, 6.18.36, 7.0.13

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 kernel-space SMB3 file server merged into Linux (5.15+) as a faster alternative to userspace Samba. A blocking SMB2_LOCK (deferred byte-range lock) registers async work on conn->async_requests via setup_async_work(), storing cancel_fn=smb2_remove_blocked_lock and cancel_argv[0]=&file_lock. The root cause is a classic use-after-free (CWE-416): in the cancelled branch the worker frees the lock with locks_free_lock() and 'goto out's, bypassing release_async_work() - the only site that unlinks the work and clears cancel_fn/cancel_argv. The work stays matchable until connection teardown, so smb2_cancel(), which fires cancel_fn with no state guard, dereferences a freed file_lock. The fix adds a state guard to skip any work already in KSMBD_WORK_CANCELLED.

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 (416baaa9-dc9f-4396-8d5f-8c081fb06d67) 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 reachable but exploitation needs winning a double-cancel race (AC:H) and an authenticated session (PR:L); kernel slab UAF can corrupt memory and crash the host, so C/I/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
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

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

Lifecycle Timeline

4
CVSS changed
Jun 28, 2026 - 08:22 NVD
8.8 (HIGH)
Patch available
Jun 25, 2026 - 10:32 EUVD
CVE Published
Jun 25, 2026 - 09:16 cve.org
UNKNOWN (no severity yet)
CVE Published
Jun 25, 2026 - 09:16 cve.org
HIGH 8.8

DescriptionCVE.org

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

ksmbd: fix use-after-free of a deferred file_lock on double SMB2_CANCEL

A deferred byte-range lock (an SMB2_LOCK that blocks) registers an async work on conn->async_requests via setup_async_work(), with cancel_fn = smb2_remove_blocked_lock and cancel_argv[0] pointing at the struct file_lock.

When the request is cancelled, the worker frees the file_lock with locks_free_lock() and takes the cancelled early-exit, which "goto out"s and never reaches release_async_work() -- the only site that unlinks the work from conn->async_requests and clears cancel_fn/cancel_argv. The work therefore stays matchable on async_requests with a live cancel_fn pointing at the freed file_lock, until connection teardown finally runs release_async_work().

smb2_cancel() fires cancel_fn unconditionally with no state guard, so a second SMB2_CANCEL for the same AsyncId, arriving in that window, re-runs smb2_remove_blocked_lock() on the freed file_lock -- a slab use-after-free:

BUG: KASAN: slab-use-after-free in __locks_delete_block __locks_delete_block locks_delete_block ksmbd_vfs_posix_lock_unblock smb2_remove_blocked_lock smb2_cancel <- 2nd SMB2_CANCEL fires cancel_fn handle_ksmbd_work Allocated by ...: locks_alloc_lock <- smb2_lock Freed by ...: locks_free_lock <- smb2_lock (cancelled branch) ... cache file_lock_cache of size 192

Reproduced on mainline with KASAN by an authenticated SMB client.

Skip a work whose state is already KSMBD_WORK_CANCELLED so its cancel callback cannot be fired a second time.

Executive ViewAI

Why It Matters

CVE-2026-53198 is a kernel memory corruption vulnerability in Linux SMB file servers and NAS devices running ksmbd, potentially enabling service disruption or privilege escalation of authenticated users. The attack requires authenticated access and currently presents minimal exploitation risk (EPSS 0.2%) with no public exploit code identified; however, the high technical severity (CVSS 8.8) and prevalence of SMB infrastructure require immediate vendor patch application.

Business Impact: High
Compensating Controls

Apply vendor patch. Until patching is complete, restrict SMB access to trusted networks and authenticated users only; enable logging and monitoring of SMB protocol events for anomalies.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
in-kernel ksmbd rarely enabled; most deployments use userspace Samba
Threat Intel
1
1 sources
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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat Yes
Deciding rule
Active threat signals + CRITICAL/HIGH 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
No
Human Impact
High

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: +10
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 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 16.0 Affected

Threat IntelligenceMISP

CISA Advisories
Sources: Microsoft MSRC, CISA (public domain)

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