# CVE-2026-90152: smb/server: fix session leak in ksmbd_session_register()

- Severity: not scored yet
- 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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-09-17T16:06:45.641Z
- Modified: 2026-10-30T13:20:43.723Z
- Assigned by: Linux

## Description

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

smb/server: fix session leak in ksmbd_session_register()

See the procedure below:

  smb2_sess_setup
    ksmbd_smb2_session_create
      __session_create
        atomic_set(&sess->refcnt, 2)
        hash_add(sessions_table, &sess->hlist, sess->id)
    ksmbd_session_register
      xa_store(&conn->sessions, sess->id, sess) // fail
    ksmbd_user_session_put
      atomic_dec(&sess->refcnt) // refcnt is 1, session is not freed

Remove the session from sessions_table and drop its table reference if
xa_store() fails.

(As written by CVE List.)

## Affected

- Linux Linux: from f623f627ad2b1dc215ab3b0df53fb05cfd3a1c3b before 869807cdd5599c289c21d40f36a504d72a0d23c6; from f5c779b7ddbda30866cf2a27c63e34158f858c73 before 988f99bfddda4e2d1da5f6e98b237dd85e123cee; from f5c779b7ddbda30866cf2a27c63e34158f858c73 before 03a22a003f41b182245e6c71fe565e277cff7094; from f5c779b7ddbda30866cf2a27c63e34158f858c73 before b967a595fb735d313a8676b2ca6a4cba38506482; from f5c779b7ddbda30866cf2a27c63e34158f858c73 before 55c677619084f9c9fa4146d933cc8ccafc924c87; from f5c779b7ddbda30866cf2a27c63e34158f858c73 before 99b25b046e47e4904373cfeb445c5483f1633d88; 708c304b583d789957399dd8237f212cf8ad1e4d; d270631c21e68fb8016d6e231d022d7023a2df6f; 02f41d88f15d6b7d523e52cc3f87488f57e9265b; from 6.1.29 before 6.1.191; from 5.15.145 before 5.16; from 6.2.16 before 6.3; and 2 more (not affected: before 6.4; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.110 up to 6.12.*; from 6.18.52 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/869807cdd5599c289c21d40f36a504d72a0d23c6>
- <https://git.kernel.org/stable/c/988f99bfddda4e2d1da5f6e98b237dd85e123cee>
- <https://git.kernel.org/stable/c/03a22a003f41b182245e6c71fe565e277cff7094>
- <https://git.kernel.org/stable/c/b967a595fb735d313a8676b2ca6a4cba38506482>
- <https://git.kernel.org/stable/c/55c677619084f9c9fa4146d933cc8ccafc924c87>
- <https://git.kernel.org/stable/c/99b25b046e47e4904373cfeb445c5483f1633d88>

## Sources

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

---

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