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.
Published: 2026-11-07
Score: n/a
EPSS: n/a
KEV: No
Impact: Use‑after‑free leading to memory corruption or denial of service
Action: Apply patch
AI Analysis

Impact

The flaw occurs when ksmbd_session_unregister() removes a session from its global and per‑connection tables before decrementing the table reference count. While these tables are cleared, another part of the kernel may still hold a reference to the session. Because a channel only stores a raw connection pointer, the connection can be freed while it is still being accessed, for example during SMB3.1.1 binding or a procfs read. This order of operations creates a use‑after‑free condition that can corrupt memory, crash the kernel, or, if an attacker can finesse the timing, enable execution of arbitrary code. This type of vulnerability is characteristic of a use‑after‑free bug, where memory that has been freed is accessed again. Attackers that can interact with the SMB service—such as a client establishing or terminating SMB3.1.1 sessions—can potentially trigger the flaw by causing a concurrent session unregister. Because the flaw involves internal kernel data structures, exploitation would generally require privileged sandbox escalation or a kernel exploit that takes advantage of the corrupted state. Even a crash or denial of service can be harmful in a critical or high‑availability environment.

Affected Systems

All Linux kernel implementations that contain the ksmbd SMB server component are affected. The available data does not list specific kernel versions; therefore any distribution using a ksmbd‑enabled kernel prior to the patch that introduces this reference‑holding change is potentially vulnerable. Vendors that ship their own kernel packages, such as Red Hat, Ubuntu, SUSE, and others, should verify whether the commit that resolves the issue has been rolled into their releases.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not currently listed in the CISA KEV catalog, so public exploitation attempts have not been reported. The CVSS score is not supplied in the data, but the nature of the bug (use‑after‑free of a core kernel data structure) suggests a severity that could range from medium to high, especially if the attacker can force the kernel to access freed memory. The likely attack vector is remote, via an SMB client that can trigger session unregister while another session holds a reference. Even if the check for exploitation was straightforward, the lack of a CVSS metric makes precise risk assessment difficult. Given the kernel context, the potential impact includes denial of service and privilege escalation.

Generated by OpenCVE AI on November 7, 2026 at 15:25 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes the reference‑holding fix in ksmbd_session_unregister and related channel cleanup functions.
  • If an immediate kernel upgrade is not possible, restrict or disable SMB3.1.1 binding by configuring the SMB service or by limiting access to the affected kernel modules to reduce exposure.
  • Continuously monitor kernel logs for anomalous crashes or abnormal SMB session behavior, and consider enabling verbosity or crash dumping to detect early signs of exploitation attempts.

Generated by OpenCVE AI on November 7, 2026 at 15:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 07 Nov 2026 16:30:00 +0000

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux

Sat, 07 Nov 2026 15:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 07 Nov 2026 14:15:00 +0000

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

Subscriptions

Linux Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-11-07T14:08:46.710Z

Reserved: 2026-09-25T10:25:14.405Z

Link: CVE-2026-99277

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-07T14:17:03.080

Modified: 2026-11-07T14:17:03.080

Link: CVE-2026-99277

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-07T16:15:14Z

Weaknesses