ksmbd: fix session use-after-free in multichannel connection
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0626e6641f6b467447c81dd7678a69c66f7746cf · < fa4cdb8cbca7d6cb6aa13e4d8d83d1103f6345db| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix session use-after-free in multichannel connection
There is a race condition between session setup and ksmbd_sessions_deregister. The session can be freed before the connection is added to channel list of session. This patch check reference count of session before freeing it.
From the CVE record · Linux
The Linux kernel’s ksmbd has a race between session setup and session deregistration during multichannel connections. A session can be freed before its connection is added to the session’s channel list, causing a use-after-free. The input does not specify whether authentication or other user interaction is required to trigger it.
Engineers running Linux systems with ksmbd should check their kernel versions; affected versions are not specified.