Skip to main content

Linux Kernel ksmbd CVE-2026-64578

| EUVDEUVD-2026-53272 HIGH
Out-of-bounds Read (CWE-125)
2026-08-05 Linux GHSA-wrjv-h4c7-cj2f
8.2
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Access
    Reach TCP/445 on ksmbd-enabled host
  2. Delivery
    Send crafted compound SMB2 request
  3. Exploit
    Final element sized to exactly 64 bytes
  4. Execution
    ksmbd_smb2_check_message reads 2 bytes past buffer boundary
  5. Persist
    Slab-out-of-bounds triggers kernel panic
  6. Impact
    Denial of service or 1-byte slab memory leak

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

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

Exploitation Conditions

The Linux kernel must have the ksmbd module loaded and an SMB server actively running - ksmbd is not enabled by default in most distributions and requires explicit configuration (e.g., starting the ksmbd service and creating a ksmbd.conf). The attacker requires network reachability to the SMB listening port (TCP/445 by default) but no authentication, credentials, or prior session state, since the vulnerability is in pre-authentication message validation. Exploitation is limited to hosts where: (1) the ksmbd kernel module is loaded, (2) the ksmbd server daemon is running, and (3) TCP/445 is reachable from the attacker. Standard enterprise Linux deployments using Samba as the SMB implementation are not affected. Hosts where ksmbd is present in the kernel image but the module is not loaded are not vulnerable.

Impact

The CVSS 8.2 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H) correctly reflects that no authentication or special client state is required - the vulnerability is triggered during pre-authentication SMB2 message validation, making it exploitable by any network peer. The high availability impact (A:H) is grounded in the kernel panic induced by the KASAN-detected out-of-bounds read, which would crash the ksmbd worker or the kernel itself. The low confidentiality impact (C:L) reflects the single-byte information leak from adjacent slab memory. Against these severity signals, the EPSS score of 0.16% at the 5th percentile is markedly low, indicating that exploitation tooling is not yet publicly circulating. The vulnerability is not listed in CISA KEV, and no public proof-of-concept has been identified. The practical risk is bounded by ksmbd's limited deployment footprint: it requires explicit kernel module loading and configuration, unlike Samba which dominates enterprise SMB deployments. For organizations running ksmbd (common in NAS appliances and embedded Linux), this is a genuine priority patch given the unauthenticated attack surface. For the broader Linux ecosystem, immediate urgency is lower. No conflicting signals are present - CVSS and description are consistent.

Exploit ScenarioDerived

An attacker with network access to TCP port 445 on a host running ksmbd sends a single-packet compound SMB2 request where the final chained element is constructed to be exactly 64 bytes - the size of a bare SMB2 header with no command body. When ksmbd_smb2_check_message() processes the final element, it reads the 2-byte StructureSize2 field beginning at offset 64, one byte past the allocated receive buffer, triggering a KASAN slab-out-of-bounds read that crashes the kernel worker and causes denial of service. No public proof-of-concept has been confirmed, but the craft required (a malformed compound PDU) is low complexity and well within the ability of anyone familiar with the SMB2 wire protocol.

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

Slab-out-of-bounds read in the Linux kernel's ksmbd SMB2 server allows remote unauthenticated attackers to crash the kernel or leak one byte of adjacent slab memory by sending a crafted compound SMB2 request. The vulnerable path in ksmbd_smb2_check_message() reads the 2-byte StructureSize2 field at offset 64 from each compound element without first confirming the element is at least 66 bytes, so a trailing element of exactly 64 bytes causes a one-byte overread beyond the receive buffer. No exploitation has been publicly confirmed (EPSS 0.16%, 5th percentile, not in CISA KEV), but the unauthenticated network attack vector (CVSS 8.2) makes any ksmbd-exposed host a realistic DoS target. Vendor-released patches are available across all maintained stable kernel series.

RemediationAI

Upgrade to a fixed stable kernel release: Linux 6.6.148, 6.12.101, 6.18.42, or 7.1.6, all of which contain the bounds check that rejects compound elements too small to hold StructureSize2. For 5.15.x LTS kernels, apply commit 15b38176fd15; for 7.2 development kernels, update to 7.2-rc4 or later. Individual patch commits are available at the kernel stable tree references above. If an immediate kernel upgrade is not feasible, the most effective compensating control is to unload or prevent loading of the ksmbd module ('modprobe -r ksmbd' or blacklisting ksmbd in /etc/modprobe.d/), effectively eliminating the attack surface at the cost of disabling kernel SMB serving - SMB access via Samba (userspace) is unaffected. Alternatively, firewall rules blocking TCP/445 and TCP/139 from untrusted networks prevent remote exploitation but do not address exposure from internal or guest network segments. Neither workaround has known functional side effects beyond disabling ksmbd itself. Additional advisory context is available via ENISA EUVD-2026-53272 at https://nvd.nist.gov/vuln/detail/CVE-2026-64578.

