CVE-2026-99280

ksmbd: drain session procfs readers before dropping table references

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

Analysis

AI-generated

Technical 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.

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.

Risk and Exploitability

The CVSS score is 5.5, the EPSS score is not available, and 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. The impact is denial of service and loss of availability, and 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.

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 8, 2026 at 03:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Weaknesses CWE-833
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/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-362
CWE-416
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
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 25, 2026, 6:19 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