8.8High

CVE-2026-99083ksmbd: fix heap out-of-bounds write in krb5_authenticate()

Linux Linux Published: (27 days ago)

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.

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Linux Linux 5.15.145 – < 5.15.224, 6.1.40 – < 6.1.191, 6.4.5 – < 6.5
linux linux kernel 5.15.145 – < 5.15.224

Ubuntu fixes

  • USN-9173-1 Linux kernel vulnerabilities Ubuntu 24.04, 22.04 · 19.11.2026 · linux, linux-aws, linux-aws-fips, linux-gcp, linux-gcp-6.8, linux-gke,...
  • USN-9168-2 Linux kernel (FIPS) vulnerabilities Ubuntu 22.04 · 19.11.2026 · linux-fips, linux-gcp-fips
  • USN-9167-1 Linux kernel vulnerabilities Ubuntu 22.04, 20.04 · 19.11.2026 · linux, linux-aws, linux-gcp, linux-gcp-5.15, linux-gke, linux-gkeop,...
  • USN-9169-1 Linux kernel (AWS) vulnerabilities Ubuntu 20.04 · 19.11.2026 · linux-aws-5.15
  • USN-9168-1 Linux kernel vulnerabilities Ubuntu 22.04 · 19.11.2026 · linux-aws-fips, linux-kvm
  • USN-9166-1 Linux kernel vulnerabilities Ubuntu 26.04, 24.04 · 19.11.2026 · linux, linux-aws, linux-gcp, linux-gcp-7.0, linux-gke, linux-ibm,...

References and patches