Skip to main content

Linux Kernel ksmbd EUVDEUVD-2026-45825

| CVE-2026-64140 HIGH
NULL Pointer Dereference (CWE-476)
2026-07-19 Linux GHSA-3wf5-rcm5-gfqq
7.5
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Access
    Establish SMB2 session to ksmbd durable-handle share
  2. Delivery
    Open file with durable v2 handle
  3. Exploit
    Send SMB2 SESSION_LOGOFF leaving NULL tcon fp
  4. Execution
    Root reads /proc/fs/ksmbd/files
  5. Persist
    NULL deref in proc_show_files
  6. Impact
    Kernel panic / host 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

Requires ksmbd to be running with a share configured with 'durable handles = yes'; an SMB2 client must complete SESSION_SETUP, open a file with a durable v2 handle, and issue SMB2 SESSION_LOGOFF to leave a reconnectable fp with NULL tcon. The crash then fires only when a process reads /proc/fs/ksmbd/files, which is mode 0400 and thus readable only by root - this local, privileged read is the true limiting factor and contradicts the AV:N/PR:N CVSS vector. Exploitation is further bounded by the timing window (fp is reclaimed by the durable scavenger after fp->durable_timeout seconds) and does not affect default configurations where durable handles are disabled or ksmbd is not loaded.

Impact

The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5) captures only the availability impact but overstates reachability: the panic is triggered by reading /proc/fs/ksmbd/files, which is mode 0400 and therefore readable only by root. The network component (an SMB2 client establishing the durable handle and logging off) merely sets up the NULL-tcon condition; the actual crash requires a local privileged read of the proc file. This network-vector-vs-local-trigger conflict should be verified with the vendor - realistically this is a local, privilege-dependent DoS, not remote-unauthenticated. Supporting signals reinforce low real-world urgency: EPSS is 0.16% (6th percentile), the vulnerability is not in CISA KEV, no POC is published, impact is DoS-only (C:N/I:N), and it only manifests when ksmbd is running with durable handles enabled and an operator/monitoring process reads the debug file. This is a genuine crash bug worth patching in ksmbd deployments but is a low priority relative to its 7.5 headline score.

Exploit ScenarioDerived

An attacker (or a misbehaving client) performs an SMB2 SESSION_SETUP against a ksmbd share with 'durable handles = yes', opens a file with a durable v2 handle, then sends SMB2 SESSION_LOGOFF, leaving a file pointer with fp->tcon = NULL registered for up to durable_timeout seconds. During that window a root-privileged local process - an admin or a monitoring agent - reads /proc/fs/ksmbd/files, dereferencing the NULL tcon and panicking the kernel. No public POC is identified at time of analysis, but the reproducer is described directly in the advisory.

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

Kernel-panic denial of service in the Linux kernel's in-kernel SMB server (ksmbd) allows the file-pointer table to retain a durable-handle file object with a NULL tcon after a client issues SMB2 SESSION_LOGOFF; any subsequent read of /proc/fs/ksmbd/files then dereferences the NULL fp->tcon in proc_show_files() and crashes the host. Affected are kernels running ksmbd on shares configured with 'durable handles = yes'. There is no public exploit identified at time of analysis and EPSS is low (0.16%, 6th percentile), consistent with a stability/robustness bug rather than a weaponizable RCE.

RemediationAI

Vendor-released patch: update to a Linux kernel including the ksmbd fix (stable commits 8eab081627b67216d1c8f638b68289b500dc9a6b and 904901561e61a2b559070b20c74a8c95491f30aa; distribution builds corresponding to 7.0.11 / 7.1 per EUVD-2026-45825). Apply your distribution's kernel update and reboot. If patching must be deferred, the most effective compensating control is to disable durable handles on ksmbd shares (set 'durable handles = no' in the share config), which removes the reconnectable-fp window at the cost of losing durable-handle resilience for clients. Alternatively, restrict or avoid reads of /proc/fs/ksmbd/files (already root-only at mode 0400) - ensure monitoring/automation does not poll this debug file while durable handles are in use - or unload the ksmbd module entirely if the in-kernel SMB server is not required, which stops all SMB serving via ksmbd. See https://git.kernel.org/stable/c/8eab081627b67216d1c8f638b68289b500dc9a6b for the patch.

Affected VersionsENISA

Linux patch: 7.0.11
Linux patch: 7.1
Linux 7.0
Linux patch: 0
Linux b38f99c1217ae04753340f0fdcd8f35bf56841dc <904901561e61a2b559070b20c74a8c95491f30aa
Linux b38f99c1217ae04753340f0fdcd8f35bf56841dc <8eab081627b67216d1c8f638b68289b500dc9a6b

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

The flaw is in ksmbd, the Linux kernel's native SMB3 file-server module (CPE cpe:2.3:a:linux:linux). ksmbd tracks open files in a global IDR (global_ft.idr). When a durable v2 handle is left reconnectable and the client sends SMB2 SESSION_LOGOFF, session_fd_check() sets fp->tcon = NULL but intentionally leaves the file pointer registered so the client can reconnect, until the durable scavenger reclaims it after fp->durable_timeout seconds. The debug interface /proc/fs/ksmbd/files (mode 0400) enumerates that IDR and unconditionally dereferences fp->tcon->id. Because a durable-disconnected fp legitimately has a NULL tcon, this is a classic NULL pointer dereference (CWE-476); KASAN reports it as a null-ptr-deref / general protection fault at proc_show_files+0x118 on mainline 70390501d194. The fix adds a NULL guard, reporting tree id 0 instead of oopsing.

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

Crash fires only when root reads /proc/fs/ksmbd/files (mode 0400), so AV:L and PR:H; DoS-only means C:N/I:N/A:H; seconds-long window keeps AC:L.

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

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 proc_show_files()

When a SMB2 client opens a file with a durable v2 handle and then issues SMB2 SESSION_LOGOFF, session_fd_check() clears fp->tcon = NULL on the reconnectable file pointer but leaves the fp registered in global_ft.idr until the durable scavenger fires (up to fp->durable_timeout seconds later).

During that window any read of /proc/fs/ksmbd/files (mode 0400) panics the kernel because proc_show_files() walks global_ft.idr and unconditionally dereferences fp->tcon->id with no NULL guard.

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 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] RIP: 0010:proc_show_files+0x118/0x740 Call Trace: proc_show_files+0x118/0x740 seq_read_iter+0x4ef/0xe10 proc_reg_read_iter+0x1b7/0x280 ...

Guard the dereference. A durable-disconnected fp legitimately has no tcon; report its tree id as 0 rather than oopsing.

Executive ViewAI

Why It Matters

CVE-2026-64140 is a denial-of-service vulnerability in Linux's in-kernel SMB server (ksmbd) that can cause kernel panics on file servers configured with durable handles enabled. While no public exploit has been identified and exploitation probability is exceptionally low (0.2% EPSS), affected organizations face potential service disruptions; a vendor patch is available and should be prioritized for deployment.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Low
in-kernel SMB server rarely enabled; durable-handle config even less common
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
Medium

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