CVE-2025-40285Published Dec 6, 2025 · Dec 6Updated 3d ago
smb/server: fix possible refcount leak in smb2_sess_setup()
Linux
High7.5
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
2107ab40629aeabbec369cf34b8cf0f288c3eb1b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
smb/server: fix possible refcount leak in smb2_sess_setup()
Reference count of ksmbd_session will leak when session need reconnect. Fix this by adding the missing ksmbd_user_session_put().
From the CVE record · Linux
The Linux kernel SMB server can leak a session reference when a session needs to reconnect. The input does not specify whether an attacker can trigger this remotely, whether authentication is required, or whether user interaction is needed.
Engineers running the Linux kernel SMB server should check their deployments; affected versions are not specified.