# CVE-2026-98115: ksmbd: safely drain sessions during logoff

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-09-25T10:36:01.119Z
- Modified: 2026-10-19T10:18:09.537Z
- Weaknesses: CWE-362
- Assigned by: Linux

## Description

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

ksmbd: safely drain sessions during logoff

SMB3 multichannel allows requests for one session to run on multiple
connections. Wait for all channels bound to a session before freeing
shared session objects.

A deferred byte-range lock remains counted as a running request and only
wakes when its file closes. Wake blocked locks during the drain without
unpublishing or modifying their file objects. Synchronous CANCEL requests
must invoke their cancellation callback to wake pending operations, while
CHANGE_NOTIFY completion remains specific to the asynchronous path.

Serialize session teardown with channel registration and previous-session
cleanup, and use atomic work-state transitions so LOGOFF, CANCEL, and
connection teardown invoke cancellation callbacks only once.

(As written by CVE List.)

## Affected

- Linux Linux: from 76e98a158b207771a6c9a0de0a60522a446a3447 before a7e6df0bb92642bee4431b2b85c69ada1e463b21; from 76e98a158b207771a6c9a0de0a60522a446a3447 before d12168084c8c1b6d883c8eca5853929ac5136a9e; 118fd997612d1efc94a86c307c6c6d659ebe29fc; c1e55020534c4aafbc38d8f5c4583ff30755ac18; from 6.6.48 before 6.7; from 6.10.7 before 6.11; 6.11 (not affected: before 6.11; from 7.2.7 up to 7.2.*; from 7.3 up to *)
- linux linux_kernel: from 6.6.48 before 6.7; from 6.10.7 before 6.11; from 6.11.1 before 7.2.7; 6.11; 7.3

## References

- <https://git.kernel.org/stable/c/a7e6df0bb92642bee4431b2b85c69ada1e463b21> (patch)
- <https://git.kernel.org/stable/c/d12168084c8c1b6d883c8eca5853929ac5136a9e> (patch)

## Sources

- CVE List: [CVE-2026-98115](https://www.cve.org/CVERecord?id=CVE-2026-98115), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98115](https://nvd.nist.gov/vuln/detail/CVE-2026-98115), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98115 · Whole record: https://cve.day/CVE-2026-98115.json · Rebuilt by cve.day 2026-11-25T22:59:41.066Z
