CVE-2025-40285

Published Dec 6, 2025 Modified Apr 15, 2026

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

Is your site exposed to CVE-2025-40285?

Run a free security scan — no signup, results in seconds.

References

Frequently Asked Questions

What is CVE-2025-40285? +
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().
How do I check if I'm vulnerable to CVE-2025-40285? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-40285 — free, no signup required.