Description
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.
Published: 2026-10-23
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Kernel heap corruption leading to potential arbitrary code execution
Action: Patch immediately
AI Analysis

Impact

The vulnerability arises from an incorrect calculation of the available buffer space in the ksmbd Kerberos authentication routine. When an SMB2_SESSION_SETUP message is processed as part of a compound SMB2 request, the calculation of out_len omits the offset of the next response header, causing the length check to pass incorrectly. As a result, a memcpy writes the Kerberos AP-REP blob past the end of response_buf, corrupting adjacent kernel heap memory. This out‑of‑bounds heap write can overwrite critical kernel data structures, potentially enabling an attacker to execute arbitrary code with kernel privileges.

Affected Systems

All Linux distributions that ship the standard Linux kernel with the ksmbd SMB daemon enabled are affected. This includes any system running a generic Linux kernel that includes ksmbd.

Risk and Exploitability

With a CVSS score of 8.8, the vulnerability is classified as high severity, reflecting the risk of kernel memory corruption. The EPSS score is less than 1% (approximately 0.4%), indicating a very low but nonzero probability of exploitation in the wild. The vulnerability is not yet listed in the CISA KEV catalog. Based on the description, it is inferred that a remote attacker can send a crafted SMB2 compound request to a vulnerable host without requiring authentication or elevated privileges. Given the nature of the out‑of‑bounds write and the remote access vector, organizations running exposed SMB services should consider this a significant risk.

Generated by OpenCVE AI on October 27, 2026 at 10:36 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest kernel update that includes the ksmbd bug fix.
  • Disable the ksmbd module if SMB services are not required.
  • Restrict SMB traffic to trusted networks and consider firewall rules that block SMB2 traffic from untrusted sources.

Generated by OpenCVE AI on October 27, 2026 at 10:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 13:00:00 +0000


Tue, 27 Oct 2026 09:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Tue, 27 Oct 2026 04:30:00 +0000


Sat, 24 Oct 2026 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Sat, 24 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Sat, 24 Oct 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sat, 24 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux

Fri, 23 Oct 2026 17:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Fri, 23 Oct 2026 13:00:00 +0000

Type Values Removed Values Added
Description 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.
Title ksmbd: fix heap out-of-bounds write in krb5_authenticate()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-30T12:41:38.581Z

Reserved: 2026-09-25T10:25:14.390Z

Link: CVE-2026-99083

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-23T13:17:32.577

Modified: 2026-10-30T13:21:44.380

Link: CVE-2026-99083

cve-icon Redhat

Severity : Critical

Publid Date: 2026-10-23T00:00:00Z

Links: CVE-2026-99083 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-27T10:45:06Z

Weaknesses