Description
In the Linux kernel, the following vulnerability has been resolved:

ksmbd: drain session procfs readers before dropping table references

Session registration failure and connection cleanup can drop the table
reference while the per-session procfs entry is still accessible. If a
reader holds the last remaining reference, its final put calls
proc_remove() from its own callback and waits for that callback to
finish.

Remove the procfs entry before dropping the table reference in the
registration failure path. Queue sessions removed during connection
cleanup and drain their procfs readers after releasing both session
locks, then return their table references. Keep the global hash node
unhashed while a session is queued so a concurrent unregister cannot
drop the reference again.

Previous-session replacement also destroys the file table before the
session is finally freed. Detach the idr under the lock used by procfs
file counters, and report zero files after it has been detached. This
prevents a reader from accessing the idr during or after its
destruction.
Published: 2026-11-07
Score: n/a
EPSS: n/a
KEV: No
Impact: Kernel Memory Corruption
Action: Apply Patch
AI Analysis

Impact

The Linux kernel’s ksmbd subsystem contains a race condition that allows a reader of a per‑session procfs entry to trigger a use‑after‑free when the session is deregistered or replaced. If the last reference held by the reader is released while the session table reference is still dropped, the reader’s callback may attempt to remove the procfs entry and block until the callback finishes, potentially leading to kernel memory corruption or a crash. The flaw originates from draining session procfs readers after dropping table references, which can leave the kernel in an inconsistent state.

Affected Systems

All kernel releases that include a functional ksmbd component and do not contain the fix introduced in commit 1c087cf7d5386c708d8984b263280b42b3daada0 are affected. This includes any system that has the SMB/CIFS server enabled within the kernel, regardless of distribution. Users must verify whether their kernel builds incorporate the specific commit sequence that drains procfs readers before dropping references to avoid the vulnerability.

Risk and Exploitability

The CVSS score is not provided, and the EPSS score is not available. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a local or privileged user capable of creating, replacing, or terminating ksmbd sessions, which can trigger the use‑after‑free and cause a kernel crash; consequently, the impact is denial of service and loss of availability. Because no publicly reported exploits exist at this time, exploitation is considered low to medium, but the severity of a resulting kernel crash warrants caution.

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a release that contains the fix from commit 1c087cf7d5386c708d8984b263280b42b3daada0, which drains ksmbd procfs readers before dropping the session table reference.
  • If a kernel upgrade is not immediately possible, temporarily disable the ksmbd module or block SMB/CIFS traffic until the updated kernel is deployed to prevent the race condition from being triggered.
  • Continuously monitor kernel logs (e.g., via dmesg or journalctl) for signs of panic or abnormal exits that may indicate the vulnerability has been exploited.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

Type Values Removed Values Added
Weaknesses CWE-362
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: drain session procfs readers before dropping table references Session registration failure and connection cleanup can drop the table reference while the per-session procfs entry is still accessible. If a reader holds the last remaining reference, its final put calls proc_remove() from its own callback and waits for that callback to finish. Remove the procfs entry before dropping the table reference in the registration failure path. Queue sessions removed during connection cleanup and drain their procfs readers after releasing both session locks, then return their table references. Keep the global hash node unhashed while a session is queued so a concurrent unregister cannot drop the reference again. Previous-session replacement also destroys the file table before the session is finally freed. Detach the idr under the lock used by procfs file counters, and report zero files after it has been detached. This prevents a reader from accessing the idr during or after its destruction.
Title ksmbd: drain session procfs readers before dropping table references
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 Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

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

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

Link: CVE-2026-99280

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-99280

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-07T15:30:07Z

Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-416

    Use After Free