Affected VersionsENISA

Linux patch: 0
Linux 5.15
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <2c307126ed8e7adddab82b8e31d962d3a2156ab1
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <ea128f06d2fb2186f0cac0c9f3e953e4d1f5c29a
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <f0e337e7db67cc1c832958bbb6c4026bdceacfdb
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <f7550a91ab211726f59cb137523b7a9eae1ac6eb
Linux patch: 7.2-rc4
Linux patch: 6.12.101
Linux patch: 7.1.6
Linux patch: 6.18.42
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <15b38176fd1530372905c602fde51fe89ec8c877
Linux patch: 6.6.148

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

ksmbd is the in-kernel SMB2/3 server for Linux, first merged in Linux 5.15 (CPE: cpe:2.3:a:linux:linux). SMB2 supports compound (chained) requests, where multiple operations share a single transport PDU linked via the NextCommand field. The validation function ksmbd_smb2_check_message() (fs/smb/server/smb2misc.c:402) iterates these elements and reads pdu->StructureSize2, a 2-byte field located at byte offset 64 (__SMB2_HEADER_STRUCTURE_SIZE) from each element's start. The compound-walking logic reduces the length bound to remaining bytes when NextCommand is 0, but does not enforce a minimum element size of 66 bytes before the StructureSize2 dereference. A specially crafted last element of exactly 64 bytes causes the read to extend one byte past the allocated slab region - confirmed by the KASAN trace showing a read of size 2 at an address 172 bytes into a 173-byte allocation. The root cause is a missing bounds check (buffer over-read, analogous to CWE-125) prior to dereferencing a structure field in a variable-length protocol message.

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 (Linux) PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
vuln.today AI 8.2 HIGH

Pre-auth network path requires no privileges; single-byte OOB read yields low confidentiality, no integrity impact; kernel crash yields high availability impact.

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

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

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

Lifecycle Timeline

4
CVSS changed
Aug 08, 2026 - 15:22 NVD
8.2 (HIGH)
Patch available
Aug 05, 2026 - 09:01 EUVD
CVE Published
Aug 05, 2026 - 08:09 cve.org
HIGH 8.2
CVE Published
Aug 05, 2026 - 08:09 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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

ksmbd: validate compound request size before reading StructureSize2

When ksmbd validates a compound (chained) SMB2 request, ksmbd_smb2_check_message() reads pdu->StructureSize2 without first checking that the compound element is large enough to contain it. StructureSize2 is a 2-byte field at offset 64 (__SMB2_HEADER_STRUCTURE_SIZE) from the start of each element.

The compound-walking logic only guarantees that a full 64-byte SMB2 header is present for the trailing element: when NextCommand is 0, len is reduced to the number of bytes remaining after next_smb2_rcv_hdr_off. A remote client can craft a compound request whose last element has exactly 64 bytes, so the 2-byte StructureSize2 read at offset 64 extends one byte past the receive buffer, producing a slab-out-of-bounds read.

BUG: KASAN: slab-out-of-bounds in ksmbd_smb2_check_message (fs/smb/server/smb2misc.c:402) Read of size 2 at addr ffff888012ae31ac by task kworker/0:1/14 The buggy address is located 172 bytes inside of allocated 173-byte region Workqueue: ksmbd-io handle_ksmbd_work Call Trace: ... kasan_report (mm/kasan/report.c:595) ksmbd_smb2_check_message (fs/smb/server/smb2misc.c:402) handle_ksmbd_work (fs/smb/server/server.c:119) process_one_work (kernel/workqueue.c:3314) worker_thread (kernel/workqueue.c:3397) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245)

Reject any compound element that is too small to hold StructureSize2 before dereferencing it.

Executive ViewAI

Why It Matters

A network-accessible denial-of-service vulnerability (CVE-2026-64578, CVSS 8.2) in the Linux kernel's SMB server can crash systems and leak memory without requiring any authentication. Any organization with Linux file services is a potential target; unpatched systems pose immediate business continuity risk. Vendor patches are available across all maintained kernel versions for immediate deployment.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Low
kernel SMB server, rarely enabled outside NAS/embedded Linux
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 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

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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
openSUSE Tumbleweed Fixed
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

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