ksmbd: close accepted socket when per-IP limit rejects connection
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: close accepted socket when per-IP limit rejects connection
When the per-IP connection limit is exceeded in ksmbd_kthread_fn(), the code sets ret = -EAGAIN and continues the accept loop without closing the just-accepted socket. That leaks one socket per rejected attempt from a single IP and enables a trivial remote DoS.
Release client_sk before continuing.
This bug was found with ZeroPath.
From the CVE record · Linux
The Linux kernel's ksmbd leaks an accepted socket when a connection exceeds the per-IP limit. An attacker connecting remotely from a single IP can repeatedly trigger rejected connections, exhausting resources and causing a denial of service.
Operators running Linux with ksmbd should check their kernel; affected versions are not specified.