CVE-2026-99273

ksmbd: reserve space for the UTF-16 terminator in stream info

Published Nov 7, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ksmbd: reserve space for the UTF-16 terminator in stream info

smb_strtoUTF16() always writes a terminating zero UTF-16 unit after the
converted characters, but get_file_stream_info() budgets only
sizeof(struct smb2_file_stream_info) + streamlen * 2 for a stream entry
and sizeof(struct smb2_file_stream_info) + 7 * 2 for the trailing
"::$DATA" entry. When an entry exactly fills the 448-byte small response
buffer, the terminator is written two bytes past the allocation.

Reserve one extra UTF-16 unit in both budget checks. The terminator is
not part of the wire format, so the reported lengths are unchanged.

Analysis

AI-generated

Technical impact

The vulnerability arises when ksmbd converts SMB stream names to UTF‑16; the terminator is always written, but the allocation logic reserves too little memory. When a stream entry exactly fills the 448‑byte small response buffer, the terminator is written two bytes beyond the allocated space, corrupting kernel memory. If successfully triggered, the overflow could cause a kernel crash or provide an attacker with an avenue to execute arbitrary code with kernel privileges, leading to denial of service or privileged escalation.

Affected Systems

All Linux kernel installations that have not yet incorporated the commit which reserves additional UTF‑16 space are affected. No specific version range is listed, but the issue exists until the patch from the cited maintenance commits is merged into the running kernel.

Risk and Exploitability

The CVSS score of 6.5 indicates a medium‑severity risk. The EPSS score is not available and the vulnerability is not in the CISA KEV catalog, indicating no known active exploitation. The likely attack vector is remote, via the SMB protocol that ksmbd serves over the network. An attacker must craft a SMB request containing a stream name that exactly fills the buffer, which is achievable without authentication, so the risk remains substantial until patched.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the patch reserving space for the UTF‑16 terminator (commits 06a7518, 0e64f89, a025c49), or install a kernel version from the stable branch that incorporates the fix.
  • If an immediate kernel upgrade is not possible, disable the ksmbd service on hosts that do not require SMB sharing, or isolate the host on a dedicated network segment.
  • Use firewall or network segmentation to restrict SMB (port 445) traffic from untrusted networks until the kernel is updated.

Generated by OpenCVE AI on November 8, 2026 at 01:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4927-1 linux-6.12 security update
History
Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: reserve space for the UTF-16 terminator in stream info smb_strtoUTF16() always writes a terminating zero UTF-16 unit after the converted characters, but get_file_stream_info() budgets only sizeof(struct smb2_file_stream_info) + streamlen * 2 for a stream entry and sizeof(struct smb2_file_stream_info) + 7 * 2 for the trailing "::$DATA" entry. When an entry exactly fills the 448-byte small response buffer, the terminator is written two bytes past the allocation. Reserve one extra UTF-16 unit in both budget checks. The terminator is not part of the wire format, so the reported lengths are unchanged.
Title ksmbd: reserve space for the UTF-16 terminator in stream info
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 25, 2026, 6:18 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 7, 2026, 2:17 PM
Modified
Nov 25, 2026, 7:17 PM
Severity
Moderate
Public date
Nov 7, 2026, 2:08 PM