← Back to CVE List
CVE-2026-90152NVD
Vulnerability Summary
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.
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.
Affected & Patched Versions
- Linux Linux >= f5c779b7ddbda30866cf2a27c63e34158f858c73 and < 03a22a003f41b182245e6c71fe565e277cff7094
- Linux Linux >= f5c779b7ddbda30866cf2a27c63e34158f858c73 and < b967a595fb735d313a8676b2ca6a4cba38506482
- Linux Linux >= f5c779b7ddbda30866cf2a27c63e34158f858c73 and < 55c677619084f9c9fa4146d933cc8ccafc924c87
- Linux Linux >= f5c779b7ddbda30866cf2a27c63e34158f858c73 and < 99b25b046e47e4904373cfeb445c5483f1633d88
- Linux Linux >= 708c304b583d789957399dd8237f212cf8ad1e4d
- Linux Linux >= f623f627ad2b1dc215ab3b0df53fb05cfd3a1c3b
- Linux Linux >= d270631c21e68fb8016d6e231d022d7023a2df6f
- Linux Linux >= 02f41d88f15d6b7d523e52cc3f87488f57e9265b
- Linux Linux >= 5.15.145 and < 5.16
- Linux Linux >= 6.1.29 and < 6.2
- Linux Linux >= 6.2.16 and < 6.3
- Linux Linux >= 6.3.2 and < 6.4
- Linux Linux >= 6.4
- Linux Linux 03a22a003f41b182245e6c71fe565e277cff7094
- Linux Linux b967a595fb735d313a8676b2ca6a4cba38506482
- Linux Linux 55c677619084f9c9fa4146d933cc8ccafc924c87
- Linux Linux 99b25b046e47e4904373cfeb445c5483f1633d88
- Linux Linux 5.16
- Linux Linux 6.2
- Linux Linux 6.3
- Linux Linux 6.4