CVE-2026-99277

ksmbd: hold a connection reference for each session channel

Published Nov 7, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The ksmbd_session_unregister() routine in the Linux kernel clears a session from its global and per‑connection tables before releasing the table reference count. While these tables are cleared, another part of the kernel may still hold a reference to the session. Because every channel only stores a raw connection pointer, the connection object can be freed while an active session still references it. This ordering issue results in a use‑after‑free bug that can corrupt memory or crash the kernel. If an attacker can trigger the concurrent unregister timing, she may be able to execute code with elevated privileges or cause a denial of service. The direct impact is thus memory corruption or system instability arising from freed memory being accessed again.

Affected Systems

All Linux kernels that ship the ksmbd SMB server component and have not incorporated the reference‑holding change are affected. The commit that introduces the fix is not tied to a specific distribution version in the data, so any distribution using a ksmbd‑enabled kernel prior to that change is potentially vulnerable. Users should verify that the patch is present in their kernel releases.

Risk and Exploitability

The CVSS score of 7.5 indicates high severity. The EPSS score of < 1% suggests that exploitation likelihood is low, and the vulnerability is not listed in the CISA KEV catalog, meaning public exploitation is not currently documented. The inferred attack vector is remote, via an SMB client that can trigger a session unregister while another session still holds a reference. By achieving timing that causes the use‑after‑free, an attacker could crash the kernel or, in some circumstances, execute arbitrary code. The overall risk depends on the exposure of the SMB service and the ability of an adversary to interact with it from outside the local system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes the ksmbd reference‑holding fix. The update replaces the ksmbd_session_unregister() routine with one that takes a connection reference for each channel and releases it appropriately.
  • If a kernel upgrade cannot be performed immediately, limit or disable SMB3.1.1 usage or restrict client access to the SMB service so that session unregistration is minimized. This reduces the surface area for a potential timing attack.
  • Monitor system logs and crash dumps for anomalies related to the SMB service. Enable verbose logging or syscall tracing to detect abnormal session handling that may indicate exploitation attempts.

Generated by OpenCVE AI on November 15, 2026 at 09:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics 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'}

cvssV3_1

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

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-825
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
Weaknesses CWE-416
Type Values Removed Values Added
Description 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.
Title ksmbd: hold a connection reference for each session channel
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-825

    Expired Pointer Dereference

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