Skip to main content
← All vulnerabilities
CVE-2025-40285

smb/server: fix possible refcount leak in smb2_sess_setup()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.1.159, 6.6.117, 6.12.59, 5.16
None on Exploit-DB, Metasploit or GitHub

Summary

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

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 6.1.121 · fixed in 6.1.159; From 6.6.67 · fixed in 6.6.117; From 6.12.6 · fixed in 6.12.59; From 5.15.176 · fixed in 5.16

  • Linux Linux

    6.13

References 5

git.kernel.org