Linux
ksmbd: scope conn->binding slowpath to bound sessions only
In the Linux kernel, the following vulnerability has been resolved: ksmbd: scope conn->binding slowpath to bound sessions only When the binding SESSION_SETUP sets conn->binding = true, the flag stays set after the call so that the global session lookup in ksmbd_session_lookup_all() can find the session, which was not added to conn->sessions. Because the flag is connection-wide, the global lookup path will also resolve any other session by id if asked. Tighten the global lookup so that the returned session must have this connection registered in its channel xarray (sess->ksmbd_chann_list). The channel entry is installed by the existing binding_session path in ntlm_authenticate()/krb5_authenticate() when a SESSION_SETUP completes successfully, so this condition is a strict equivalent of "this connection has been accepted as a channel of this session". Connections that have not bound to a given session cannot reach it via the global table. The existing conn->binding gate for entering the slowpath is preserved so that non-binding connections keep the fast-path-only behavior, and the session->state check is unchanged.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= f5a544e3bab78142207e0242d22442db85ba1eff, < e74c00c6af428a39e564cdc5bd3a3648c6d8de87
- >= f5a544e3bab78142207e0242d22442db85ba1eff, < e3a93ce6e25757b8f375e38b8f91e1d9da4edc1a
- >= f5a544e3bab78142207e0242d22442db85ba1eff, < 1ff46c9915c1cbf454db58a8cb87f7cac818e6a6
- >= f5a544e3bab78142207e0242d22442db85ba1eff, < 974c1c224e85549dc3459f3bb2255bbbdd2b9372
- >= f5a544e3bab78142207e0242d22442db85ba1eff, < 2cc8a4db633b10715450b291c1343859a4b2c509
- >= f5a544e3bab78142207e0242d22442db85ba1eff, < 1e2bec062c5c9ec282636715166056d0998d746d
- >= f5a544e3bab78142207e0242d22442db85ba1eff, < b0da97c034b6107d14e537e212d4ce8b22109a58
Fixed in e74c00c6af428a39e564cdc5bd3a3648c6d8de87, e3a93ce6e25757b8f375e38b8f91e1d9da4edc1a, 1ff46c9915c1cbf454db58a8cb87f7cac818e6a6, 974c1c224e85549dc3459f3bb2255bbbdd2b9372, 2cc8a4db633b10715450b291c1343859a4b2c509, 1e2bec062c5c9ec282636715166056d0998d746d, b0da97c034b6107d14e537e212d4ce8b22109a58
- 5.15
Fixed in 0, 5.15.209, 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10, 7.1
Mitigation
Upgrade Linux to e74c00c6af428a39e564cdc5bd3a3648c6d8de87 or e3a93ce6e25757b8f375e38b8f91e1d9da4edc1a or 1ff46c9915c1cbf454db58a8cb87f7cac818e6a6 or 974c1c224e85549dc3459f3bb2255bbbdd2b9372 or 2cc8a4db633b10715450b291c1343859a4b2c509 or 1e2bec062c5c9ec282636715166056d0998d746d or b0da97c034b6107d14e537e212d4ce8b22109a58 or later.
Upgrade Linux to 0 or 5.15.209 or 6.1.175 or 6.6.141 or 6.12.91 or 6.18.33 or 7.0.10 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.