Linux Kernelのksmbdで遠隔からヒープ領域の範囲外書き込みが起きる
Summary
Linux Kernelのksmbdで、複合SMB2リクエスト内のSMB2_SESSION_SETUP処理時に応答バッファの残り容量の計算が誤り、カーネルのヒープ領域に範囲外書き込みが発生する脆弱性です。影響を受けるのは6.6.160より前、6.7.0以上6.12.114より前、6.13.0以上6.18.58より前、6.19.0以上7.2.12より前のバージョンです。修正版として6.6.160、6.12.114、6.18.58、7.2.12が公開されているため、利用中のカーネルを更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Linux Kernelのksmbdで、複合SMB2リクエスト内のSMB2_SESSION_SETUP処理時に応答バッファの残り容量の計算が誤り、カーネルのヒープ領域に範囲外書き込みが発生する脆弱性です。影響を受けるのは6.6.160より前、6.7.0以上6.12.114より前、6.13.0以上6.18.58より前、6.19.0以上7.2.12より前のバージョンです。修正版として6.6.160、6.12.114、6.18.58、7.2.12が公開されているため、利用中のカーネルを更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 5.15.145, < 5.15.224→ 5.15.224 ≥ 6.1.40, < 6.1.191→ 6.1.191 ≥ 6.4.5, < 6.5→ 6.5 ≥ 6.5.0, < 6.6.160→ 6.6.160 ≥ 6.7.0, < 6.12.114→ 6.12.114 ≥ 6.13.0, < 6.18.58→ 6.18.58 ≥ 6.19.0, < 7.2.12→ 7.2.12 |
5.15.224 6.1.191 6.5 6.6.160 6.12.114 6.18.58 7.2.12 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-99083 linux-lts Fix available
- Debian DEBIAN-CVE-2026-99083 linux-6.12, linux Fix available
- Ubuntu UBUNTU-CVE-2026-99083 linux-vmware, linux-realtime-6.8, linux-realtime +40 more Fix available
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com
- web git.kernel.org
- web git.kernel.org