KernelScan.io

HIGH Introduced in 6.4

ksmbd SessionSetup DoS

CVE-2026-98420

CVSS 7.5 / 10.0 KernelScan AI

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

01

In the Linux kernel, the following vulnerability has been resolved: ksmbd: follow SMB2 session expiration semantics ksmbd_session_register() destroys valid sessions after ten seconds of inactivity whenever a client starts another SessionSetup exchange. This confuses Session.IdleTime with Session.ExpirationTime. Windows can create additional authenticated sessions on an existing connection, so deleting the older session invalidates its tree connects and makes mapped drives fail with STATUS_NETWORK_NAME_DELETED. The session expiration rules require the server to change a valid session to expired only after its credential expiration time passes. A valid or expired session otherwise keeps its connection from being scavenged. Connections that have not negotiated a dialect, have no sessions, or have only InProgress sessions are disconnected after an implementation-specific timeout. Use the Windows-compatible 45 second value and run the expiration check periodically for both TCP and SMB Direct. Keep zero as an infinite credential expiration time, and count each Valid-to-Expired transition. Set expired sessions to InProgress when they reauthenticate. If authentication fails, remove the session from the global and per-connection tables immediately, including SMB3 multichannel connections. Retain protection against abandoned SessionId-zero exchanges by allowing only one InProgress authentication per connection. Additional exchanges fail with STATUS_INSUFFICIENT_RESOURCES, and stale InProgress sessions are reaped after the same 45 second setup timeout. This bounds the original unauthenticated memory-exhaustion path without evicting established sessions.

02

Engine v0.9.0

Risk summary

An unauthenticated remote attacker can cause a denial of service on a ksmbd SMB server by sending repeated SessionSetup requests, forcing the server to prematurely expire valid authenticated sessions. This disconnects legitimate clients and makes mapped drives fail with STATUS_NETWORK_NAME_DELETED. The vulnerability is reachable over the network without authentication.

Affectedfs/smb/server/ (ksmbd SMB server)

Vulnerability analysis

The ksmbd SMB server incorrectly conflated session idle time with credential expiration time. When a client initiated a new SessionSetup exchange, the server would destroy any existing valid session that had been idle for more than ten seconds, even though its credentials had not expired. This violates the SMB2 protocol semantics where Windows clients legitimately create additional authenticated sessions on an existing connection. The fix introduces proper session expiration based on Kerberos credential expiry, adds a periodic expiration worker, and enforces a 45-second timeout only for unauthenticated connections or those stuck in the InProgress state. It also bounds the number of concurrent InProgress authentications to one per connection to prevent the original memory-exhaustion vector.

03

BranchIntroducedFixed inPatch commit
5.155.15.1455.16c99ea7855124
6.16.1.296.2d7fd1f98607f
6.26.2.166.3—
6.36.3.26.4—
7.26.47.2.8—
mainline6.47.3—

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Affected — no CIP fix yet (latest 6.12.114-cip34)
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)