Skip to main content

Linux Kernel ksmbd CVE-2026-64578

| EUVDEUVD-2026-53272 HIGH
2026-08-05 Linux GHSA-wrjv-h4c7-cj2f
8.2
CVSS 3.1 · Vendor: Linux
Share

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

5
Analysis Generated
Aug 08, 2026 - 15:31 vuln.today
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.

AnalysisAI

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.

Technical ContextAI

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.

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.

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

Share

CVE-2026-64578 vulnerability details – vuln.today

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