<Vulnerability name="CVE-2026-99273">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Moderate</ThreatSeverity>
    <PublicDate>2026-11-07T14:08:45</PublicDate>
    <Bugzilla id="2568620" url="https://bugzilla.redhat.com/show_bug.cgi?id=2568620" xml:lang="en:us">
kernel: kernel: ksmbd: Denial of Service via out-of-bounds write in get_file_stream_info()
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>6.5</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-787</CWE>
    <Details xml:lang="en:us" source="Mitre">
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.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in the Linux kernel's ksmbd Server Message Block (SMB) server. When preparing file stream information, the server does not account for a terminating character during response buffer size checks, leading to a two-byte out-of-bounds write. A remote attacker could exploit this flaw by issuing file stream queries that fill the response buffer, causing memory corruption that may result in a system crash (Denial of Service) or potential arbitrary code execution.
    </Details>
    <Statement xml:lang="en:us">
This vulnerability is rated as Moderate severity because exploitation requires an authenticated remote user to query file stream metadata on an active SMB share, and the resulting out-of-bounds write predominantly triggers a kernel crash causing a denial of service. The in-kernel SMB server (ksmbd) is not enabled by default in Red Hat Enterprise Linux, where file sharing deployments typically rely on the userspace Samba daemon instead. Systems that do not explicitly configure or run ksmbd are not exposed to this flaw.
    </Statement>
    <Mitigation xml:lang="en:us">
To mitigate this vulnerability, prevent the ksmbd kernel module from loading on the system:

1. Create a configuration file to disable the module:
# echo "install ksmbd /bin/true" &gt; /etc/modprobe.d/disable-ksmbd.conf

2. If the service is running and the module is currently loaded, stop the service and unload the module:
# systemctl stop ksmbd.service
# modprobe -r ksmbd

Caveats and Warning: Disabling or unloading the ksmbd module terminates any active SMB connections hosted via the in-kernel SMB server and prevents the service from operating. If active processes or dependencies prevent the module from being unloaded dynamically, a system restart is required to apply the change.
    </Mitigation>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux:10">
        <ProductName>Red Hat Enterprise Linux 10</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>kernel</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:rhel_els:6">
        <ProductName>Red Hat Enterprise Linux 6</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>kernel</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:rhel_els:7">
        <ProductName>Red Hat Enterprise Linux 7</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>kernel</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:rhel_els:7">
        <ProductName>Red Hat Enterprise Linux 7</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>kernel-rt</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux:8">
        <ProductName>Red Hat Enterprise Linux 8</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>kernel</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux:8">
        <ProductName>Red Hat Enterprise Linux 8</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>kernel-rt</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux:9">
        <ProductName>Red Hat Enterprise Linux 9</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>kernel</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux:9">
        <ProductName>Red Hat Enterprise Linux 9</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>kernel-rt</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift:4">
        <ProductName>Red Hat OpenShift Container Platform 4</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>openshift/ose-rhel-coreos-8</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift:4">
        <ProductName>Red Hat OpenShift Container Platform 4</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>openshift/ose-rhel-coreos-9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift:5">
        <ProductName>Red Hat OpenShift Container Platform 5</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>openshift/ose-rhel-coreos-10</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift:5">
        <ProductName>Red Hat OpenShift Container Platform 5</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>openshift/ose-rhel-coreos-9</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-99273
https://nvd.nist.gov/vuln/detail/CVE-2026-99273
https://git.kernel.org/stable/c/06a751809ebd33e95b05bf733697318a17a4872b
https://git.kernel.org/stable/c/0e64f89563164719ceb1aa33f2a8bfd6391fa340
https://git.kernel.org/stable/c/a025c4991a7d83edc4dd339e3ea86d8ff6226eca
    </References>
</Vulnerability>