ZeroHour

CVE-2026-68431

large

Unauthenticated Out-of-Bounds Read in Linux Kernel ksmbd SMB Server

CVSS 3.1
9.1 critical
EPSS
<1%p30
Published
()
Modified
AI analysis

CVE-2026-68431 is an out-of-bounds read in the ksmbd in-kernel SMB server of the Linux kernel, rated 9.1 (critical) with a CVSS vector of high confidentiality and high availability impact over the network with no privileges or user interaction required. The receive path only enforces the minimum SMB2 PDU size when the packet's ProtocolId is SMB2_PROTO_NUMBER, so a packet marked as an SMB2 transform (SMB2_TRANSFORM_PROTO_NUM) skips the size check even when the negotiated dialect (e.g., SMB 2.1) provides no transform handling; the truncated request then reaches init_smb2_rsp_hdr(), which treats it as a full SMB2 header and reads past the end of the request allocation. An unauthenticated attacker with network access to an affected SMB service can send such a short transform packet and receive memory read beyond the allocation back in the response (information disclosure), and the critical CVSS score also reflects potential service-disruption impact. Any Linux system running the ksmbd SMB server and exposed over the network is affected; the source data specifies no affected or fixed version range. No public proof-of-concept or known in-the-wild exploitation exists (EPSS 0.4%, not in CISA KEV), though a Zero Day Initiative advisory (ZDI-26-573) documents the flaw.

What to do: Upgrade to a kernel build containing the ksmd fix 'ksmbd: validate minimum PDU size for transform requests' — check your distribution's kernel security advisory, as no fixed version number was provided in the source data. Until patched, disable the ksmbd SMB server where it is not required and restrict SMB (port 445) to trusted networks with a firewall. Because the flaw is triggered on connections negotiated with dialects lacking transform handling (e.g., SMB 2.1), disabling legacy SMB 2.1 dialects may also reduce exposure.

Affected
Linux kernel (ksmbd SMB server subsystem)
Estimated exposure
large~tens of thousands of deployed or internet-exposed ksmbd servers (estimate) — No public scan counts were provided; SMB (port 445) exposure is common on Linux servers and NAS/embedded devices, but ksmbd is an optional in-kernel SMB server generally far less deployed than Samba, which supports an order-of-magnitude…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate minimum PDU size for transform requests The receive path applies the minimum SMB2 PDU size check only when ProtocolId is SMB2_PROTO_NUMBER. A packet carrying SMB2_TRANSFORM_PROTO_NUM bypasses the check even when the negotiated dialect does not provide transform handling. On an SMB 2.1 connection, a short transform packet therefore reaches init_smb2_rsp_hdr(), which interprets the request as a full SMB2 header and reads beyond the request allocation. The copied fields can then be returned to the unauthenticated client. Compression transforms are converted to ordinary SMB2 messages before protocol validation. After that conversion, validate ordinary SMB2 requests against SMB2_MIN_SUPPORTED_PDU_SIZE and require encryption transform requests to contain both a transform header and an SMB2 header. This rejects truncated requests before work allocation.

Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

In the news

ZDI-26-573: Linux Kernel KSMBD Response Header Out-Of-Bounds Read Information Disclosure Vulnerability

ZDI disclosed an unauthenticated out-of-bounds read (CVE-2026-68431) in Linux Kernel KSMBD causing sensitive information disclosure, CVSS 9.3.

The Zero Day Initiative published ZDI-26-573 describing an out-of-bounds read in the Linux Kernel KSMBD response header handling. Unauthenticated remote attackers can disclose sensitive information, but only systems with ksmbd enabled are affected. ZDI assigned a CVSS score of 9.3 and the identifier CVE-2026-68431.

ZDI Published Advisories · Aug 13, 2026VulnerabilityCVE-2026-68431