<Vulnerability name="CVE-2026-99277">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Moderate</ThreatSeverity>
    <PublicDate>2026-11-07T14:08:46</PublicDate>
    <Bugzilla id="2568638" url="https://bugzilla.redhat.com/show_bug.cgi?id=2568638" xml:lang="en:us">
kernel: kernel: ksmbd: Denial of Service via use-after-free in session channel handling
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>5.3</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-825</CWE>
    <Details xml:lang="en:us" source="Mitre">
In the Linux kernel, the following vulnerability has been resolved:

ksmbd: hold a connection reference for each session channel

ksmbd_session_unregister() removes a session from the global and per-
connection tables before dropping the table reference. A concurrent
reference holder can keep the session and its channel list alive after
those removals.

Connection cleanup can no longer find the unpublished session to remove its
channels. Since a channel only stores a raw conn pointer, the connection
can be freed while another session reference holder is still accessing it,
for example during SMB3.1.1 binding or a procfs read.

Take a connection reference when registering a channel and release it on
insertion failure, channel removal, or final session destruction. Keep the
channels and signing keys until the session is destroyed so a response can
still be signed after the session has been unregistered.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in the Linux kernel's ksmbd, an in-kernel Server Message Block (SMB) server. A remote attacker could exploit this flaw to cause a denial of service (DoS) or potentially corrupt kernel memory. The issue occurs due to improper reference counting during session channel management, where a connection structure can be freed while still in use by an active session channel. By triggering concurrent SMB operations, an attacker can induce a use-after-free condition leading to a system crash.
    </Details>
    <Statement xml:lang="en:us">
This vulnerability is rated as Moderate because successful exploitation requires authenticated network access to establish SMB session channels and primarily leads to a denial of service via a kernel crash. In Red Hat Enterprise Linux, the in-kernel SMB server (ksmbd) is not loaded or configured by default, as standard installations rely on user-space Samba for SMB file sharing. Only systems where administrators have explicitly enabled and deployed ksmbd are exposed to this flaw.
    </Statement>
    <Mitigation xml:lang="en:us">
Disable the ksmbd kernel module to prevent it from loading:

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

2. If the module is currently loaded, unload it:
```
modprobe -r ksmbd
```

Caveats:
Disabling the ksmbd module prevents the system from running the in-kernel SMB server. If the module is actively in use by SMB sessions, dependent services must be stopped prior to unloading, or a system restart may be required to apply the changes.
    </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-99277
https://nvd.nist.gov/vuln/detail/CVE-2026-99277
https://git.kernel.org/stable/c/4b333aed69cfc2c8687b86b6a4364a0dffc16dd8
https://git.kernel.org/stable/c/add8d7fb04efe564193df73581889c62fc0016f1
https://kernelcve.org/list/?q=CVE-2026-99277
    </References>
</Vulnerability>