What’s Vulnerable › Vulnerabilities

CVE-2025-40285: smb/server: fix possible refcount leak in smb2_sess_setup()

Description

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().

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.16, 6.1.159, 6.12.59, 6.18. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-40285 or the next vulnerability affects your stack