Skip to main content

Linux Kernel ksmbd CVE-2026-64141

| EUVDEUVD-2026-45826 HIGH
NULL Pointer Dereference (CWE-476)
2026-07-19 Linux GHSA-5c3g-3v2r-672g
7.5
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Recon
    Reach ksmbd on TCP 445
  2. Delivery
    Complete SMB2 SESSION_SETUP
  3. Exploit
    Send SESSION_LOGOFF leaving stale opinfo
  4. Install
    Re-SETUP reusing same ClientGuid
  5. C2
    CREATE with lease on different inode
  6. Execute
    NULL conn deref in compare_guid_key
  7. Impact
    Kernel panic, server DoS

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

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

Exploitation Conditions

The affected server must run ksmbd with at least one share configured with 'durable handles = yes' (non-default) - this is the exact setting the reproducer names. The attacker must successfully complete an SMB2 SESSION_SETUP, then reuse the same TCP connection (which preserves the NEGOTIATE-bound ClientGuid) across a LOGOFF + fresh SETUP, and issue an SMB2 CREATE carrying a lease context on a different inode than the one whose opinfo was left stale. Limiting factors: exploitation depends on the durable-handles configuration and on winning/triggering the lifecycle race where session_fd_check() has cleared op->conn while the opinfo remains linked in lb->lease_list; hosts where ksmbd is disabled or durable handles are off are not exploitable. Although CVSS rates PR:N, a genuinely reachable SESSION_SETUP may require valid share credentials depending on server authentication policy.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, base 7.5) reflects a pure availability impact - a kernel crash - reachable over the network with low complexity and no authentication or user interaction, consistent with the 'Denial Of Service' tag. However, the exploitation narrative introduces a nuance the raw vector omits: the attacker must complete an SMB2 SESSION_SETUP and target a share explicitly configured with 'durable handles = yes', which is not the ksmbd default, so realistic exploitation is somewhat gated by server configuration. Corroborating low-urgency signals: EPSS is 0.17% (6th percentile), the CVE is NOT in CISA KEV, and no POC is referenced - so this is not actively exploited and not weaponized. There is no confidentiality or integrity impact; the worst case is a remote crash/reboot of the file server. Net: a genuine remote DoS worth patching on internet-exposed or multi-tenant ksmbd deployments, but not an emergency-tier issue for hosts where ksmbd is disabled or durable handles are off. Note the PR:N rating: the vector treats the SESSION_SETUP as unauthenticated-reachable, but a full setup may itself require valid credentials on hardened shares - verify against your share's authentication configuration.

Exploit ScenarioDerived

An attacker who can reach the ksmbd service on TCP 445 completes an SMB2 negotiate and session setup, then issues a LOGOFF and re-runs SESSION_SETUP over the same TCP connection, preserving the ClientGuid. They then send an SMB2 CREATE with a lease context on a different inode, causing find_same_lease_key() to reach the stale opinfo and dereference a NULL conn, panicking the kernel and taking the file server offline. No public exploit code is identified at time of analysis, but the low attack complexity (AC:L) makes a bespoke crasher straightforward for anyone able to authenticate a session.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
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 – Jul 20, 2026

Remote denial of service in the Linux kernel's ksmbd in-kernel SMB3 server allows an attacker to trigger a NULL-pointer dereference and kernel panic during SMB2 CREATE lease processing. After a SESSION_LOGOFF, a stale opinfo remains linked in the per-ClientGuid lease list with its conn pointer cleared; a subsequent session reusing the same ClientGuid and taking a lease on a different inode causes compare_guid_key() to dereference the NULL conn->ClientGUID. Exploitation requires only a successful SMB2 SESSION_SETUP against a share with 'durable handles = yes'; no public exploit is identified at time of analysis and EPSS risk is low (0.17%).

RemediationAI

