smb/server: fix session leak in ksmbd_session_register()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.16, 6.2, 6.3, 6.4, 6.6.160, and 3 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From f5c779b7ddbda30866cf2a27c63e34158f858c73 · fixed in 988f99bfddda4e2d1da5f6e98b237dd85e123cee; From f5c779b7ddbda30866cf2a27c63e34158f858c73 · fixed in 03a22a003f41b182245e6c71fe565e277cff7094; From f5c779b7ddbda30866cf2a27c63e34158f858c73 · fixed in b967a595fb735d313a8676b2ca6a4cba38506482; From f5c779b7ddbda30866cf2a27c63e34158f858c73 · fixed in 55c677619084f9c9fa4146d933cc8ccafc924c87; From f5c779b7ddbda30866cf2a27c63e34158f858c73 · fixed in 99b25b046e47e4904373cfeb445c5483f1633d88; 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 Linux
6.4
- KernelLinux
From 6.4.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6