KernelScan.io

HIGH Introduced in 6.5

ksmbd CompoundRequest Overflow

CVE-2026-99083

CVSS 8.8 / 10.0 NVD

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

KernelScan AI9.8CRITICAL

01

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix heap out-of-bounds write in krb5_authenticate() In krb5_authenticate(), out_len is calculated to determine available headroom in response_buf for the incoming Kerberos AP-REP token. However, when SMB2_SESSION_SETUP is processed as a non-first element of a compounded SMB2 request, the calculation omits work->next_smb2_rsp_hdr_off. This causes out_len to overstate remaining buffer headroom by the cumulative size of prior responses in the compound chain. Consequently, the length check in ksmbd_krb5_authenticate() (*out_len <= resp->spnego_blob_len) passes erroneously, allowing memcpy() to write the AP-REP blob past the end of response_buf into adjacent kernel heap memory. Fix this by subtracting work->next_smb2_rsp_hdr_off when computing out_len, ensuring it accurately reflects physical remaining buffer space.

02

Engine v0.9.0

Risk summary

An unauthenticated remote attacker can send a crafted compounded SMB2 request to a ksmbd server, triggering a heap buffer overflow during Kerberos authentication. This allows arbitrary kernel memory corruption, leading to remote code execution, privilege escalation, information disclosure, or denial of service. Any system running the ksmbd kernel SMB server with network exposure is at risk.

Affectedfs/smb/server/smb2pdu.c (ksmbd)

Vulnerability analysis

When processing a compounded SMB2 request (multiple commands in one packet), the ksmbd server miscalculates the remaining space in the response buffer for a Kerberos AP-REP token during session setup. The calculation fails to account for space already consumed by prior responses in the compound chain, causing a length check to pass incorrectly. This allows a memcpy() to write the authentication blob past the end of the allocated response buffer into adjacent kernel heap memory. The fix subtracts the cumulative offset of prior responses from the available space calculation, ensuring the length check accurately reflects physical buffer boundaries. The vulnerability is reachable over the network by any unauthenticated sender that can deliver SMB2 traffic to the ksmbd listener on TCP port 445.

03

BranchIntroducedFixed inPatch commit
5.155.15.1455.15.224a07dfb33112a
6.16.1.406.1.1911f73a6d40f4d
6.126.56.12.114517404e15739
6.186.56.18.584722d06b2907
6.46.4.56.559c6dcc5dd9d
6.66.56.6.16080af1bde97d5
7.26.57.2.1223a0be6a84a3
mainline6.57.3—
cip/6.126.56.12.114-cip3480af1bde97d5

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)