Vendor-released patch: upgrade to a fixed Linux stable release - 6.6.142, 6.12.92, 6.18.34, 7.0.11, or 7.1 (or your distribution's backported equivalent; Canonical/Ubuntu is tagged as a channel). The fix reads opinfo->conn once and returns 0 (no match) if it has been cleared, since a half-detached opinfo cannot own an active lease; corresponding stable commits are at https://git.kernel.org/stable/c/e43cb36d4d7827710cfcd48e95e29a507f0d87be and the sibling commits 0836081b394c, cd5c1b75d2f4, af86896ca323, and 4b83cbc4c15f. If immediate patching is not possible, the most direct compensating control is to set 'durable handles = no' on ksmbd shares, which removes the code path that walks the stale lease list - the trade-off is loss of durable-handle resilience for clients that rely on transparent reconnect. Alternatively, disable the ksmbd service entirely where it is not needed, or restrict SMB (TCP 445) exposure to trusted management networks via firewall rules to limit who can complete a SESSION_SETUP; the trade-off there is reduced SMB reachability for legitimate remote clients.

Affected VersionsENISA

Linux patch: 6.6.142
Linux c8efcc786146a951091588e5fa7e3c754850cb3c <af86896ca3239e25a6bd7d352213371265073d38
Linux c8efcc786146a951091588e5fa7e3c754850cb3c <4b83cbc4c15f09b000cc06f033f64b0824b6dc87
Linux patch: 6.12.92
Linux patch: 6.18.34
Linux patch: 0
Linux patch: 7.1
Linux 6.6.32 <6.6.142
Linux 6.9
Linux c8efcc786146a951091588e5fa7e3c754850cb3c <0836081b394ca074d1b910f2b990ff7b4b4404c7
Linux c8efcc786146a951091588e5fa7e3c754850cb3c <cd5c1b75d2f454f625d7dc55bd3ae21d0855f6ad
Linux 8df4bcdb0a4232192b2445256c39b787d58ef14d <e43cb36d4d7827710cfcd48e95e29a507f0d87be
Linux patch: 7.0.11

Affected Packages

euvd linux fix: 6.6.142

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 SMB/CIFS file server added to Linux (fs/smb/server), providing SMB2/SMB3 services including durable handles and lease support. The bug is a use-of-cleared-pointer / NULL-pointer dereference (CWE-476 class, though CWE is marked N/A in the feed) rooted in inconsistent lifecycle management between two teardown paths: session_fd_check() clears op->conn = NULL on SESSION_LOGOFF while walking the per-inode m_op_list, but destroy_lease_table() - which unlinks opinfo from the per-ClientGuid lease_table_list (lb->lease_list) - only runs on full TCP-connection teardown. Because ClientGuid is bound to NEGOTIATE rather than the session, a LOGOFF followed by a fresh SETUP on the same TCP connection preserves the ClientGuid, so find_same_lease_key() later walks lb->lease_list, reaches the half-detached stale opinfo, and compare_guid_key() unconditionally reads opinfo->conn->ClientGUID (offset 0x348 within struct ksmbd_conn), faulting because conn is NULL. The CPE data (cpe:2.3:a:linux:linux) confirms the affected component is the Linux kernel itself.

Know when Canonical gets its next vulnerability

  • 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 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

Network-reachable crash with low complexity and availability-only impact; PR:L because a real SMB2 SESSION_SETUP typically requires session-level credentials, and the durable-handles config is a precondition.

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

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

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

Lifecycle Timeline

4
CVSS changed
Jul 20, 2026 - 15:22 NVD
7.5 (HIGH)
Patch available
Jul 19, 2026 - 17:03 EUVD
CVE Published
Jul 19, 2026 - 15:40 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 19, 2026 - 15:40 cve.org
HIGH 7.5

DescriptionCVE.org

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

ksmbd: fix null pointer dereference in compare_guid_key()

session_fd_check() walks the per-inode m_op_list during durable-handle session teardown and sets op->conn = NULL for every opinfo whose conn matched the closing session's connection. The matching opinfo, however, stays linked in its per-ClientGuid lease_table_list entry's lb->lease_list because destroy_lease_table() only runs on full TCP-connection teardown, not on SESSION_LOGOFF.

If the same TCP connection then negotiates a fresh session with the same ClientGuid (ClientGuid is bound to NEGOTIATE, not the session, and is unchanged across LOGOFF + SETUP) and issues a SMB2 CREATE with a lease context on a different inode, find_same_lease_key() walks lb->lease_list, reaches the stale opinfo, and calls compare_guid_key(), which unconditionally dereferences opinfo->conn->ClientGUID. The conn pointer is NULL and the kernel panics.

Reproducer requires only a successful SMB2 SESSION_SETUP and a share configured with 'durable handles = yes'. KASAN report on mainline 70390501d194:

general protection fault, probably for non-canonical address 0xdffffc0000000069: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000348-0x000000000000034f] Workqueue: ksmbd-io handle_ksmbd_work RIP: 0010:bcmp+0x5b/0x230 Call Trace: compare_guid_key+0x4b/0xd0 find_same_lease_key+0x324/0x690 smb2_open+0x6aea/0x8e60 handle_ksmbd_work+0x796/0xee0 ...

Faulting address 0x348 is the offset of ClientGUID within struct ksmbd_conn, confirming opinfo->conn was NULL.

Read opinfo->conn once and bail out if it has been cleared by a concurrent session_fd_check(). A half-detached opinfo cannot be the owner of an active lease, so returning 0 is the correct match result.

Executive ViewAI

Why It Matters

The Linux kernel's ksmbd SMB3 server contains a remote denial-of-service vulnerability (CVE-2026-64141) that allows attackers to crash file servers during SMB2 lease processing. Organizations running Linux-based file servers with SMB shares configured and 'durable handles' enabled face potential service disruption affecting business-critical file access. A vendor patch is available and should be deployed immediately to affected infrastructure.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
High
Linux kernel is ubiquitous, but ksmbd SMB server is an optional, less-commonly-enabled module
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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
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
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2014-6271 CRITICAL POC
9.8 Sep 24

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2017-12617 HIGH POC
8.1 Oct 04

When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTT

CVE-2016-8735 CRITICAL POC
9.8 Apr 06

Remote code execution is possible with Apache Tomcat before 6.0.48, 7.x before 7.0.73, 8.x before 8.0.39, 8.5.x before 8

CVE-2014-7169 CRITICAL POC
9.8 Sep 25

GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of

CVE-2014-0160 HIGH POC
7.5 Apr 07

The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe

CVE-2016-5195 HIGH POC
7.0 Nov 10

Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by lev

CVE-2013-2423 LOW POC
3.7 Apr 17

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 17 and earlier, and

CVE-2023-4911 HIGH POC
7.8 Oct 03

Local privilege escalation in the GNU C Library (glibc) dynamic loader ld.so allows unprivileged local users on affected

Vendor StatusVendor

SUSE

Severity: Important
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

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