smb: server: fix leak of active_num_conn in ksmbd_tcp_new_connection()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0d0d4680db22eda1eea785c47bbf66a9b33a8b16 · < 599271110c35f6b16e2e4e45b9fbd47ed378c982| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
smb: server: fix leak of active_num_conn in ksmbd_tcp_new_connection()
On kthread_run() failure in ksmbd_tcp_new_connection(), the transport is freed via free_transport(), which does not decrement active_num_conn, leaking this counter.
Replace free_transport() with ksmbd_tcp_disconnect().
From the CVE record · Linux
The Linux kernel’s SMB server leaks its active connection counter when kthread_run() fails while creating a new TCP connection. The transport is freed without decrementing the counter. The input does not specify whether an attacker can trigger this failure or any authentication requirements.
Engineers running the Linux kernel SMB server should check their kernel versions; affected versions are not specified.